5 cur="${COMP_WORDS[COMP_CWORD]}"
6 prev="${COMP_WORDS[COMP_CWORD-1]}"
11 for I in /usr/share/terminfo/?/*; do
12 TERM_LIST+="${I##*/} "
14 COMPREPLY=( $(compgen -W "$TERM_LIST" -- $cur) )
17 '-foreground'|'-background'|'-ulcolor'|'-hbcolor')
18 COMPREPLY=( $(compgen -W "default black blue cyan green magenta red white yellow" -- $cur) )
21 '-cursor'|'-repeat'|'-appcursorkeys'|'-linewrap'|'-inversescreen'|'-bold'|'-half-bright'|'-blink'|'-reverse'|'-underline'|'-msg')
22 COMPREPLY=( $(compgen -W "off on" -- $cur) )
26 COMPREPLY=( $(compgen -W "all rest" -- $cur) )
30 COMPREPLY=( $(compgen -W "tab1 tab2 tab3 tab160" -- $cur) )
34 COMPREPLY=( $(compgen -W "$(echo {1..160})" -- $cur) )
38 COMPREPLY=( $(compgen -W "$(echo {0..60}) force poke" -- $cur) )
43 NUM_CONS=(/sys/class/tty/*)
44 COMPREPLY=( $(compgen -W "$(echo {1..${#NUM_CONS[*]}})" -- $cur) )
49 COMPREPLY=( $(compgen -f -- $cur) )
53 COMPREPLY=( $(compgen -W "$(echo {1..8})" -- $cur) )
57 COMPREPLY=( $(compgen -W "on vsync hsync powerdown off" -- $cur) )
61 COMPREPLY=( $(compgen -W "$(echo {0..60})" -- $cur) )
65 COMPREPLY=( $(compgen -W "0-2000" -- $cur) )
69 COMPREPLY=( $(compgen -W "freqnumber" -- $cur) )
113 COMPREPLY=( $(compgen -W "${OPTS[*]}" -- $cur) )
116 complete -F _setterm_module setterm