我看到stty,而不是hpux上的打字机消息(尽管有交互式终端检查?),我猜这些是由于我的.kshrc文件中的stty行:
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上似乎也很吵.