Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

werase(3cur) [ultrix man page]

erase(3cur)															       erase(3cur)

Name
       erase, werase - copy blanks into window

Syntax
       #include <cursesX.h>

       int erase()

       int werase(win)
       WINDOW *win;

Description
       The routine copies blanks to every position in the default window, the routine copies blanks to every position in the specified window.

       The routine is a macro.

Return Values
       The and functions return OK on success and ERR on error.

																       erase(3cur)

Check Out this Related Man Page

getstr(3cur)															      getstr(3cur)

Name
       getstr, mvgetstr, mvwgetstr, wgetstr - read string

Syntax
       #include <cursesX.h>

       int getstr(str)
       char *str;

       int wgetstr(win, str)
       WINDOW *win;
       char *str;

       int mvgetstr(y, x, str)
       int y, x;
       char *str;

       int mvwgetstr(win, y, x, str)
       WINDOW *win;
       int y, x;
       char *str;

Description
       The  routine  reads  characters from the terminal associated with the default window and stores them in a buffer until a carriage return or
       newline is received from The routine B is called by to read each character.

       The routine reads characters from the terminal associated with the specified window.  The characters are read from the current cursor posi-
       tion until a newline or carriage return is received.

       The routine reads characters from the terminal associated with the default window.  The characters are read from the specified cursor posi-
       tion until a newline or carriage return is received.

       The routine reads characters from the terminal associated with the specified window.  The characters are read  from  the  specified  cursor
       position until a newline or carriage return is received.

       The following information applies to all the routines.

       The  resulting  string is placed in the area pointed to by the character pointer The user's erase and kill characters are interpreted.  The
       area used to hold the string is assumed to be large enough to handle it, as does not check for buffer overflow.	If the area is	not  large
       enough, the result will be unpredictable.

       The routines and are macros.

Return Values
       The and functions return OK on success and ERR on error.

See Also
       getch(3cur)

																      getstr(3cur)
Man Page

14 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

Trying to block signal

I have this code that doesnt do what it is suppose to do. It should block signal that I send while process is running. I press control+z while this process is running and it should be blocked but it isnt. When i press control+z it gives me this.... + Stopped When I change SIGTSP into SIGINT then... (5 Replies)
Discussion started by: joker40
5 Replies

2. Shell Programming and Scripting

SELECT and wrapping to next column

Hi all, Am trying to write a menu driven script using SELECT and if I have more than 4 options, it wraps to the next column. That is if I have 6 choices, items 5 and 6 are in the second column. Is there any settings that control this behavior or is it due to some stty settings? stty -a... (3 Replies)
Discussion started by: newbie_01
3 Replies

3. Shell Programming and Scripting

How to stop infinite loop

Im unable to stop the below infinite loop (bash script). Can someone tell me why this isnt responding to signals eg: ctrl+c (SIGINT) or ctrl+z c=0 test_loop() { c=$(($c+1)) echo "count value is : $c " sleep 1 test_loop } Im using: SunOS 5.10 PS: If run this as... (13 Replies)
Discussion started by: Arun_Linux
13 Replies

4. Programming

Wrong data with Read from a serial port.

hi, I've a problem on my C/C++ program with Posix Library. I have to read data from the serial but I have incorrect data, in fact I get a bunch of zeros: "2953.3174, 2785.2126, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0 , 0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0 ,... (24 Replies)
Discussion started by: enaud
24 Replies

5. HP-UX

Hpux and vim

On Linux when i use the keyboard end button(located after canc) vim go to the end of line. On Solaris and Hpux print F,why? Ho to make Vim on solaris and hpux like Vim on Linux? Thanks p.s=i already try set nocomp,but doesn't work (2 Replies)
Discussion started by: Linusolaradm1
2 Replies

6. UNIX for Dummies Questions & Answers

Bash does not wrap long lines correctly

Ksh is my default shell, but I want use the bash shell since its convenient to me. When I type a long command line in a terminal, it does not wrap to the next line when I reach the end of the line and it wraps onto the same line, overwriting my prompt and the rest of what I typed. $... (5 Replies)
Discussion started by: senthil.ak
5 Replies

7. UNIX for Dummies Questions & Answers

Terminal telnet echos garbage

i am trying to make powerterm not echo back this charactor. ≥ When I press control-C I get it that telnet charactor/garbage echos back. how to turn off? where? what config? is there something in powerterm to switch on/off? I do not see it. Redhats offical statement is: "I... (10 Replies)
Discussion started by: olyanderson
10 Replies

8. HP-UX

@ character has aberrant behavior

This has been bedeviling me. When I enter the @ character (not ^@) the following occurs: (1) at the csh prompt: nothing and the @ does not displya (2) within sqlplus - @ displays - it puts me on a new line (as if continuing the previous one) - if I try to complete the sql command it... (10 Replies)
Discussion started by: yirgster
10 Replies

9. Shell Programming and Scripting

Source .login

Hello, I am trying to update the .login file via "source .login" after adding an alias. However, I am getting this error: bash-3.2$ source .login bash: .login: line 83: syntax error: unexpected end of file The last line of the file is nothing more than: ################## The new... (12 Replies)
Discussion started by: palex
12 Replies

10. Web Development

Writing to a Serial Port

I am trying to write to a serial port and capture the reponse in a file - adduser ethan dialout The user `ethan' is already a member of `dialout' root@meow:/home/ethan# ls -l /dev/ttyS0 crw-rw-r-- 1 ethan dialout 4, 64 Oct 7 20:55 /dev/ttyS0 $fh1 = fopen("/dev/ttyS0", "w+");... (74 Replies)
Discussion started by: Meow613
74 Replies

11. UNIX for Beginners Questions & Answers

File name starts with esc character.

How can I refer to a file named esc[G ? I need to delete it or move it. TIA (5 Replies)
Discussion started by: wbport
5 Replies

12. Shell Programming and Scripting

Need Menu option each on a new line

Here is my script for the menu options. # Bash Menu Script Example PS3='Please enter your choice: ' options=("Option 1:" "Option 2:" "Other Reason:" "Quit") select opt in "${options}" do case $opt in "Option 1 :") echo "you chose choice 1" ;; ... (3 Replies)
Discussion started by: mohtashims
3 Replies

13. Shell Programming and Scripting

Search for text in files

I am working on a script to search for text. read -p "Enter text to search for : " n1 grep $n1 /home/andy/bin/*.sh It works, but if I backspace, it does this. Enter text to search for : sset Master^ ------ Post updated at 12:39 PM ------ My mistake is I used the left arrow key... (4 Replies)
Discussion started by: drew77
4 Replies

14. UNIX for Beginners Questions & Answers

VI editor keeps automatically adding new lines with "P" char ..

Hello, I am on AIX operating system. Recently, when I open any file in vi editor, it starting adding lines automatically with "P" char in the beginning of each line. This also happens when I open crontab ( crontab -e) ..I have looked in to my .profile and nothing has changed in there for such... (4 Replies)
Discussion started by: shethkb
4 Replies