summaryrefslogtreecommitdiff
path: root/src/term/txttoc.sh
diff options
context:
space:
mode:
Diffstat (limited to 'src/term/txttoc.sh')
-rw-r--r--src/term/txttoc.sh15
1 files changed, 15 insertions, 0 deletions
diff --git a/src/term/txttoc.sh b/src/term/txttoc.sh
new file mode 100644
index 00000000..7b360b1d
--- /dev/null
+++ b/src/term/txttoc.sh
@@ -0,0 +1,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