<<< Date Index >>>     <<< Thread Index >>>

Re: macro help



On Mon, Sep 29, 2003 at 07:01:06PM -0400, David Yitzchak Cohen wrote:
> On Mon, Sep 29, 2003 at 10:40:04AM -0400, Thomas Dickey wrote:
> 
> > It doesn't "suspend" the shell.  It stops output.
> 
> Okay, just for clarity's sake: the ^s character tells the terminal
> to suspend itself until it receives a ^q character (which tells it to

For even more clarity, the ^s key turns on the terminal's STOP
functon, and ^q activates the terminal's START function.  The behavior
is as has already been described.  The keys assigned to these terminal
functions CAN BE CHANGED.  You can see what they're currently set to
using the stty command, and you can change them using the same
command.  For example:

  $ stty -a
  speed 38400 baud; rows 24; columns 80; line = 0; 
  intr = ^C; quit = ^\; erase = ^?; kill = ^U; eof = ^D; eol = <undef>; eol2 =
  <undef>; start = ^Q; stop = ^S; susp = ^Z; rprnt = ^R; werase = ^W; lnext =
  ^V; flush = ^O; min = 1; time = 0;
  -parenb -parodd cs8 -hupcl -cstopb cread -clocal -crtscts -ignbrk -brkint
  -ignpar -parmrk -inpck -istrip -inlcr -igncr icrnl ixon -ixoff -iuclc -ixany
  -imaxbel opost -olcuc -ocrnl onlcr -onocr -onlret -ofill -ofdel nl0 cr0 tab0
  bs0 vt0 ff0 isig icanon iexten echo echoe echok -echonl -noflsh -xcase
  -tostop -echoprt echoctl echoke

  $ stty stop ^b
  $ stty start ^r
  $ stty -a
  speed 38400 baud; rows 24; columns 80; line = 0;
  intr = ^C; quit = ^\; erase = ^?; kill = ^U; eof = ^D; eol = <undef>; eol2 =
  <undef>; start = ^R; stop = ^B; susp = ^Z; rprnt = ^R; werase = ^W; lnext =
  ^V; flush = ^O; min = 1; time = 0;
  -parenb -parodd cs8 -hupcl -cstopb cread -clocal -crtscts -ignbrk -brkint
  -ignpar -parmrk -inpck -istrip -inlcr -igncr icrnl ixon -ixoff -iuclc -ixany
  -imaxbel opost -olcuc -ocrnl onlcr -onocr -onlret -ofill -ofdel nl0 cr0 tab0
  bs0 vt0 ff0 isig icanon iexten echo echoe echok -echonl -noflsh -xcase
  -tostop -echoprt echoctl echoke

Personally, I don't advocate doing this; I think it's better to get
accustomed to the way things are normally configured, so you're not at
a loss when you're on some other system and you can't figure out
what's not working...  But ultimately, it's up to you.  It's
configureable by the user, so that the user can configure it...

-- 
Derek D. Martin
http://www.pizzashack.org/
GPG Key ID: 0xDFBEAD02
-=-=-=-=-
This message is posted from an invalid address.
Replying to it will result in undeliverable mail.
Sorry for the inconvenience.  Thank the spammers.

Attachment: pgpjM7Yi8s87z.pgp
Description: PGP signature