%META:TOPICINFO{author="ChrisBartram" date="1170383687" format="1.1" version="1.2"}% %META:TOPICPARENT{name="Hp3000PosixShell"}% ---+ [[Hp3000DotProfile][Make sure you have that .profile set up correctly on the HP3000]] The control keys don't seem to be registering with the shell. This is saying that ^Y should be able to interrupt a program. And ^@ should be able to stop input. But it's being ignored. Trying to set eof to ^D doesn't work either. Make sure you have the following in your .profile:
# enable ^y
export HPSHELLINT=1
--[[SteveElmer]] (1) The "SH" UDC sets your CWD to !hphgroup.!hpacct regardless of where you are, and won't work if you have no home group. Yuck. I prefer to set it to !hpgroup.!hpacct. (2) As noted previously, "man" is broken, so "export MANPATH='/usr/man'" (3) better check TERM if you change /etc/profile ChrisRansom and I had an offline discussion about vi, cursor keys, and curses in general; this led to the annoying behavior of man, more, etc., enabling the TransmitFunctions terminal configuration and leaving it that way afterward (annoying when you don't expect it). The terminfo entry for hp2392a includes a reset sequence but it is unused or uncalled (curses!). Then Chris sent this to me which I think is valuable enough to share:
On Thu, 08 Dec 94 14:36:21 PDT you said:
]I figured it out. This seems to actually work. I took a tip from DOS prompt
]programming and changed my prompt string to contain the escape sequence:
]
]   export PS1="^[&s0A"\$PWD$
]
]And, believe it or not, vi is smart enough to re-enable xmit fkeys if you
]escape to the shell and return to vi. This also solves problems with "more"
]screwing up your terminal, etc...
--[[JeffKell]] I would recommend using "hp2392a" since it is a more complete description of a HP terminal than "hp". Anyway, I use VI as my editor-of-choice on 5.0. You need an ".exrc" file in your home directory (for example /CHRIS/PUB/.exrc). It should contain map statements to translate your cursor keys into the VI directional commands. For example:
   map ESC-A  k
   map ESC-D  h
   map ESC-C  l
   map ESC-B  j
Where "ESC-A" is actually escape+A in the .exrc file (hard to display here). I'm fairly certain that an HP-UX .exrc file will work fine if copied over to MPE/iX. As Mark Klein points out, you need to have "Transmit Function Keys" enabled for your terminal. This is enabled automatically by curses(?) when vi is run. --[[ChrisRansom]] -- Main.ChrisBartram - 09 Jun 2006