repo.or.cz
/
fbpad.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
term: don't load top and bot in DECRC
[fbpad.git]
/
term.h
blob
4b73c68581ffc15b395c79bf530753aa3abf77ec
1
#define ESC 27
2
3
struct
term_state
{
4
int
row
,
col
;
5
int
fg
,
bg
;
6
unsigned int
mode
;
7
};
8
9
struct
term
{
10
int
fd
;
11
int
pid
;
12
int
top
,
bot
;
13
struct
term_state cur
,
sav
;
14
struct
square
{
15
int
c
;
16
short
fg
;
17
short
bg
;
18
}
screen
[
MAXCHARS
];
19
};
20
21
#define TERM_HIDDEN 0
22
#define TERM_VISIBLE 1
23
#define TERM_REDRAW 2
24
25
void
term_load
(
struct
term
*
term
,
int
visible
);
26
void
term_save
(
struct
term
*
term
);
27
28
void
term_read
(
void
);
29
void
term_send
(
int
c
);
30
void
term_exec
(
char
*
cmd
);
31
void
term_end
(
void
);