ttype
来自「UNIX[1].shell范例精解(第4版)_code」· 代码 · 共 31 行
TXT
31 行
#!/bin/bash# Scriptname: ttype# Purpose: set the terminal type# Author: Andy AdminCOLUMNS=60LINES=1PS3="Please enter the terminal type: "select choice in wyse50 vt200 xterm sundo case $REPLY in 1) export TERM=$choice echo "TERM=$choice" break;; # break out of the select loop 2 | 3 ) export TERM=$choice echo "TERM=$choice" break;; 4) export TERM=$choice echo "TERM=$choice" break;; *) echo -e "$REPLY is not a valid choice. Try again\n" 1>&2 REPLY= # Causes the menu to be redisplayed ;; esacdone
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?