about summary refs log tree commit diff stats
path: root/src/ui/core.c
diff options
context:
space:
mode:
authorJames Booth <boothj5@gmail.com>2015-02-02 21:27:58 +0000
committerJames Booth <boothj5@gmail.com>2015-02-02 21:27:58 +0000
commit5954c0d2fe398213b29a8b4aa60340d49bf9946e (patch)
tree0077c528ecac213822d600c06ebad44cae46aa40 /src/ui/core.c
parent51a54260064db3fc5d43456b15d821f192e9d12f (diff)
downloadprofani-tty-5954c0d2fe398213b29a8b4aa60340d49bf9946e.tar.gz
Readline osx compatibility
Diffstat (limited to 'src/ui/core.c')
-rw-r--r--src/ui/core.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/ui/core.c b/src/ui/core.c
index 47aa9d10..d6b45bde 100644
--- a/src/ui/core.c
+++ b/src/ui/core.c
@@ -94,6 +94,10 @@ ui_init(void)
 {
     log_info("Initialising UI");
     initscr();
+    nonl();
+    cbreak();
+    noecho();
+    leaveok(stdscr, FALSE);
     keypad(stdscr, TRUE);
     if (prefs_get_boolean(PREF_MOUSE)) {
         mousemask(ALL_MOUSE_EVENTS, NULL);