Providing a vt100_headless_getlines to avoid calling directly lw_terminal_vt100_getlines

This commit is contained in:
Julien Palard 2011-10-16 13:27:09 +02:00
parent 187f89df52
commit 0589535c9b
3 changed files with 7 additions and 1 deletions

View File

@ -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[])

View File

@ -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

View File

@ -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)
{