diff options
Diffstat (limited to 'more.h')
-rw-r--r-- | more.h | 7 |
1 files changed, 6 insertions, 1 deletions
@@ -7,13 +7,18 @@ struct more_tty { int columns; }; -struct morefile { +struct more_file { FILE *f; FILE *backing; size_t topline; fpos_t *lines; size_t nlines; size_t mark[26]; + char *buf; + size_t nbuf; }; struct more_tty more_open_tty(int lines); +struct more_file more_open(const char *path); +void more_close(struct more_file *mf); +ssize_t more_getline(struct more_file *mf, size_t lineno); |