xtermcolor

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

TXT
20
字号
#!/bin/ksh # Scriptname: xtermcolor# Sets the xterm foreground color (the color of the prompt and # input typed for interactive windows. read color?"Choose a foreground color for your terminal?" case "$color" in *[Bb]l??) 	xterm -fg blue -fn terminal &		;; *[Gg]reen)	 xterm -fg darkgreen -fn terminal &		;;red | orange)                   # The vertical bar means "or"  	xterm -fg "$color" -fn terminal &		;;*)  xterm -fn terminal &        # default		;;esacprint "Out of case..."

⌨️ 快捷键说明

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