OpenCores
URL https://opencores.org/ocsvn/or1k/or1k/trunk

Subversion Repositories or1k

[/] [or1k/] [trunk/] [gdb-5.0/] [gdb/] [tui/] [tuiIO.h] - Blame information for rev 106

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 106 markom
#ifndef _TUI_IO_H
2
#define _TUI_IO_H
3
/*
4
   ** This header contains defitions to support tuiIO.c
5
 */
6
 
7
 
8
#include <stdio.h>
9
 
10
extern void tuiPuts_unfiltered  (const char *, struct ui_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));
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
 
43
#endif
44
/*_TUI_IO_H*/

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.