Mineserver Community

Mineserver => Plugins => Topic started by: benoqkuke on April 02, 2011, 05:54:07 am



Title: curseui
Post by: benoqkuke on April 02, 2011, 05:54:07 am
Hi,

I changed the end function so now the terminal do not crash at the end. Here is my new end function:
Code:
void CursesScreen::end()
{
  // Kill our windows
  destroyWindow(playerWin);
  destroyWindow(chatWin);
  destroyWindow(logWin);
  destroyWindow(titleWin);
  destroyWindow(commandWin);
 
  // Stop NCurses
  endwin();
}

The terminal is not cleared at the end but does not crash anymore !

I'm trying to clear properly the terminal, I'll post my solution if it proper enough.