summaryrefslogtreecommitdiff
path: root/src/term/txttoc.sh
blob: 7b360b1dd1702efc63f4b9c64815a39db3e4c126 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
while read long_name terminfo_name termcap_name description; do
	cat <<-EOF > $long_name.c
	#include <curses.h>

	#define $long_name tigetstr("$terminfo_name")

	/** $description **/

	/*
	TERMINFO_NAME($terminfo_name)
	TERMCAP_NAME($termcap_name)
	XOPEN(400)
	*/
EOF
done