summaryrefslogtreecommitdiff
path: root/src/term/txttoc.sh
diff options
context:
space:
mode:
authorJakob Kaivo <jkk@ung.org>2019-02-21 21:02:19 -0500
committerJakob Kaivo <jkk@ung.org>2019-02-21 21:02:19 -0500
commit0b7a5126aed5b881ec48a7d82319917dcd74bbbb (patch)
tree10e190e2e14298f8a451c863887bb70a9aecf17a /src/term/txttoc.sh
parenta40bbaf27d592e053789a53740ef0509a77d9246 (diff)
add symbols from <term.h>
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