/****************************************************************************
- * Copyright (c) 2006 Free Software Foundation, Inc. *
+ * Copyright (c) 2006-2011,2012 Free Software Foundation, Inc. *
* *
* Permission is hereby granted, free of charge, to any person obtaining a *
* copy of this software and associated documentation files (the *
* authorization. *
****************************************************************************/
/*
- * $Id: redraw.c,v 1.3 2006/11/04 23:20:27 tom Exp $
+ * $Id: redraw.c,v 1.8 2012/12/08 20:46:02 tom Exp $
*
* Demonstrate the redrawwin() and wredrawln() functions.
* Thomas Dickey - 2006/11/4
int max_y, max_x;
int beg_y, beg_x;
+ assert(win != 0);
+
scrollok(win, TRUE);
keypad(win, TRUE);
getmaxyx(win, max_y, max_x);
* using mvcur(). It is ifdef'd for NCURSES, since X/Open does
* not define the case where the old location is unknown.
*/
- system("date");
+ IGNORE_RC(system("date"));
mvcur(-1, -1, y, x);
break;
#endif
if (ch > KEY_MIN) {
waddstr(win, keyname(ch));
} else {
- waddstr(win, unctrl(ch));
+ waddstr(win, unctrl(UChar(ch)));
}
break;
}