xtermcolor

来自「Advanced Bash&#8722 Scripting Guide An 」· 代码 · 共 21 行

TXT
21
字号
#!/bin/ksh# Scriptname: xtermcolor# Example 10.95# 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 + -
显示快捷键?