diff options
| author | Petr Mrázek | 2012-07-12 02:51:00 +0200 |
|---|---|---|
| committer | Petr Mrázek | 2012-07-12 02:51:00 +0200 |
| commit | 493b059f4c1b8d86895972cb15d99680e8253e40 (patch) | |
| tree | 352642ca165b48b955baab646ab47a09abd92c84 | |
| parent | f0393a62f5f60f539c84650e4f9ae1fce2ab50a2 (diff) | |
| download | dfhack-493b059f4c1b8d86895972cb15d99680e8253e40.tar.gz dfhack-493b059f4c1b8d86895972cb15d99680e8253e40.tar.bz2 dfhack-493b059f4c1b8d86895972cb15d99680e8253e40.tar.xz | |
Reset terminal to sane state after exiting on linux - without clearing the scrollback.
| -rwxr-xr-x | package/linux/dfhack | 4 |
1 files changed, 1 insertions, 3 deletions
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 |
