blank.gif (43 bytes)

Church Of The
Swimming Elephant

Search:
Index | Description | Usage | Options | Variables | Hints | Bulletproof

stty [args]

Arguments Description
< terminal  Terminal to modify 
-raw | cooked Cooked mode
raw | -cooked Raw mode 
echo Echo
-echo No echo
rows [#] Set or return rows 
columns [#]  Set or return columns 
local-stty -args Execute native stty command

Changes terminal modes similarly to the external stty command. 
By default, the controlling terminal is accessed. Other terminals can be accessed by appending “< /dev/tty...” to the command. (Note that the arguments should not be grouped into a single argument.) 

Requests for status return it as the result of the command. If no status is requested and the control-ling terminal is accessed, the previous status of the raw and echo attributes are returned in a form which can later be used by the command. 

For example, the arguments raw or -cooked put the terminal into raw mode. The arguments -raw or cooked put the terminal into cooked mode. The arguments echo and -echo put the terminal into echo and noecho mode respectively. 

The following example illustrates how to temporarily disable echoing. This could be used in otherwise-automatic scripts to avoid embedding passwords in them. 

stty -echo 
send_user “Password: “ 
expect_user -re “(.*)\n” 
set password $expect_out(1,string) 
stty echo



This material is excerpted from the O'Reilly book "Exploring Expect" by Don Libes, and can also be found in the manpage on many UNIX platforms. 

 

Cotse.Net

Protect yourself from cyberstalkers, identity thieves, and those who would snoop on you.
Stop spam from invading your inbox without losing the mail you want. We give you more control over your e-mail than any other service.
Block popups, ads, and malicious scripts while you surf the net through our anonymous proxies.
Participate in Usenet, host your web files, easily send anonymous messages, and more, much more.
All private, all encrypted, all secure, all in an easy to use service, and all for only $5.95 a month!

Service Details

 
.
www.cotse.com
Have you gone to church today?
.
All pages ©1999, 2000, 2001, 2002, 2003 Church of the Swimming Elephant unless otherwise stated
Church of the Swimming Elephant©1999, 2000, 2001, 2002, 2003 Cotse.com.
Cotse.com is a wholly owned subsidiary of Packetderm, LLC.

Packetderm, LLC
210 Park Ave #308
Worcester, MA 01609