summaryrefslogtreecommitdiff
path: root/libremessages
diff options
context:
space:
mode:
authorNicolás Reynolds <apoyosis@correo.inta.gob.ar>2012-11-05 11:44:26 -0300
committerNicolás Reynolds <apoyosis@correo.inta.gob.ar>2012-11-05 11:44:26 -0300
commit369245e8dbee7ad97acec087de77081627a255db (patch)
tree8e128b0bad84d042b0d504e3e5ed726b0ffe9457 /libremessages
parent3d3156b97f679a84210c08ca7e7563691d988a3b (diff)
parent9983b0c757834d61b9099a5953dec9d92330ac76 (diff)
Merge branch 'master' of git://ponape.local/libretools
Diffstat (limited to 'libremessages')
-rwxr-xr-xlibremessages6
1 files changed, 6 insertions, 0 deletions
diff --git a/libremessages b/libremessages
index 5d817dd..68badb8 100755
--- a/libremessages
+++ b/libremessages
@@ -86,6 +86,12 @@ stat_done() {
printf "${BOLD}done${ALL_OFF}\n" >&2
}
+# Set the terminal title
+# TODO test on several terms - it works on screen/tmux
+term_title() {
+ printf "\033k%s\033\\" "$@"
+}
+
# usage : in_array( $needle, $haystack )
in_array() {
[[ $2 ]] || return 1 # Not found