Use puts instead of printf in ncurses_ui

This commit is contained in:
Maxime Coste 2015-04-22 22:03:01 +01:00
parent f6c7948c12
commit 80fb8aa60d

View File

@ -263,7 +263,7 @@ NCursesUI::NCursesUI()
mousemask(ALL_MOUSE_EVENTS | REPORT_MOUSE_POSITION, nullptr);
mouseinterval(0);
// force enable report mouse position
printf("\033[?1002h");
puts("\033[?1002h");
update_dimensions();
wrefresh(stdscr);
@ -271,7 +271,7 @@ NCursesUI::NCursesUI()
NCursesUI::~NCursesUI()
{
printf("\033[?1002l");
puts("\033[?1002l");
endwin();
signal(SIGWINCH, SIG_DFL);
signal(SIGINT, SIG_DFL);