* tuiRegs.c (tuiDisplayRegistersFrom): Call touchwin.
[deliverable/binutils-gdb.git] / gdb / tui / tuiIO.h
CommitLineData
f377b406
SC
1/* TUI support I/O functions.
2 Copyright 1998, 1999, 2000, 2001 Free Software Foundation, Inc.
3 Contributed by Hewlett-Packard Company.
4
5 This file is part of GDB.
6
7 This program is free software; you can redistribute it and/or modify
8 it under the terms of the GNU General Public License as published by
9 the Free Software Foundation; either version 2 of the License, or
10 (at your option) any later version.
11
12 This program is distributed in the hope that it will be useful,
13 but WITHOUT ANY WARRANTY; without even the implied warranty of
14 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 GNU General Public License for more details.
16
17 You should have received a copy of the GNU General Public License
18 along with this program; if not, write to the Free Software
19 Foundation, Inc., 59 Temple Place - Suite 330,
20 Boston, MA 02111-1307, USA. */
21
c906108c
SS
22#ifndef _TUI_IO_H
23#define _TUI_IO_H
c906108c
SS
24
25#include <stdio.h>
26
d9fcf2fb 27extern void tuiPuts_unfiltered (const char *, struct ui_file *);
a14ed312
KB
28extern unsigned int tuiGetc (void);
29extern unsigned int tuiBufferGetc (void);
30extern int tuiRead (int, char *, int);
31extern void tuiStartNewLines (int);
32extern void tui_vStartNewLines (va_list);
33extern unsigned int tui_vwgetch (va_list);
34extern void tuiTermSetup (int);
35extern void tuiTermUnsetup (int, int);
c906108c
SS
36
37
38
39#define m_tuiStartNewLine tuiStartNewLines(1)
40#define m_isStartSequence(ch) (ch == 27)
41#define m_isEndSequence(ch) (ch == 126)
42#define m_isBackspace(ch) (ch == 8)
43#define m_isDeleteChar(ch) (ch == KEY_DC)
44#define m_isDeleteLine(ch) (ch == KEY_DL)
45#define m_isDeleteToEol(ch) (ch == KEY_EOL)
46#define m_isNextPage(ch) (ch == KEY_NPAGE)
47#define m_isPrevPage(ch) (ch == KEY_PPAGE)
48#define m_isLeftArrow(ch) (ch == KEY_LEFT)
49#define m_isRightArrow(ch) (ch == KEY_RIGHT)
50
51#define m_isCommandChar(ch) (m_isNextPage(ch) || m_isPrevPage(ch) || \
52 m_isLeftArrow(ch) || m_isRightArrow(ch) || \
53 (ch == KEY_UP) || (ch == KEY_DOWN) || \
54 (ch == KEY_SF) || (ch == KEY_SR) || \
55 (ch == (int)'\f') || m_isStartSequence(ch))
56
57#define m_isXdbStyleCommandChar(ch) (m_isNextPage(ch) || m_isPrevPage(ch))
58
59
c5aa993b
JM
60#endif
61/*_TUI_IO_H*/
This page took 0.183104 seconds and 4 git commands to generate.