xcolors

来自「UNIX[1].shell范例精解(第4版)_code」· 代码 · 共 20 行

TXT
20
字号
#!/bin/bash# Scriptname: xcolorsecho -n "Choose a foreground color for your xterm window: "read colorcase "$color" in [Bb]l??) 	xterm -fg blue -fn terminal &	;; [Gg]ree*)	xterm -fg darkgreen -fn terminal &	;;red | orange)              # The vertical bar means "or" 	xterm -fg "$color"  -fn terminal &	;;*)	xterm -fn terminal	;;esacecho  "Out of case command"

⌨️ 快捷键说明

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