output to the screen
from the howto there are three functions only: 2
- character routines: addch
int addch(chtype ch);
- string routines: printw
printw allowes for formatting like printf
problems:
- clear a window, print to the window
- move to beginning of window, print there, refresh window
solutions:
- draw to all windows with mvwprintw(..) and call refresh() which refreshes all windows at once
-
output to the screen with movement
from the howto there are three functions only: 2
- character routines: addch
int mvaddch(chtype ch);
mvwaddch(): as above only operates on a window
waddch: display a character to a user-specified window
- string routines: printw
printw allowes for formatting like printf
- addstr
windows/screens
screens
windows
stdscr is the default window
app_init()----->
echoch
echochar: addch + refresh()
wechochar: addch + wrefresh()
or characters
A_NORMAL-------->
A_STANDOUT-------->
A_UNDERLINE-------->
A_REVERSE-------->
A_BLINK-------->
A_BOLD-------->
addch(ch | A_BOLD | A_UNDERLINE )---> does both bold and
underlined
return to top