Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

echo(3xcurses) [sunos man page]

echo(3XCURSES)						  X/Open Curses Library Functions					    echo(3XCURSES)

NAME
echo, noecho - enable/disable terminal echo SYNOPSIS
cc [ flag... ] file... -I /usr/xpg4/include -L /usr/xpg4/lib -R /usr/xpg4/lib -lcurses [ library... ] c89 [ flag... ] file... -lcurses [ library... ] #include <curses.h> int echo(void); int noecho(void); DESCRIPTION
The echo() function enables Echo mode for the current screen. The noecho() function disables Echo mode for the current screen. Initially, curses software echo mode is enabled and hardware echo mode of the tty driver is disabled. The echo() and noecho() functions control soft- ware echo only. Hardware echo must remain disabled for the duration of the application, else the behavior is undefined. RETURN VALUES
Upon successful completion, these functions return OK. Otherwise, they return ERR. ERRORS
No errors are defined. ATTRIBUTES
See attributes(5) for descriptions of the following attributes: +-----------------------------+-----------------------------+ | ATTRIBUTE TYPE | ATTRIBUTE VALUE | +-----------------------------+-----------------------------+ |Interface Stability |Standard | +-----------------------------+-----------------------------+ |MT-Level |Unsafe | +-----------------------------+-----------------------------+ SEE ALSO
getch(3XCURSES), getstr(3XCURSES), initscr(3XCURSES), libcurses(3XCURSES), scanw(3XCURSES), attributes(5), standards(5) SunOS 5.10 5 Jun 2002 echo(3XCURSES)

Check Out this Related Man Page

typeahead(3XCURSES)					  X/Open Curses Library Functions				       typeahead(3XCURSES)

NAME
typeahead - check for type-ahead characters SYNOPSIS
cc [ flag... ] file... -I /usr/xpg4/include -L /usr/xpg4/lib -R /usr/xpg4/lib -lcurses [ library... ] c89 [ flag... ] file... -lcurses [ library... ] #include <curses.h> int typeahead(int fd); PARAMETERS
fd Is the file descriptor that is used to check for type-ahead characters. DESCRIPTION
The typeahead() function specifies the file descriptor (fd) to use to check for type-ahead characters (characters typed by the user but not yet processed by X/Open Curses). X/Open Curses checks for type-ahead characters periodically while updating the screen. If characters are found, the current update is postponed until the next refresh(3XCURSES) or doupdate(3XCURSES). This speeds up response to commands that have been typed ahead. Nor- mally, the input file pointer passed to newterm(3XCURSES), or stdin in the case of initscr(3XCURSES), is used for type-ahead checking. If fd is -1, no type-ahead checking is done. RETURN VALUES
On success, the typeahead() function returns OK. Otherwise, it returns ERR. ERRORS
None. ATTRIBUTES
See attributes(5) for descriptions of the following attributes: +-----------------------------+-----------------------------+ | ATTRIBUTE TYPE | ATTRIBUTE VALUE | +-----------------------------+-----------------------------+ |Interface Stability |Standard | +-----------------------------+-----------------------------+ |MT-Level |Unsafe | +-----------------------------+-----------------------------+ SEE ALSO
doupdate(3XCURSES), getch(3XCURSES), initscr(3XCURSES), libcurses(3XCURSES), attributes(5), standards(5) SunOS 5.11 5 Jun 2002 typeahead(3XCURSES)
Man Page

15 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

StartX

Hi guys :) I'm having a slight problem. Every time I run the StartX command from my csh, it just says cannot access terminal. Can anyone tell me why this is and what it means? Thank you :) hellz. (15 Replies)
Discussion started by: hellz
15 Replies

2. UNIX for Dummies Questions & Answers

error

Hello Any idea where is the error ? *) echo " Wrong selection. Try again " continue ;; esac done echo "Done" Thanks alot (10 Replies)
Discussion started by: props
10 Replies

3. Shell Programming and Scripting

If condition getting bypassed

Hi, I am trying something like: c=`awk -F"|" '{ print NF }' test.txt` echo "c is $c" if then echo "More than One field" else echo "One field" fi The test.txt file has something like: lkadaldj| fdsakfdsafd| ddddddd| The value of "c" is 2 in above case. If any rows in the file... (11 Replies)
Discussion started by: rkumar28
11 Replies

4. UNIX for Advanced & Expert Users

Weird Awk issue

Hi All, a bit of a weird one here. I'm trying to pass a variable into an awk command, and I keep getting an error. I have the line nawk -F"," -v red=$random_variable '{print $red}' $w_dir/$file_name > $w_dir/${column_name} that keeps failing with the error nawk: can't open file {print... (17 Replies)
Discussion started by: Khoomfire
17 Replies

5. Shell Programming and Scripting

How to capture status code and echo a message

Im trying to execute application and its return code is below IF Status code=o echo "........" else Staus Code =-2 DJRE then echo "......" Can any one help me how to handle the status code and echo some message. (12 Replies)
Discussion started by: laknar
12 Replies

6. UNIX for Dummies Questions & Answers

to remove space in a txt file

I want to fetch text after the first occurance of the word "started at" i.e. consider a text written below... echo 'hi how r u ' Started at MON Jan 11 00:03:24 EST 2009 echo 'hi how is ur job goin on' Started at Sun Jan 11 00:03:24 EST 2004 Started at TUE Jan 11 00:03:24 EST 2005 Started... (19 Replies)
Discussion started by: manit
19 Replies

7. Shell Programming and Scripting

VG calculation in GB

for i in `lsvg` do echo "VG Name:" $i echo "Total VG Size:" lsvg $i |grep "TOTAL PPs:" |awk '{print $7}' | cut -c2- echo "Free VG Size:" lsvg $i |grep "FREE PPs:" | awk '{print $7}' | cut -c2- done The PP Sizes are in MB. I like to have the sizes in GB. Also, I like to have the... (14 Replies)
Discussion started by: Daniel Gate
14 Replies

8. UNIX for Dummies Questions & Answers

Help me with Echo Command

Hi All I have the big statement which needs to be appended to the file MANUALLY without opening the file. So, i tried with echo command echo " failure ( 4446): for host xx.xx.xx.xxx trying to GET /index.html, wl-proxy reports: exception occurred for backend host 'xx.xx.xxx.xx/12210/12210':... (11 Replies)
Discussion started by: Kalaiela
11 Replies

9. UNIX for Dummies Questions & Answers

Find error in the shell script file

echo "******Select Option:******" echo "1 - script1" echo "2 - script2" echo "3 - script3 " read option echo "You have selected" $option"." if then /scratch/username/script1.sh elif then /scratch/username/script2.sh elif then /scratch/username/script3.sh else echo "Please try again... (12 Replies)
Discussion started by: Dish
12 Replies

10. Shell Programming and Scripting

Echo not displaying variable in If-Else condition

if then echo "Entry Valid : ${x_oug}" else echo "Entry Invalid : " 0 fi In the above code the 3rd line is not working... it does not print anything I tried following as well .. but no luck! echo "Entry Valid : ... (13 Replies)
Discussion started by: Chetanz
13 Replies

11. Linux

Peculiar behavior due to IFS

aa=| echo $aa The above echo works but the below echo fails. Why please? IFS=: aa=| echo $aa echo $IFS The later 'echo' command will work if variable is put in codes. echo "$aa" echo "$IFS" I summarize that when IFS is set to ':' or '|', echo used with variable doesn't work unless... (22 Replies)
Discussion started by: ravisingh
22 Replies

12. UNIX for Dummies Questions & Answers

Redirect output of echo to a file

Hi , I am trying to redirect output of echo to a file.So i wrote a function named printline.Here is my sample script myscript.sh function printline() { echo "$1" >> myfile.log } usage() { printLine "********************USAGE*************************" printLine "Script takes... (12 Replies)
Discussion started by: ASC
12 Replies

13. UNIX for Dummies Questions & Answers

New line in Echo command

Hi , This might sound little familar to you guys, but am struck with something. i have an IF conditioned loop which will determine a variable to get used in the later part of the script. if ; then if ; then Var_name="This is first line.This is second line.This is... (11 Replies)
Discussion started by: scott_cog
11 Replies

14. UNIX for Beginners Questions & Answers

Cat command does not respect new line

Here's my script echo "1" >>hello.txt echo "2" >>hello.txt echo "3" >>hello.txt mailx -s "Check Status" #myteam@mycomp.com<hello.txt In Outlook I see EMail body as when I want it to be can you please suggest ? (29 Replies)
Discussion started by: mohtashims
29 Replies

15. What is on Your Mind?

Naive coding...

"Naive coding." (Apologies for any typos.) I came across this phrase a couple of weeks ago and it has made me decide to set off a discussion. I had never heard of it before but I did some research and discovered that I probably fall into this category. My phrase is: "I code to work, not... (10 Replies)
Discussion started by: wisecracker
10 Replies