Explorar el Código

Use tput instead of funny hack

Alois Mahdal hace 11 años
padre
commit
ffb5bb9581
Se han modificado 1 ficheros con 1 adiciones y 5 borrados
  1. 1
    5
      dotfiles/bash/main.bashrc

+ 1
- 5
dotfiles/bash/main.bashrc Ver fichero

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
 ### .... ###