The Open Source Swiss Army Knife

/code/c/unix_c/
/code/c/unix_c/ + sub-categories
http://www.sirfsup.com/
web directory content
    
      

Not logged in
Chat Register Login
return to:  http:/www.sirfsup.com      /code   /c   /unix_c 
Permalink: ncurses.htm
Title: add
article options : please login   |  print view

  1. output to the screen
  2. output to the screen with movement
  3. windows/screens
  4. echoc
  5. OR values (can be used with addstr and addch

output to the screen

    from the howto there are three functions only: 2
  1. character routines: addch
    int addch(chtype ch);
  2. string routines: printw
    printw allowes for formatting like printf
    problems:
  1. clear a window, print to the window
  2. move to beginning of window, print there, refresh window
    solutions:
  1. 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
  1. character routines: addch
    int mvaddch(chtype ch);

    mvwaddch(): as above only operates on a window
    waddch: display a character to a user-specified window
  2. string routines: printw
    printw allowes for formatting like printf
  3. 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

Leave a Reply
Your Name:     anonymous
Your Email:
Website:  
Comments:

The author will be notified of your reply.
return to top