about summary refs log tree commit diff stats
path: root/080display.cc
diff options
context:
space:
mode:
authorKartik K. Agaram <vc@akkartik.com>2017-06-16 16:56:29 -0700
committerKartik K. Agaram <vc@akkartik.com>2017-06-16 16:56:29 -0700
commit1441e507b63f2c48c201c76bc991f7818ab1c987 (patch)
treed72be726d362cb8c4168dc0bd99b20717cfd191c /080display.cc
parent960e75d0c69287c13202c9843c968a01ecf54f15 (diff)
downloadmu-1441e507b63f2c48c201c76bc991f7818ab1c987.tar.gz
3917
Redo commit 3905 to always shutdown cleanly on any error raised.
Diffstat (limited to '080display.cc')
-rw-r--r--080display.cc14
1 files changed, 0 insertions, 14 deletions
diff --git a/080display.cc b/080display.cc
index 14c2b2f2..295f86b4 100644
--- a/080display.cc
+++ b/080display.cc
@@ -65,20 +65,6 @@ case CLOSE_CONSOLE: {
   break;
 }
 
-//: Automatically close the console in some situations.
-:(before "End One-time Setup")
-atexit(close_console_and_scroll_to_bottom);
-:(after "Begin ASSERT in Run")
-if (tb_is_active()) close_console_and_scroll_to_bottom();
-:(code)
-void close_console_and_scroll_to_bottom() {
-  if (!tb_is_active()) return;
-  // leave the screen in a relatively clean state
-  tb_set_cursor(tb_width()-1, tb_height()-1);
-  cout << "\r\n";
-  tb_shutdown();
-}
-
 :(before "End Primitive Recipe Declarations")
 CLEAR_DISPLAY,
 :(before "End Primitive Recipe Numbers")