Inserts a single-byte character and rendition in a window.
#include <curses.h>
int insch(chtype ch);
int mvinsch(int y, chtype h);
int mvwinsch(WINDOW *win,
int x,
int y,
chtype h);
int winsch(WINDOW *win, chtype h);
These subroutines insert the character and rendition into the current or specified window at the current or specified position.
These subroutines do not perform wrapping or advance the cursor position. These functions perform special-character processing, with the exception that if a newline is inserted into the last line of a window and scrolling is not enabled, the behavior is unspecified.
ch | |
y | |
x | |
*win | Specifies the window in which to insert the character. |
Upon successful completion, these subroutines return OK. Otherwise, they return ERR.
chtype x; insch(x);
WINDOW *my_window chtype x; winsch(my_window, x);
chtype x; mvinsch(10, 5, x);
WINDOW *my_window; chtype x; mvwinsch(my_window, 10, 5, x);
These subroutines are part of Base Operating System (BOS) Runtime.
Curses Overview for Programming in AIX 5L Version 5.1 General Programming Concepts: Writing and Debugging Programs.
List of Curses Subroutines in AIX 5L Version 5.1 General Programming Concepts: Writing and Debugging Programs.
Manipulating Characters with Curses in AIX 5L Version 5.1 General Programming Concepts: Writing and Debugging Programs.