blob: 9d4571e6f29a63e2b65a4427447e872cbea0bdcb (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
FUNCTION=${1:-tigetstr}
while read long_name terminfo_name termcap_name description; do
cat <<-EOF > $long_name.c
#include <term.h>
#define $long_name ${FUNCTION}("$terminfo_name")
/** $description **/
/*
TERMINFO_NAME($terminfo_name)
TERMCAP_NAME($termcap_name)
XOPEN(400)
*/
EOF
done
|