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: add P, n, a and e control chars
[fbpad.git]
/
term.h
blob
2497f4bac2ca36f9121f7cdf646bcc0b8f996fd2
1
#define ESC 27
2
3
struct
term_state
{
4
int
row
,
col
;
5
int
fd
;
6
int
pid
;
7
int
fg
,
bg
;
8
struct
square
{
9
int
c
;
10
int
fg
;
11
int
bg
;
12
}
screen
[
MAXCHARS
];
13
};
14
15
void
term_save
(
struct
term_state
*
state
);
16
void
term_load
(
struct
term_state
*
state
);
17
int
term_fd
(
void
);
18
void
term_read
(
void
);
19
void
term_send
(
int
c
);
20
void
term_exec
(
char
*
cmd
);
21
void
term_end
(
void
);
22
void
term_blank
(
void
);
23
void
term_init
(
void
);
24
void
term_free
(
void
);