Insert a character at the current cursor position in the specified
window. The insch function acts on the stdscr window.
Format
#include <curses.h>
int insch (char ch);
int winsch (WINDOW *win, char ch);
Arguments
- win
- A pointer to the window.
- ch
- The character to be inserted.
Description
After the character is inserted, each character on the line
shifts to the right, and the last character in the line is deleted.
For more information, see the scrollok function in this section.
Return Values
OK | Indicates success. |
ERR | Indicates that the function makes the
screen scroll illegally. |
Previous Page | Next Page | Table of Contents | Index