Curses Library Functions curs_alecompat(3CURSES)
NAME
curs_alecompat, movenextch, wmovenextch, moveprevch, wmo-
veprevch, adjcurspos, wadjcurspos - these functions are
added to ALE curses library for moving the cursor by charac-
ter.SYNOPSIS
cc [ flag ... ] file ... -lcurses [ library .. ]
#include
int movenextch(void);
int wmovenextch(WINDOW *win);
int moveprevch(void); int wmoveprevch(WINDOW *win); int adjcurspos(void); int wadjcurspos(WINDOW *win);DESCRIPTION
movenextch() and wmovenextch() move the cursor to the next
character to the right. If the next character is a mul-
ticolumn character, the cursor is positioned on the first(left-most) column of that character. The new cursor posi-
tion will be on the next character, even if the cursor wasoriginally positioned on the left-most column of a mul-
ticolumn character. Note that the simple cursor increment (++x) does not guarantee movement to the next character, ifthe cursor was originally positioned on a multicolumn char-
acter. getyx(3CURSES) can be used to find the new position. moveprevc() and wmoveprevch() routines are the opposite ofmovenextch() and wmovenextch(), moving the cursor to the
left-most column of the previous character.
adjcurspos() and wadjcurspos() move the cursor to thefirst(left-most) column of the multicolumn character that
the cursor is presently on. If the cursor is already on thefirst column, or if the cursor is on a single-column char-
acter, these routines will have no effect.SunOS 5.11 Last change: 31 Dec 1996 1
Curses Library Functions curs_alecompat(3CURSES)
RETURN VALUE All routines return the integer ERR upon failure and an integer value other than ERR upon successful completion.ATTRIBUTES
See attributes(5) for descriptions of the following attri-
butes:____________________________________________________________
| ATTRIBUTE TYPE | ATTRIBUTE VALUE |
|_____________________________|_____________________________|
| MT-Level | Unsafe |
|_____________________________|_____________________________|
SEE ALSO
curses(3CURSES), getyx(3CURSES), attributes(5) NOTES The header fileautomatically includes the header files , and . Note that movenextch(), moveprevch(), and adjcurspos() may
be macros.SunOS 5.11 Last change: 31 Dec 1996 2