4 ** This header contains defitions to support tuiIO.c
10 extern void tuiPuts_unfiltered
PARAMS ((const char *, GDB_FILE
*));
11 extern unsigned int tuiGetc
PARAMS ((void));
12 extern unsigned int tuiBufferGetc
PARAMS ((void));
13 extern int tuiRead
PARAMS ((int, char *, int));
14 extern void tuiStartNewLines
PARAMS ((int));
15 extern void tui_vStartNewLines
PARAMS ((va_list));
16 extern unsigned int tui_vwgetch
PARAMS ((va_list));
17 extern void tuiTermSetup
PARAMS ((int));
18 extern void tuiTermUnsetup
PARAMS ((int, int));
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)
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))
40 #define m_isXdbStyleCommandChar(ch) (m_isNextPage(ch) || m_isPrevPage(ch))
This page took 0.029793 seconds and 4 git commands to generate.