zsh-users
 help / color / mirror / code / Atom feed
* TRAPALRM and vlock problem
@ 2001-09-04 16:13 Kevin Way
  2001-09-04 16:24 ` Bart Schaefer
  0 siblings, 1 reply; 3+ messages in thread
From: Kevin Way @ 2001-09-04 16:13 UTC (permalink / raw)
  To: zsh-users

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

I'm having a problem with the TRAPALRM+TMOUT feature of zsh, and I'd greatly
appreciate any help.  My .zshrc contains:

    TMOUT=300

    TRAPALRM () {
        clear
        echo Inactivity timeout on $TTY
        echo
        vlock -c
        echo
        echo Terminal unlocked. [ Press Enter ]
    }

The goal being, of course, to lock unused terminals after five minutes.

The problem is that when called by zsh in this manner, vlock will only
accept one character, making it impossible to unlock the terminal.  I end
up with:

    This TTY is now locked.
    Please enter the password to unlock.
    kway's Password:
    root's Password:
     *** That password is incorrect; please try again. *** 

    This TTY is now locked.
    Please enter the password to unlock.
    kway's Password:
    root's Password:
     *** That password is incorrect; please try again. *** 

despite the fact that if I all vlock -c from the command line, it works as
expected:

    This TTY is now locked.
    Please enter the password to unlock.
    kway's Password:
    [kway@bean kway]% 

Does anybody know why this happens, or how to stop it?  I'd greatly
appreciate any assistance in this matter.

Kevin Way

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

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2001-09-04 16:53 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2001-09-04 16:13 TRAPALRM and vlock problem Kevin Way
2001-09-04 16:24 ` Bart Schaefer
2001-09-04 16:52   ` Kevin Way

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).