diff options
| author | Jakob Kaivo <jkk@ung.org> | 2019-02-23 13:40:59 -0500 |
|---|---|---|
| committer | Jakob Kaivo <jkk@ung.org> | 2019-02-23 13:40:59 -0500 |
| commit | 85640c882fb700304ef4740c46ec3309f2fb3d62 (patch) | |
| tree | e78fb1c15eed6c9ed79dfccecfa38f3867b57c73 /src | |
| parent | 3a3c5a7e8b78d46f62f81a71fc5bec37be79d744 (diff) | |
take function name as parameter
Diffstat (limited to 'src')
| -rw-r--r-- | src/term/txttoc.sh | 5 |
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 **/ |
