Колесико прокрутки мыши работает хорошо с, например, elinks работающий в экране, который по очереди выполняет внутренний терминал гнома, таким образом, это действительно возможно. В лотке шпаклевки это не делает, tho.
Можно установить, устанавливает TMOUT
переменная к числу в секундах, что Вы хотите для удара ожидать прежде автоматически выйти из системы оболочка, если никакая команда не выполняется.
Я знаю, что этот вопрос в отношении Bash & Ksh. Но я думал, что отправлю что-то подобное для csh/tcsh для записи.
На FreeBSD оболочка по умолчанию является tcsh. Вы можете автоматический выход из системы сессия с помощью autologout
функция оболочки tcsh.
Следующее автовыйдет из системы сессия после одной минуты неактивного действия.
freebsd82# set -r autologout=’1′
(Wait one minute)
freebsd82# auto-logout
Connection to freebsd82 closed.
tcsh (1) страница справочника описывает это как это:
autologout (+) The first word is the number of minutes of inactivity before automatic logout. The optional second word is the number of minutes of inactivity before automatic locking. When the shell automatically logs out, it prints `auto-logout', sets the vari- able logout to `automatic' and exits. When the shell automati- cally locks, the user is required to enter his password to con- tinue working. Five incorrect attempts result in automatic logout. Set to `60' (automatic logout after 60 minutes, and no locking) by default in login and superuser shells, but not if the shell thinks it is running under a window system (i.e., the DISPLAY environment variable is set), the tty is a pseudo-tty (pty) or the shell was not so compiled (see the version shell variable). See also the afsuser and logout shell variables.