向下捲動 (SD)
在捲動區域頂部插入 `n` 行並 將現有行下移。
- 0x1B
- ESC
- 0x5B
- [
- ____
- n
- 0x54
- T
此序列在功能上等同於 將游標位置設到捲動區域頂部的 插入行 (IL)。 操作後游標位置必須與呼叫 SD 時保持不變。
此序列會取消待定換行狀態。
printf "\033[1;1H" # move to top-left
printf "\033[0J" # clear screen
printf "ABC\n"
printf "DEF\n"
printf "GHI\n"
printf "\033[3;4r" # scroll region top/bottom
printf "\033[2;2H"
printf "\033[T"
|ABC_____|
|DEF_____|
|________|
|GHI_____|