dotermhelp

来自「ftam等标准协议服务器和客户端的源代码。」· 代码 · 共 37 行

TXT
37
字号
if [ ! -r etc/determtypes.orig ]; then	mv etc/determtypes etc/determtypes.origfised 's/:.*$//' /etc/termcap | awk '/^#.*/ {	next}/^[\t ].*/ {	next}{	n = split($0, names, "|")	if (n > 2)		print names[2] ":" names[n]} ' |sort -u -t: >/tmp/determs.$$noterms=`wc -l /tmp/determs.$$|awk '{print $1}'`cat <<EOF > 'etc/determtypes'These are terminals which the system knows about.  A few well-known onesare grouped together at the top of the list.  The rest ($noterms terminaltypes are recognised!) are in alphabetical order.EOFegrep "tvi950:|vt100:|vt240:|wyse:|xterms:" /tmp/determs.$$ |awk  -F: ' {        printf("%-20s%s\n", $1, $2)} '>> etc/determtypesecho "" >> etc/determtypesegrep -v "tvi950:|vt100:|vt240:|wyse:|xterms:" /tmp/determs.$$ | awk  -F: ' {	printf("%-20s%s\n", $1, $2)} ' >> etc/determtypes#rm -f /tmp/determs.$$

⌨️ 快捷键说明

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