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: redraw rather than the slower scrolling
[fbpad.git]
/
term.h
blob
c38491555b569f90ff793416028cf14f873b9227
1
#define ESC 27
2
3
struct
miscterm_state
{
4
int
row
,
col
;
5
int
fg
,
bg
;
6
int
top
,
bot
;
7
unsigned long
mode
;
8
};
9
10
struct
term_state
{
11
int
fd
;
12
int
pid
;
13
struct
square
{
14
int
c
;
15
short
fg
;
16
short
bg
;
17
}
screen
[
MAXCHARS
];
18
struct
miscterm_state cur
,
sav
;
19
};
20
21
void
term_save
(
struct
term_state
*
state
);
22
void
term_load
(
struct
term_state
*
state
);
23
int
term_fd
(
void
);
24
void
term_read
(
void
);
25
void
term_send
(
int
c
);
26
void
term_exec
(
char
*
cmd
);
27
void
term_end
(
void
);
28
void
term_blank
(
void
);
29
void
term_init
(
void
);
30
void
term_free
(
void
);