Update of /cvsroot/lastbash/lastbash
In directory sc8-pr-cvs6.sourceforge.net:/tmp/cvs-serv3108
Modified Files:
lastbash
Log Message:
Make cursor invisible and back visible.
Index: lastbash
===================================================================
RCS file: /cvsroot/lastbash/lastbash/lastbash,v
retrieving revision 1.53
retrieving revision 1.54
diff -u -d -r1.53 -r1.54
--- lastbash 28 Nov 2006 18:21:58 -0000 1.53
+++ lastbash 29 Nov 2006 12:32:41 -0000 1.54
@@ -405,6 +405,8 @@
set_xterm "Welcome to ${PROG_TITLE}!"
# Set the initial terminal size related settings
term_resize
+ # Make cursor invisible
+ echo -en '\e[?25l' # tput civis
}
# Function: Exit the terminal {{{1
@@ -417,6 +419,8 @@
echo -ne "\e[0;${T_LINES}r"
# Move the cursor on upper-left corner and clear the entire screen
echo -ne "\e[H\e[2J"
+ # Make cursor visible
+ echo -en '\e[?12;25h' # tput cvvis
}
# Function: Compute some lengths when the terminal has been resized {{{1
|