zsh-users
 help / color / mirror / code / Atom feed
From: Kevin Way <kevin.way@overtone.org>
To: Bart Schaefer <schaefer@brasslantern.com>
Cc: zsh-users@sunsite.dk
Subject: Re: TRAPALRM and vlock problem
Date: Tue, 4 Sep 2001 16:52:58 +0000	[thread overview]
Message-ID: <20010904165258.A4946@bean.overtone.org> (raw)
In-Reply-To: <1010904162403.ZM13062@candle.brasslantern.com>; from schaefer@brasslantern.com on Tue, Sep 04, 2001 at 04:24:03PM +0000

[-- Attachment #1: Type: text/plain, Size: 2379 bytes --]

On Tue, Sep 04, 2001 at 04:24:03PM +0000, Bart Schaefer wrote:
> On Sep 4,  4:13pm, Kevin Way wrote:
> }
> } The problem is that when called by zsh in this manner, vlock will only
> } accept one character, making it impossible to unlock the terminal.
> 
> Try replacing the call to "vlock -c" with a call to "stty -a" just to
> find out what the tty settings are at the time vlock runs.

Your suggestion below worked, but seeing as you thought this might be a
bug, I thought I should include:

The output of stty -a from within the trap:

speed 115200 baud; 25 rows; 80 columns;
lflags: -icanon isig iexten -echo echoe -echok echoke -echonl echoctl
        -echoprt -altwerase -noflsh -tostop -flusho -pendin -nokerninfo
        -extproc
iflags: -istrip icrnl inlcr -igncr ixon -ixoff ixany imaxbel -ignbrk
        brkint -inpck -ignpar -parmrk
oflags: opost onlcr -ocrnl -oxtabs -onocr -onlret
cflags: cread cs8 -parenb -parodd hupcl -clocal -cstopb -crtscts -dsrflow
        -dtrflow -mdmbuf
cchars: discard = <undef>; dsusp = <undef>; eof = ^D; eol = <undef>;
        eol2 = <undef>; erase = ^H; erase2 = ^H; intr = ^C; kill = ^U;
        lnext = <undef>; min = 1; quit = <undef>; reprint = ^R;
        start = ^Q; status = ^T; stop = ^S; susp = <undef>; time = 0;
        werase = ^W;

And the output of stty -a from a regular command line:

speed 115200 baud; 25 rows; 80 columns;
lflags: icanon isig iexten echo echoe -echok echoke -echonl echoctl
        -echoprt -altwerase -noflsh -tostop -flusho pendin -nokerninfo
        -extproc
iflags: -istrip icrnl -inlcr -igncr ixon -ixoff ixany imaxbel -ignbrk
        brkint -inpck -ignpar -parmrk
oflags: opost onlcr -ocrnl -oxtabs -onocr -onlret
cflags: cread cs8 -parenb -parodd hupcl -clocal -cstopb -crtscts -dsrflow
        -dtrflow -mdmbuf
cchars: discard = ^O; dsusp = ^Y; eof = ^D; eol = <undef>;
        eol2 = <undef>; erase = ^H; erase2 = ^H; intr = ^C; kill = ^U;
        lnext = ^V; min = 1; quit = ^\; reprint = ^R; start = ^Q;
        status = ^T; stop = ^S; susp = ^Z; time = 0; werase = ^W;

> If for some reason the ZLE tty settings are not being reset properly
> from inside a trap (which would be a bug, but could be happening), try
> replacing "vlock -c" in the trap with
> 
> 	STTY=sane vlock -c

This fixes the problem for me, thank you!

Kevin Way

[-- Attachment #2: Type: application/pgp-signature, Size: 230 bytes --]

      reply	other threads:[~2001-09-04 16:53 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2001-09-04 16:13 Kevin Way
2001-09-04 16:24 ` Bart Schaefer
2001-09-04 16:52   ` Kevin Way [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20010904165258.A4946@bean.overtone.org \
    --to=kevin.way@overtone.org \
    --cc=schaefer@brasslantern.com \
    --cc=zsh-users@sunsite.dk \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/zsh/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).