libgui: fix declaration consistency

Lots of little things here. The forward declarations for some of these functions simply did not match the function definitions.

  • clrscr() was declared twice
  • cprintf(), putch(), putwch(), window(), clrscr() all returned 'void' instead of 'int'.
  • getch() and strlwr() were defined extern "C", but not declared as such.

Also made libgui.cc functions behave like their ncurses equivalents, except that our functions always return the ncurses 'OK' (0) response.

Signed-off-by: Steven Noonan <steven@uplinklabs.net>

Created by  Steven Noonan  on September 20, 2009
CIVOVEMMBYAR4NJ4GPNBW3B5YLY3Q2KUODXDEQN4TGACC5KEFKDAC
Change contents