File: _tput

package info (click to toggle)
zsh 5.9-8
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 23,856 kB
  • sloc: ansic: 108,138; sh: 6,976; makefile: 722; perl: 687; awk: 291; sed: 16
file content (18 lines) | stat: -rw-r--r-- 486 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#compdef tput
local -a args

case $OSTYPE in
  *linux*)
    args=(
      - set1
      '-S[allows more than one capability per invocation of tput]'
      - set2
      '-V[reports the version of ncurses used for tput]'
    )
esac
      
_arguments : \
  $args - set3 \
  '(-S -V)-T+[terminal type]:terminal type:_terminals' \
  '1:terminal capability:( init reset longname ${(k)terminfo} )' \
  '*:capability parameters:{ [[ $words[1] != (init|reset|longname) ]] && _message parameter }'