* exec.c (xfer_memory): Add attrib argument.
[deliverable/binutils-gdb.git] / gdb / tui / tuiIO.h
CommitLineData
c906108c
SS
1#ifndef _TUI_IO_H
2#define _TUI_IO_H
3/*
c5aa993b
JM
4 ** This header contains defitions to support tuiIO.c
5 */
c906108c
SS
6
7
8#include <stdio.h>
9
d9fcf2fb 10extern void tuiPuts_unfiltered (const char *, struct ui_file *);
a14ed312
KB
11extern unsigned int tuiGetc (void);
12extern unsigned int tuiBufferGetc (void);
13extern int tuiRead (int, char *, int);
14extern void tuiStartNewLines (int);
15extern void tui_vStartNewLines (va_list);
16extern unsigned int tui_vwgetch (va_list);
17extern void tuiTermSetup (int);
18extern void tuiTermUnsetup (int, int);
c906108c
SS
19
20
21
22#define m_tuiStartNewLine tuiStartNewLines(1)
23#define m_isStartSequence(ch) (ch == 27)
24#define m_isEndSequence(ch) (ch == 126)
25#define m_isBackspace(ch) (ch == 8)
26#define m_isDeleteChar(ch) (ch == KEY_DC)
27#define m_isDeleteLine(ch) (ch == KEY_DL)
28#define m_isDeleteToEol(ch) (ch == KEY_EOL)
29#define m_isNextPage(ch) (ch == KEY_NPAGE)
30#define m_isPrevPage(ch) (ch == KEY_PPAGE)
31#define m_isLeftArrow(ch) (ch == KEY_LEFT)
32#define m_isRightArrow(ch) (ch == KEY_RIGHT)
33
34#define m_isCommandChar(ch) (m_isNextPage(ch) || m_isPrevPage(ch) || \
35 m_isLeftArrow(ch) || m_isRightArrow(ch) || \
36 (ch == KEY_UP) || (ch == KEY_DOWN) || \
37 (ch == KEY_SF) || (ch == KEY_SR) || \
38 (ch == (int)'\f') || m_isStartSequence(ch))
39
40#define m_isXdbStyleCommandChar(ch) (m_isNextPage(ch) || m_isPrevPage(ch))
41
42
c5aa993b
JM
43#endif
44/*_TUI_IO_H*/
This page took 0.091682 seconds and 4 git commands to generate.