[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: getch() & waddstr()

From: Thomas Dickey
Subject: Re: getch() & waddstr()
Date: Thu, 4 Sep 2008 20:17:28 -0400 (EDT)

On Thu, 4 Sep 2008, raixun wrote:

hi there

i cannot see Text when i put waddstr(win,"Hello World") on anyline in code
(include initscr wrefresh .... vs)  but if i put getch() function in before
line of waddstr() function then i can see my "Hello World" text. is it
possible i put waddstr() function without before getch() ?

getch() refreshes stdscr.

wgetch(win) refreshes win.

waddstr(win) writes on win; the output is not shown until win is refreshed.

Refreshing stdscr overwrites other windows, especially those that have
not been refreshed yet.

Thomas E. Dickey

reply via email to

[Prev in Thread] Current Thread [Next in Thread]