Providing a vt100_headless_getlines to avoid calling directly lw_terminal_vt100_getlines
This commit is contained in:
parent
187f89df52
commit
0589535c9b
|
@ -113,6 +113,11 @@ void master_write(void *user_data, void *buffer, size_t len)
|
|||
write(this->master, buffer, len);
|
||||
}
|
||||
|
||||
const char **vt100_headless_getlines(struct vt100_headless *this)
|
||||
{
|
||||
return lw_terminal_vt100_getlines(this->term);
|
||||
}
|
||||
|
||||
void vt100_headless_fork(struct vt100_headless *this,
|
||||
const char *progname,
|
||||
char *const argv[])
|
||||
|
|
|
@ -16,5 +16,6 @@ struct vt100_headless
|
|||
|
||||
void vt100_headless_fork(struct vt100_headless *this, const char *progname, char *const argv[]);
|
||||
struct vt100_headless *vt100_headless_init(void);
|
||||
const char **vt100_headless_getlines(struct vt100_headless *this);
|
||||
|
||||
#endif
|
||||
|
|
|
@ -11,7 +11,7 @@ void disp(struct vt100_headless *vt100)
|
|||
unsigned int y;
|
||||
const char **lines;
|
||||
|
||||
lines = lw_terminal_vt100_getlines(vt100->term);
|
||||
lines = vt100_headless_getlines(vt100);
|
||||
write(1, "\n", 1);
|
||||
for (y = 0; y < vt100->term->height; ++y)
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue
Block a user