captoinfo -VERSION (return code: 0)
ncurses 6.0.20160213
captoinfo --help (return code: 1)
captoinfo: invalid option -- '-'
Usage: captoinfo [-e names] [-o dir] [-R name] [-v[n]] [-V] [-w[n]] [-1aCDcfGgIKLNrsTtUx] source-file
Options:
-0 format translation output all capabilities on one line
-1 format translation output one capability per line
-a retain commented-out capabilities (sets -x also)
-C translate entries to termcap source form
-D print list of tic's database locations (first must be writable)
-c check only, validate input without compiling or translating
-e<names> translate/compile only entries named by comma-separated list
-f format complex strings for readability
-G format %{number} to %'char'
-g format %'char' to %{number}
-I translate entries to terminfo source form
-K translate entries to termcap source form with BSD syntax
-L translate entries to full terminfo source form
-N disable smart defaults for source translation
-o<dir> set output directory for compiled entry writes
-Q[n] dump compiled description
-q brief listing, removes headers
-R<name> restrict translation to given terminfo/termcap version
-r force resolution of all use entries in source translation
-s print summary statistics
-T remove size-restrictions on compiled description
-t suppress commented-out capabilities
-U suppress post-processing of entries
-V print version
-v[n] set verbosity level
-w[n] set format width for translation output
-x treat unknown capabilities as user-defined
Parameters:
<file> file to translate or compile