From 80fb8aa60d20720b2f5322dd3f29d8215bfec8e4 Mon Sep 17 00:00:00 2001 From: Maxime Coste Date: Wed, 22 Apr 2015 22:03:01 +0100 Subject: [PATCH] Use puts instead of printf in ncurses_ui --- src/ncurses_ui.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/ncurses_ui.cc b/src/ncurses_ui.cc index 562b6771..d18dc9ba 100644 --- a/src/ncurses_ui.cc +++ b/src/ncurses_ui.cc @@ -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);