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: support vt102 insert mode; IRM
[fbpad.git]
/
term.h
blob
c0ac24804d94141e67ac89be9a393795e4df88d1
1
#define ESC 27
2
3
struct
term_state
{
4
int
row
,
col
;
5
int
fg
,
bg
;
6
int
mode
;
7
};
8
9
struct
term
{
10
int
fd
;
11
int
pid
;
12
int
top
,
bot
;
13
struct
term_state cur
,
sav
;
14
int
screen
[
MAXCHARS
];
15
char
fgs
[
MAXCHARS
];
16
char
bgs
[
MAXCHARS
];
17
};
18
19
#define TERM_HIDDEN 0
20
#define TERM_VISIBLE 1
21
#define TERM_REDRAW 2
22
23
void
term_load
(
struct
term
*
term
,
int
visible
);
24
void
term_save
(
struct
term
*
term
);
25
26
void
term_read
(
void
);
27
void
term_send
(
int
c
);
28
void
term_exec
(
char
*
cmd
);
29
void
term_end
(
void
);
30
void
term_screenshot
(
void
);