ttype

来自「UNIX+shell范例精解(第4版)代码」· 代码 · 共 28 行

TXT
28
字号
#!/bin/ksh# Program name: ttype# Purpose: set the terminal type# Author: Andy AdminCOLUMNS=60LINES=1PS3="Please enter the terminal type: "select choice in wyse50 vt200 vt100 sundo 	case $REPLY in	1)		export TERM=$choice		print "TERM=$choice"		break;;		               # break out of the select loop	2 | 3 )		export TERM=$choice			print "TERM=$choice"		break;;	4)		export TERM=$choice			print "TERM=$choice"		break;;	*) 		print "$REPLY is not a valid choice. Try again" 1>&2		 	;;	esacdone

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?