summaryrefslogtreecommitdiff
path: root/src/term
diff options
context:
space:
mode:
Diffstat (limited to 'src/term')
-rw-r--r--src/term/txttoc.sh5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/term/txttoc.sh b/src/term/txttoc.sh
index 7b360b1d..9d4571e6 100644
--- a/src/term/txttoc.sh
+++ b/src/term/txttoc.sh
@@ -1,8 +1,9 @@
+FUNCTION=${1:-tigetstr}
while read long_name terminfo_name termcap_name description; do
cat <<-EOF > $long_name.c
- #include <curses.h>
+ #include <term.h>
- #define $long_name tigetstr("$terminfo_name")
+ #define $long_name ${FUNCTION}("$terminfo_name")
/** $description **/