From: <ma...@us...> - 2004-02-19 01:21:36
|
Update of /cvsroot/sharedaemon/ui-wx/src In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv27890/src Modified Files: functions Log Message: Now compile-time messages are compatible with BSD echo. Index: functions =================================================================== RCS file: /cvsroot/sharedaemon/ui-wx/src/functions,v retrieving revision 1.1 retrieving revision 1.2 diff -u -d -r1.1 -r1.2 --- functions 19 Feb 2004 01:01:17 -0000 1.1 +++ functions 19 Feb 2004 01:11:39 -0000 1.2 @@ -21,15 +21,15 @@ # Get a sane screen width [ -z "${COLUMNS:-}" ] && COLUMNS=80 # Get console type -[ -z "${CONSOLETYPE:-}" ] && CONSOLETYPE="`/sbin/consoletype`" +#[ -z "${CONSOLETYPE:-}" ] && CONSOLETYPE="`/sbin/consoletype`" # Set some variables RES_COL=60 -MOVE_TO_COL="echo -en \\033[${RES_COL}G" -SETCOLOR_SUCCESS="echo -en \\033[1;32m" -SETCOLOR_FAILURE="echo -en \\033[1;31m" -SETCOLOR_WARNING="echo -en \\033[1;33m" -SETCOLOR_NORMAL="echo -en \\033[0;39m" +MOVE_TO_COL="echo -e \\033[${RES_COL}G\\c" +SETCOLOR_SUCCESS="echo -e \\033[1;32m\\c" +SETCOLOR_FAILURE="echo -e \\033[1;31m\\c" +SETCOLOR_WARNING="echo -e \\033[1;33m\\c" +SETCOLOR_NORMAL="echo -e \\033[0;39m\\c" if [ "$CONSOLETYPE" = "serial" ]; then BOOTUP=serial MOVE_TO_COL= |