Readline osx compatibility

This commit is contained in:
James Booth
2015-02-02 21:27:58 +00:00
parent 51a5426006
commit 5954c0d2fe
3 changed files with 21 additions and 10 deletions

View File

@@ -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);