summaryrefslogtreecommitdiff
path: root/more.h
diff options
context:
space:
mode:
Diffstat (limited to 'more.h')
-rw-r--r--more.h19
1 files changed, 19 insertions, 0 deletions
diff --git a/more.h b/more.h
new file mode 100644
index 0000000..440aa15
--- /dev/null
+++ b/more.h
@@ -0,0 +1,19 @@
+#define _XOPEN_SOURCE 700
+#include <stdio.h>
+
+struct more_tty {
+ FILE *tty;
+ int lines;
+ int columns;
+};
+
+struct morefile {
+ FILE *f;
+ FILE *backing;
+ size_t topline;
+ fpos_t *lines;
+ size_t nlines;
+ size_t mark[26];
+};
+
+struct more_tty more_open_tty(int lines);