-#---------------------------------------------------------------------
-## @param title
-## @Globals TERM
-##
-## sets the terminal title if TERM=xterm|rxvt or the window title if
-## TERM=screen
-##
-#---------------------------------------------------------------------
-function set_term_title()
-{
- case $TERM in
- xterm*|rxvt) echo -ne "\e]0;$@\007" ;;
- screen) echo -ne "\ek$@\e\\" ;;
- *) true ;;
- esac
-}
-
function xterm_title_cast_initialize_hook() {
set_term_title "cast started"
}
diff --git a/var/lib/sorcery/modules/libmisc b/var/lib/sorcery/modules/libmisc
index 8e4635f..80172a7 100755
--- a/var/lib/sorcery/modules/libmisc
+++ b/var/lib/sorcery/modules/libmisc
@@ -1748,6 +1748,23 @@ function show_file() {
fi
}
+#---------------------------------------------------------------------
+## @param title
+## @Globals TERM
+##
+## sets the terminal title if TERM=xterm|rxvt or the window title if
+## TERM=screen
+##
+#---------------------------------------------------------------------
+function set_term_title()
+{
+ case $TERM in
+ xterm*|rxvt) echo -ne "\e]0;$@\007" ;;
+ screen) echo -ne "\ek$@\e\\" ;;
+ *) true ;;
+ esac
+}
+
# Standard debug line:
# file "function@line" "all" "args"
STD_DEBUG='eval local _stddbg_file=${BASH_SOURCE[0]} ;
[SM-Commit] GIT changes to devel-pyrobor2 sorcery by Bor Kraljič (6f47b4d7893056703a03c80a2019885411f03f5d),
Bor Kraljič, 10/21/2011