stty(2) System Calls Manual stty(2)NAME
stty(), gtty() - control terminal device (Bell Version 6 compatibility)
SYNOPSIS
Remarks
These system calls are preserved for backward compatibility with Bell Version 6. They provide as close an approximation as possible to the
old Version 6 functions. All new code should use the and calls described in termio(7).
DESCRIPTION
For certain status settings and status inquiries about terminal devices, the functions and are equivalent to
and
respectively (see ioctl(2) and termio(7).
RETURN VALUE
and return the following values:
Successful completion.
Failure.
is set to indicate the error.
ERRORS
If or fails, is set to one of the following values:
[EBADF] is not a valid file descriptor.
[EFAULT] points to an invalid address.
WARNINGS
Obsolescent Interfaces
and are to be obsoleted at a future date.
SEE ALSO stty(1), exec(2), ioctl(2), sttyV6(7), termio(7), tty(7).
TO BE OBSOLETED stty(2)
Check Out this Related Man Page
IOCTL(2) System Calls Manual IOCTL(2)NAME
ioctl, stty, gtty - control device
SYNOPSIS
#include <sgtty.h>
ioctl(fildes, request, argp)
struct sgttyb *argp;
stty(fildes, argp)
struct sgttyb *argp;
gtty(fildes, argp)
struct sgttyb *argp;
DESCRIPTION
Ioctl performs a variety of functions on character special files (devices). The writeups of various devices in section 4 discuss how ioctl
applies to them.
For certain status setting and status inquiries about terminal devices, the functions stty and gtty are equivalent to
ioctl(fildes, TIOCSETP, argp)
ioctl(fildes, TIOCGETP, argp)
respectively; see tty(4).
The following two calls, however, apply to any open file:
ioctl(fildes, FIOCLEX, NULL);
ioctl(fildes, FIONCLEX, NULL);
The first causes the file to be closed automatically during a successful exec operation; the second reverses the effect of the first.
SEE ALSO stty(1), tty(4), exec(2)DIAGNOSTICS
Zero is returned if the call was successful; -1 if the file descriptor does not refer to the kind of file for which it was intended.
BUGS
Strictly speaking, since ioctl may be extended in different ways to devices with different properties, argp should have an open-ended dec-
laration like
union { struct sgttyb ...; ... } *argp;
The important thing is that the size is fixed by `struct sgttyb'.
ASSEMBLER
(ioctl = 54.)
sys ioctl; fildes; request; argp
(stty = 31.)
(file descriptor in r0)
stty; argp
(gtty = 32.)
(file descriptor in r0)
sys gtty; argp
IOCTL(2)
stty: : Not a typewriter
the above error comes after i execute the script below o hpux B.11.00
#!/usr/bin/ksh
/bin/su - <oraid> -c "svrmgrl" << EOF
connect internal
startup
exit
EOF
echo "# End "`date +%D" "%T` >> time.log (4 Replies)
Hi
Problem of ps on Solaris 8 and 9
Perhaps a silly question but I can't find a solution.
the output of the command ps -ef is truncated.
I've tried to change the terminal settings with stty putting
a big number of colums: no change.
Following the man page of ps i have set the variable... (8 Replies)
Hi all
I am getting the following error when i execute my cronjob :
stty: : No such device or address
stty: : No such device or address
What could be the problem.
Thanks
Rahul (3 Replies)
I encoutered the error "stty: : No such device or address" in the korn shell script log. I added STTY EARSE ^H in profile. why iam i getting that error in Korn shell
Thanks
nandinisagar (6 Replies)
I've been doing a lot of searching through the forums to figure out how to:
1 - get my Backspace key to work in my ksh telnet session
2 - get the PWD to show up as the prompt
Solution to 1 - stty erase ^H
Solution to 2 - export PS1="$PWD>"
Or so I thought...type those commands on the... (6 Replies)
Hi,
I have an app that runs Oracle 8.1.7 residing on a AIX 4.3 ML 10 . preiodically app sends out a status log like the one displayed below. Lately I have noticed this stty:tcgetattr message in the log. Script that writes this output calls sqlplus, gets the required count and writes output to... (8 Replies)
Hi All,
I have been runing the same set of program using the same auto profile for an year.
Now when i run the same set of process , i getting the below error
Not a terminal
stty: : Not a typewriter
stty: : Not a typewriter
ksh: jil: not found
ksh: sendevent: not found
logout... (4 Replies)
Hi,
I'm have a big problem with one of the C programs that I'm developping.
actually, I'm trying to monitor the users' session in solaris.
therefore, I have used the source code of the unix "script" command. but the problem is that, when i run that program, the stty settings are lost:
speed... (4 Replies)
Hello.
I'm experiencing a frustrating issue.
I'm using an old, unsupported terminal client (QVT) with AIX 6.1 using ssh2. I've come up with some stty settings that allow full usage of the system but to do so I've had to set "igncr". While this works fine once the user is logged in there are... (12 Replies)
I am having hard time understanding what this really do to the environment? I do understand this part "tty -s && stty " but not "istrip"
# stty command is executed only if a tty is attached to the process.
# stty istrip : Strip input characters to 7 bits
tty -s && stty istrip
I am... (3 Replies)
hi,
i am trying to execute a script through Cron, then everytime it is redirecting a message
stty: : No such device or address
Unmatched `
here is the cron entry:
35,40,45,50,55 04,05 07 08 * /uv1402/u207/home/bravodba/bestdbscript/shscriptfiles/bravo_main_refresh.sh
while the script... (20 Replies)
Hello friends, I am trying to communicate with a programmer memory from Unix (HP-UX) via serial port.
Well, I have some code ready stty parameters to achieve communicating the device with the computer, but I have my doubts. I would like to know if you have some code fragment where you use the... (5 Replies)
We are getting a following stty error when I am running a script.
stty: standard input: Inappropriate ioctl for device
I have some of following stty settings in my .profile. Tried other options still not able to fix it.
stty rows 40 cols 130 erase ^? intr ^C
export TERM=xterm
stty... (6 Replies)
Hi,
I'm writing a BBS terminal program. And have hit a major roadblock. My terminal works fine for every BBS out there, except Mystic BBSes. I've narrowed down the problem to the usage of the stty() command. The problem is so: I cannot use the arrow keys to select certain things on Mystic... (4 Replies)