Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

mvinsch(3x) [mojave man page]

curs_insch(3X)															    curs_insch(3X)

NAME
insch, winsch, mvinsch, mvwinsch - insert a character before cursor in a curses window SYNOPSIS
#include <curses.h> int insch(chtype ch); int winsch(WINDOW *win, chtype ch); int mvinsch(int y, int x, chtype ch); int mvwinsch(WINDOW *win, int y, int x, chtype ch); DESCRIPTION
These routines insert the character ch before the character under the cursor. All characters to the right of the cursor are moved one space to the right, with the possibility of the rightmost character on the line being lost. The insertion operation does not change the cursor position. RETURN VALUE
All routines that return an integer return ERR upon failure and OK (SVr4 specifies only "an integer value other than ERR") upon successful completion, unless otherwise noted in the preceding routine descriptions. NOTES
These routines do not necessarily imply use of a hardware insert character feature. Note that insch, mvinsch, and mvwinsch may be macros. PORTABILITY
These functions are described in the XSI Curses standard, Issue 4. SEE ALSO
curses(3X). Comparable functions in the wide-character (ncursesw) library are described in curs_ins_wch(3X). curs_insch(3X)

Check Out this Related Man Page

curs_insch(3X)															    curs_insch(3X)

NAME
insch, winsch, mvinsch, mvwinsch - insert a character before cursor in a curses window SYNOPSIS
#include <curses.h> int insch(chtype ch); int winsch(WINDOW *win, chtype ch); int mvinsch(int y, int x, chtype ch); int mvwinsch(WINDOW *win, int y, int x, chtype ch); DESCRIPTION
These routines insert the character ch before the character under the cursor. All characters to the right of the cursor are moved one space to the right, with the possibility of the rightmost character on the line being lost. The insertion operation does not change the cursor position. RETURN VALUE
All routines that return an integer return ERR upon failure and OK (SVr4 specifies only "an integer value other than ERR") upon successful completion, unless otherwise noted in the preceding routine descriptions. NOTES
These routines do not necessarily imply use of a hardware insert character feature. Note that insch, mvinsch, and mvwinsch may be macros. PORTABILITY
These functions are described in the XSI Curses standard, Issue 4. SEE ALSO
curses(3X). Comparable functions in the wide-character (ncursesw) library are described in curs_ins_wch(3X). curs_insch(3X)
Man Page

4 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Inserting a character in a data file

Can some one tell me how I can insert a "|" (pipe) at the 15th column throughout a file? examples: to insert at begining of line i use :g/^/s//\|/ to insert at ene of line i use :g/$/s//\|/ how can i insert at the 15th column position. Thanks in advance (2 Replies)
Discussion started by: jxh461
2 Replies

2. Shell Programming and Scripting

awk insert character in the middle of a line

I'm trying to insert a single character at position 11 in everyline of a file. My input file looks like this: 456781 ~Y~12345 456782 ~N~12300 and I want my output to look like this: 45678~1 ~Y~12345 45678~2 ~N~12300 I tried the following awk code, but it's not working:... (3 Replies)
Discussion started by: mmarino
3 Replies

3. UNIX for Dummies Questions & Answers

How can I insert character to end of file?

Hello all How can I insert character to the end of text file without opening it in vi Just simple one liner, can it be done? Tnx (1 Reply)
Discussion started by: umen
1 Replies

4. UNIX for Dummies Questions & Answers

unable to insert '#' char for a file in vi mode

Hi all, I am very new to this forum and also new to UNIX. I am working on HP-UX machine. I noticed that for some of the users I am unable to insert the # character in a file in vi mode. May I know y am I having the problem and how can I resolve this Thanks, Maroli (1 Reply)
Discussion started by: maroli
1 Replies