#!/bin/bash
#tput和stty是兩款終端處理工具
#獲取列數和行數
tput cols
tput lines
#打印當前終端名
tput longname
#移動光標 移動光標到100 100
tput cup 100 100
#設置終端背景色 0-7
tput setb 0
#設置終端前景色 0-7
tput setf 7
tput bold #設置粗體
#設置下划線的起止:
tput smul
tput rmul
# 刪除從當前光標位置到行尾的所有內容:
tput ed
tput sc#保存光標的位置
tput rc# 恢復光標到上一次保存的位置
#stty實現不顯示輸入內容
echo -e "輸入密碼:"
stty -echo
read password
stty echo
echo
echo password read.
#選項-echo禁止將輸出發送到終端,而選項echo則允許發送輸出