mirror of
				git://git.code.sf.net/p/zsh/code
				synced 2025-10-31 06:00:54 +01:00 
			
		
		
		
	
		
			
				
	
	
		
			18 lines
		
	
	
	
		
			486 B
		
	
	
	
		
			Text
		
	
	
	
	
	
			
		
		
	
	
			18 lines
		
	
	
	
		
			486 B
		
	
	
	
		
			Text
		
	
	
	
	
	
| #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 }'
 |