From 493b059f4c1b8d86895972cb15d99680e8253e40 Mon Sep 17 00:00:00 2001 From: Petr Mrázek Date: Thu, 12 Jul 2012 02:51:00 +0200 Subject: Reset terminal to sane state after exiting on linux - without clearing the scrollback. --- package/linux/dfhack | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'package') diff --git a/package/linux/dfhack b/package/linux/dfhack index d8790eac..ef708932 100755 --- a/package/linux/dfhack +++ b/package/linux/dfhack @@ -14,8 +14,6 @@ # DF_GDB_OPTS: Options to pass to gdb, if it's being run # DF_VALGRIND_OPTS: Options to pass to valgrind, if it's being run # DF_HELGRIND_OPTS: Options to pass to helgrind, if it's being run -# DF_RESET_OPTS: Options to pass the reset command at the end of -# this script # DF_POST_CMD: Shell command to be run at very end of script DF_DIR=$(dirname "$0") @@ -68,7 +66,7 @@ case "$1" in esac # Reset terminal to sane state in case of a crash -# reset $DF_RESET_OPTS +printf '\033[3g\033[0m\033[?25h\033(B\017\033%%G' if [ -n "$DF_POST_CMD" ]; then eval $DF_POST_CMD -- cgit v1.2.1