bug-ncurses
[Top][All Lists]
Advanced

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

Re: keeping text within a *WINDOW


From: Thomas Dickey
Subject: Re: keeping text within a *WINDOW
Date: Tue, 11 Jun 2002 11:13:08 -0400
User-agent: Mutt/1.2.5i

On Tue, Jun 11, 2002 at 11:01:14AM -0400, John Bleichert wrote:
> Greetings - is there any ncurses-defined way to keep a cursor within a 
> *WINDOW (i.e. get it to 'wrap' at a rightmost boundary)? Write now I'm 
> doing it with a getparyx/getch combination but I'm curious if there's 
> another way.

man addch:

       The  addch,  waddch, mvaddch and mvwaddch routines put the
       character ch into the given window at its  current  window
       position,  which  is then advanced.  They are analogous to
       putchar in stdio(3).  If the advance is at the right  mar-
       gin,  the  cursor  automatically wraps to the beginning of
       the next line.  At the bottom  of  the  current  scrolling
       region,  if  scrollok  is enabled, the scrolling region is
       scrolled up one line.

> 
> Thanks - JB
> 
> /* 
>  * John Bleichert
>  * address@hidden
>  * http://vonbek.dhs.org/latest.jpg
>  */
> 
> 
> _______________________________________________
> Bug-ncurses mailing list
> address@hidden
> http://mail.gnu.org/mailman/listinfo/bug-ncurses

-- 
Thomas E. Dickey <address@hidden>
http://invisible-island.net
ftp://invisible-island.net



reply via email to

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