summaryrefslogtreecommitdiff
path: root/more.h
blob: 440aa152c99f9f6f4f5cc2da21d5a1d35fadda23 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
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);