Update of /cvsroot/lastbash/lastbash
In directory sc8-pr-cvs6.sourceforge.net:/tmp/cvs-serv11520
Modified Files:
lastbash
Log Message:
Enter and leave terminal special mode.
Index: lastbash
===================================================================
RCS file: /cvsroot/lastbash/lastbash/lastbash,v
retrieving revision 1.54
retrieving revision 1.55
diff -u -d -r1.54 -r1.55
--- lastbash 29 Nov 2006 12:32:41 -0000 1.54
+++ lastbash 29 Nov 2006 12:53:38 -0000 1.55
@@ -401,12 +401,14 @@
#-----------------------------------------------------------------------------
function term_init()
{
+ # Enter special mode
+ echo -ne '\e[?1049h'
# Set a welcome xterm title
set_xterm "Welcome to ${PROG_TITLE}!"
# Set the initial terminal size related settings
term_resize
# Make cursor invisible
- echo -en '\e[?25l' # tput civis
+ echo -ne '\e[?25l' # tput civis
}
# Function: Exit the terminal {{{1
@@ -420,7 +422,9 @@
# 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
+ echo -ne '\e[?12;25h' # tput cvvis
+ # Exit special mode
+ echo -ne '\e[?1049l'
}
# Function: Compute some lengths when the terminal has been resized {{{1
|