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
endwin(3XCURSES) X/Open Curses Library Functions endwin(3XCURSES)NAME
endwin, isendwin - restore initial terminal environment
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 endwin(void);
bool isendwin(void);
DESCRIPTION
The endwin() function restores the terminal after Curses activity by at least restoring the saved shell terminsl mode, flushing any output
to the terminal, and moving the cursor to the first column of the last line of the screen. Refreshing a window resumes program mode. The
application must call endwin() for each terminal being used before exiting. If newterm(3XCURSES) is called more than once for the same ter-
minal, the first screen created must be the last one for which endwin() is called.
The isendiwin() function indicates whether or not a screen has been refreshed since the last call to endwin().
RETURN VALUES
Upon successful completion, the endwin() function returns OK. Otherwise, it returns ERR.
The isendwin() function returns TRUE if endwin() has been called without any subsequent refresh. Otherwise, it returns FALSE.
ERRORS
Non 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 doupdate(3XCURSES), libcurses(3XCURSES), newterm(3XCURSES), attributes(5), standards(5)SunOS 5.11 5 Jun 2002 endwin(3XCURSES)
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)
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)
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)
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)
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)
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)
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)
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)
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)
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)
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)
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)
"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)