summaryrefslogtreecommitdiff
path: root/more.h
diff options
context:
space:
mode:
authorJakob Kaivo <jkk@ung.org>2022-04-18 19:12:52 -0400
committerJakob Kaivo <jkk@ung.org>2022-04-18 19:12:52 -0400
commit1fa82850d87a0f5526153655a2368c46ea447a90 (patch)
tree5ffd8c628a4a221b93cd68b36ec82b6e182bd314 /more.h
parent344424ffafe5e3b310b5595d897579544abdb90d (diff)
switch to curses
Diffstat (limited to 'more.h')
-rw-r--r--more.h6
1 files changed, 2 insertions, 4 deletions
diff --git a/more.h b/more.h
index 27e7e7a..534dca7 100644
--- a/more.h
+++ b/more.h
@@ -3,15 +3,13 @@
struct more_tty {
FILE *tty;
- int lines;
- int columns;
};
struct more_file {
FILE *f;
FILE *backing;
size_t topline;
- fpos_t *lines;
+ fpos_t *tlines;
size_t nlines;
size_t mark[26];
size_t nbytes;
@@ -20,7 +18,7 @@ struct more_file {
size_t nbuf;
};
-struct more_tty more_open_tty(int lines);
+struct more_tty more_open_tty(int nlines);
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);