diff -r ac02cf1c3576 -r 39947c46ed17 sources/interface.cpp --- a/sources/interface.cpp Thu Jul 23 02:22:26 2015 +0300 +++ b/sources/interface.cpp Thu Jul 23 02:35:13 2015 +0300 @@ -143,7 +143,6 @@ // ------------------------------------------------------------------------------------------------- // Interface::Interface() : - Session (this), InputCursor (0), CursorPosition (0), InputPanning (0), @@ -156,12 +155,7 @@ CurrentInputState (INPUTSTATE_NORMAL), DisconnectConfirmFunction (NULL) { -#ifdef XCURSES - ::Xinitscr(argc, argv); -#else - ::initscr(); -#endif - + ::initscr(); ::raw(); ::keypad (stdscr, true); ::noecho(); @@ -171,6 +165,7 @@ InputHistory << ""; OutputLines.clear(); OutputLines << ColoredLine(); + Session.set_interface (this); Title.sprintf (APPNAME " %s (%d)", full_version_string(), changeset_date_string()); if (::has_colors())