Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: zsh & HP Term

On Mar 31, 12:16pm, rodriguez_ruggeberg@xxxxxxxxxx wrote:
} Subject: zsh & HP Term
} I've run into some problems when trying to configure zsh for use with 
} an HP Terminal. In essence, I do not seem to be able to map the arrow 
} keys to anything.
} [...] to my amazement, the program could not pick the arrow keys as   
} being pressed! This leads me to believe that either the device for    
} the HP term is "swallowing" the arrow keys, or that the system just   
} uses a different system to comunicate the arrow keys.

HPTerm terminals date from the days when even direct connections to the
mainframe were at 300 baud and it was important to transmit as little as
possible between the terminal and the host.  So the HPTerm has all sorts
of smarts of its own -- all the cursor movement and forms-based data
entry takes place *in the terminal*, and then a whole screenful of it
is sent back at once.

(Next time you're at a login: prompt, start poking the arrow keys.  You'll
note that they move the cursor around the screen, even though there's no
program running to drive the display.)

There is some way to get an HP terminal to really send something on every
key press, but I've forgotten how ... I believe the curses library, for
example, set that up when it initializes, but zsh doesn't use curses.  It
may be enough to use something like this in your .zshrc:

	precmd() { echotc ti }
	preexec() { echotc te }

but I don't promise anything ...

Since you appear to actually work for HP, you can probably find somebody
who knows about this stuff.

Bart Schaefer                                 Brass Lantern Enterprises
http://www.well.com/user/barts              http://www.brasslantern.com

Messages sorted by: Reverse Date, Date, Thread, Author