From: rodriguez_ruggeberg@non.hp.com
To: zsh-users@sunsite.auc.dk
Subject: zsh & HP Term
Date: Fri, 31 Mar 2000 12:16:27 -0500 [thread overview]
Message-ID: <H0001dfa0d72b85f@MHS> (raw)
[-- Attachment #1: BDY.TXT --]
[-- Type: text/plain, Size: 1843 bytes --]
Hi,
I´ve been using zsh with HP-UX for the past two months and I am very impressed
with it. I've succesfully configured my connection through a vt100 terminal to
work just the way I wanted.
However, 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. I have read as much documentation on zsh as I could find, yet if the
answer was there, it eluded me.
I even tried the following without success:
bindkey "$(echotc kl)" backward-char
bindkey "$(echotc kr)" forward-char
bindkey "$(echotc ku)" up-line-or-history
bindkey "$(echotc kd)" down-line-or-history
After a while, I decided to write a mini C program to see what kind of values
the HP Term sent when pressing the arrowkeys .. :
#include <stdio.h>
int main(void) {
int c,a;
for(a=0;a<5;a++) {
c=getchar();
printf("c=%d - %c\n",c,c);
}
}
.. and 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. (maybe the Term sends the current cursor position in
binary or something).
The reason I say the latter is because if I do an export TERM=tty while my
terminal is in HP mode, I still cannot detect any arrow key presses with the
above little hack.
Nontheless, other programs such as HP's own "SAM" (System Administrator Tool)
and others have no problem detecting the arrow keys and using them to select
items, etc.
I really welcome any ideas and suggestions, since I've pretty much run into a
wall here.
Kind Regards,
Alec Rodriguez
next reply other threads:[~2000-03-31 17:31 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2000-03-31 17:16 rodriguez_ruggeberg [this message]
2000-04-02 5:20 ` Bart Schaefer
2000-04-27 8:02 Ville Herva
2000-04-28 4:19 ` Bart Schaefer
2000-04-28 12:27 ` Ville Herva
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=H0001dfa0d72b85f@MHS \
--to=rodriguez_ruggeberg@non.hp.com \
--cc=zsh-users@sunsite.auc.dk \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.vuxu.org/mirror/zsh/
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).