定位點清除 (TBC)
清除一個或全部定位停駐點。
- 0x1B
- ESC
- 0x5B
- [
- ____
- n
- 0x67
- g
參數 n 必須是 0 或 3。如果省略 n,則 n 預設為 0。
如果參數 n 為 0,則游標欄位置會被標記為非定位停駐點。
如果該欄本來就不是定位停駐點,則此操作不執行任何動作。
如果參數 n 為 3,則清除所有定位停駐點。
printf "\033[1;1H" # move to top-left
printf "\033[0J" # clear screen
printf "\033[?5W" # reset tabs
printf "\t"
printf "\033[g"
printf "\033[1G"
printf "\t"
|_______________c_______|
printf "\033[1;1H" # move to top-left
printf "\033[0J" # clear screen
printf "\033[?5W" # reset tabs
printf "\033[3g"
printf "\033[1G"
printf "\t"
|______________________c|