我看到在HPUX stty, not a typewritter
消息(?儘管一個交互式終端校驗),並猜,這些都是由於stty的線在我的.kshrc文件:的stty HUPCL IXON IXOFF
case $- in
*i*)
stty hupcl ixon ixoff
stty erase '^?' kill '^U' intr '^C' eof '^D' susp '^Z'
;;
esac
兩個問題:
1) 我知道爲什麼擦除線在那裏,因爲退格鍵在沒有它的情況下無法使用。這些.kshrc行我繼承了,但不知道他們做了什麼。
有人知道hupcl ixon ixoff行的點嗎? stty手冊頁不是特別有啓發性的:
hupcl (-hupcl) Hang up (do not hang up) modem connection on
last close.
ixon (-ixon) Enable (disable) START/STOP output control.
Output is stopped by sending an ASCII DC3 and
started by sending an ASCII DC1.
ixoff (-ixoff) Request that the system send (not send)
START/STOP characters when the input queue is
nearly empty/full.
2)是否有其他方法來檢查交互式終端。我有tty -s;如果[$? ]之前,但也似乎是嘈雜的hpux。
對於CTRL-S是'ixon'而對於CTRL-Q是'ixoff'? – CMCDragonkai