- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- up arrow and character mapping
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-05-2001 01:10 PM
12-05-2001 01:10 PM
thanx.
-Josh
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-05-2001 01:14 PM
12-05-2001 01:14 PM
Re: up arrow and character mapping
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-05-2001 01:20 PM
12-05-2001 01:20 PM
Re: up arrow and character mapping
In one sense your question has no meaning in that UNIX depends upon the particular setting of TERM to make this determination. The easy way to find out what your current setting is to do an 'infocmp' and look for the kcuu1 entry. This is the terminfo key_up value butr it is typically a sequence of characters rather than a single character. infocmp is used to get a text version, tic (terminfo compiler) is used to convert a specification into a terminfo database entry. Man infocmp, terminfo, and tic for details.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-05-2001 02:28 PM
12-05-2001 02:28 PM
Re: up arrow and character mapping
-Josh
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-06-2001 10:04 AM
12-06-2001 10:04 AM
Re: up arrow and character mapping
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-07-2001 06:23 AM
12-07-2001 06:23 AM
Re: up arrow and character mapping
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-07-2001 10:39 AM
12-07-2001 10:39 AM
Re: up arrow and character mapping
smkx: Command not found.
hal.net.brandeis.edu 22:
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-07-2001 10:45 AM
12-07-2001 10:45 AM
Re: up arrow and character mapping
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-07-2001 12:28 PM
12-07-2001 12:28 PM
Re: up arrow and character mapping
hal.net.brandeis.edu 33: tput smkx
hal.net.brandeis.edu 34: OAOB
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-10-2001 10:23 AM
12-10-2001 10:23 AM
Re: up arrow and character mapping
Sanjay and A. Clay Stephenson both deserve ten points for pointing out that it's not actually a character maping issue and that i was thinking of this in a very wrong context, however, that's not a magic answer, so i cna't give them their points until it's fixed.
now there's the next two responses...
John Waller and S.K. Chan both deserve 9 points becuase the real answer should probably be a variant of what they said. however, the man pages are giving no clues as to what variants are possible. it doesn't even give the smkx add on. changing it to "tput -smkx" from "tput smkx" merelygives this error:
hal.net.brandeis.edu 31: tput -smkx
tput: usage: "tput [-STterm] capname [parms ...]"
hal.net.brandeis.edu 32:
now i just need the variant that fixes it on the hpux box i'm using. anyone willing to tell me the codes i can use and what they do so i can try figureing it out, or giving me the one that will work? either way it will *hopefully* solve the problem, and then i'll give out points to everyone who responded here
-J
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-10-2001 11:02 AM
12-10-2001 11:02 AM
SolutionHowever, if you run "keysh" as your shell, the up, down, left, right arrow keys work there.
keysh is kind of a strange critter and has features that most sys admins probabily don't care for. But if arrow processing is important, then this could do it for you...
-- Rod Hills
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-10-2001 10:36 PM
12-10-2001 10:36 PM
Re: up arrow and character mapping
I put the bash shell on my HP for the very reason. Download from http://hpux.connect.org.uk/ ,it is a swinstall depot.
MND
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-11-2001 12:17 AM
12-11-2001 12:17 AM
Re: up arrow and character mapping
machine:/ # cat .kshrc
:
# .kshrc
smkx() {
echo $(tput smkx)
}
set -o emacs
set -o noclobber
MAILCHECK=0
TMOUT=1200
export KEYKSH=y
export KEYPS1=y
alias hist='fc -lr -100 | more -10;'
#alias mt='mt -t ${TAPE:-/dev/rmt/0hnb}'
# define terminal-specific aliases for cursor keys
case $TERM in
ftp2*|vt1*|vt2*|tn*|ansi|xansi|xterm)
alias __A=''
alias __B=''
alias __C=''
alias __D=''
;;
hp*|700*)
alias _A=''
alias _B=''
alias _C=''
alias _D=''
alias _S=''
alias _T=''
alias _U=''
alias _V=''
alias _P=''
smkx
;;
*)
;;
esac
It may help, but then again....
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-11-2001 12:19 AM
12-11-2001 12:19 AM
Re: up arrow and character mapping
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-11-2001 07:38 AM
12-11-2001 07:38 AM
Re: up arrow and character mapping
I notice you have
export KEYKSH=y
Are you sure you are not running "keysh"? With this option set, "keysh" will try to look like "ksh".
I don't see how echoing the smkx changes your shell to accept the up arrow key for command history. Your script is only echoing for hp terminals, does that mean vt100/vt200 terminals would not have up arrow processing of the command history?
Josh- Your original question implied you were looking for a way to scan and edit the command history by using the up arrow key. Is that what you are looking for?
-- Rod Hills
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-12-2001 11:05 AM
12-12-2001 11:05 AM
Re: up arrow and character mapping
is there an 11i version?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-12-2001 09:10 PM
12-12-2001 09:10 PM
Re: up arrow and character mapping
I am running it happily on my C100 running 11i on my desk. Just installed the binaries too;)
There is source code for the shell on the site, so if you have trouble, you could always compile it.
MND
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-12-2001 09:15 PM
12-12-2001 09:15 PM
Re: up arrow and character mapping
A gotcha here that I should mention. Do not under any circumstances set this as root's primary shell in the /etc/passwd file! I think you will find a thread on this forum as to why;)
MND