[ACCEPTED]-stty hupcl ixon ixoff-hp-ux

Accepted answer
Score: 16

ixon and ixoff are used to insist that Ctrl-s and Ctrl-q be 8 interpreted as control flow (scroll lock) signals. They're 7 the default on most systems, but if you 6 have a fast connection and/or don't anticipate 5 a volume of output that your terminal can't 4 handle, you're fine to turn them off.

I typically 3 use stty -ixon -ixoff so I can reclaim the Ctrl-s and Ctrl-q key bindings 2 for more modern purposes (e.g. "save" and 1 "quit").

For more details: https://unix.stackexchange.com/questions/12107/how-to-unfreeze-after-accidentally-pressing-ctrl-s-in-a-terminal#12146

Score: 2

\1.

As you've inherited your .kshrc, there 21 might have been a reason that at one time 20 you system needed those extra hupcl, ixon, ixoff parameters. They 19 might be obsolete now, but they might be 18 something that is HP centric. OR it could 17 be that some application works better with 16 them included. Maybe an ol' timer will know.

Anybody 15 know the point of the hupcl ixon ixoff lines

To 14 me those descriptions are pretty self evident, but 13 then I have had to deal with such issues 12 way----yyyy back, and read the Orielly termcap & terminfo to sort 11 it out. You can look at man ascii to see DC3 and 10 DC1 in their context, or google searches 9 might get you something interesting.

Now 8 a-days, I would expect that unless you 7 have special needs, that these aren't really 6 helping you. Do you have special HP hardware 5 or special terminfo applications. If not, try 4 commenting that line out.

\2. Test for interactive

I 3 like your case $- in *i* ... that should be good enough.

else 2

  if tty -s > /dev/null 2>&1 ; then ...

might be help

OR the cannonical

  if [[ -t 0 ]]; then

I hope this 1 helps.

More Related questions