STTY

Section: User Commands (1)
Updated: MiNT
Index Return to Main Contents
 

NAME

stty - set terminal state  

SYNOPSIS

stty [ options... ] [ keys... ]  

DESCIPTION

With no arguments, stty prints the terminal status of the current control terminal (normally the console). With arguments, stty changes the state of the terminal. Arguments may be either options (which set or clear terminal modes) or keyword-key pairs (which change various control keys).  

OPTIONS

The following options are available:
crmode
convert carriage return to line feed on input
cbreak
return from a read as soon as any character is available, rather than waiting for a whole line to be input
echo
echo characters as they are input
raw
do not interpret any control characters, and do not wait for end of line before returning from a read
tostop
send a SIGTTOU signal to any background process that tries to output to the terminal
xkey
translate cursor and function key presses into escape sequences when read by Fread()

Preceding any of the above by a ``-'' will turn the option off. Doing

stty -raw -cbreak echo crmod tostop xkey

should reset the terminal to its default state. Note that only MiNT aware programs will be affected by most flags (except for "tostop").  

KEYS

The following keys may be reprogrammed by giving the key name, a space, and the new key (to get a control character as the new key, prefix a ``^'' to the letter):

Name    Description                     Default

intr    interrupt key                     ^C
quit    quit key                          ^\
start   re-start output                   ^Q
stop    suspend output                    ^S
eof     mark end of file                  ^D
brk     end of line character             ^M
susp    suspend process                   ^Z
dsusp   delayed suspension of process     ^Y
rprnt   reprint line                      ^R
 

IMPLEMENTATION

Built with the MiNT library, patchlevel 19. Using a different library, or an earlier version of the MiNT library, may or may not cause problems; in particular, various constants defined in <signal.h> and <ioctl.h> will probably be wrong if you are not using the MiNT library.


 

Index

NAME
SYNOPSIS
DESCIPTION
OPTIONS
KEYS
IMPLEMENTATION

This document was created by man2html, using the manual pages.
Time: 23:26:07 GMT, January 03, 2023