浏览代码

Use tput instead of funny hack

Alois Mahdal 11 年前
父节点
当前提交
ffb5bb9581
共有 1 个文件被更改,包括 1 次插入5 次删除
  1. 1
    5
      dotfiles/bash/main.bashrc

+ 1
- 5
dotfiles/bash/main.bashrc 查看文件

18
 }
18
 }
19
 
19
 
20
 clear_to_bottom() {
20
 clear_to_bottom() {
21
-    clear
22
-    for ((i=1; i<=$LINES; i++));
23
-    do
24
-        echo "$n"
25
-    done
21
+    tput clear; tput cup $(tput lines) 0
26
 }
22
 }
27
 
23
 
28
 ### .... ###
24
 ### .... ###