Update of /cvsroot/lastbash/lastbash
In directory sc8-pr-cvs6.sourceforge.net:/tmp/cvs-serv30635
Modified Files:
lastbash
Log Message:
Disable local echo on normal operation.
Index: lastbash
===================================================================
RCS file: /cvsroot/lastbash/lastbash/lastbash,v
retrieving revision 1.107
retrieving revision 1.108
diff -u -d -r1.107 -r1.108
--- lastbash 21 Dec 2006 14:03:19 -0000 1.107
+++ lastbash 21 Dec 2006 14:55:33 -0000 1.108
@@ -66,7 +66,7 @@
# Internal stuff
PLAYERS="mplayer"
HTTP_CLIENTS="wget curl"
-REQ_PROGRAMS="rm date tput md5sum dd chmod"
+REQ_PROGRAMS="rm date tput stty md5sum dd chmod"
PLAYER_PID=""
declare -a HTTP_HEADERS HTTP_RESPONSE
declare -a HISTORY_ARTIST HISTORY_ALBUM HISTORY_TRACK HISTORY_DURATION HISTORY_MIN_SEC HISTORY_ACTION
@@ -78,6 +78,10 @@
CTRL_S=$'\x13'
CTRL_V=$'\x16'
CTRL_X=$'\x18'
+ARROW_UP=$'\x1b[A'
+ARROW_DOWN=$'\x1b[B'
+ARROW_LEFT=$'\x1b[D'
+ARROW_RIGHT=$'\x1b[C'
NUMBER_REGEXP="+([0-9])"
# Set some shell options
@@ -814,6 +818,8 @@
# Set the initial terminal size related settings
term_resize
+ # Disable terminal echo mode
+ stty -echo
# Make cursor invisible
tput civis
}
@@ -830,6 +836,8 @@
tput clear
# Make cursor normal visible
tput cnorm
+ # Enable terminal echo mode
+ stty echo
# Exit special mode
tput rmcup
}
@@ -1757,12 +1765,13 @@
fi
# Wait a second (or even longer, to let the stream be loaded)
- sleep 5
+ sleep 1
# Update the status line
if [ "${RET}" == "0" ]
then
tui_sbar "Stream loaded and playing" "5"
+ tui_metadata
else
tui_sbar "Stream not loaded"
fi
|