<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Using command line up arrow/down arrow in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/using-command-line-up-arrow-down-arrow/m-p/4643750#M379652</link>
    <description>Hello,&lt;BR /&gt;&lt;BR /&gt;Arrow keys can work in Ksh.&lt;BR /&gt;&lt;BR /&gt;Add into .kshrc&lt;BR /&gt;&lt;BR /&gt;set -o emacs&lt;BR /&gt;alias __A='^P'&lt;BR /&gt;alias __D='^B'&lt;BR /&gt;alias __B='^N'&lt;BR /&gt;alias __C='^F'&lt;BR /&gt;&lt;BR /&gt;Where:&lt;BR /&gt;^P   type as   CTRL-V CTRL-C P&lt;BR /&gt;^B   type as   CTRL-V CTRL-C B&lt;BR /&gt;...&lt;BR /&gt;&lt;BR /&gt;Some of my students asked me this questions&lt;BR /&gt;in the past.&lt;BR /&gt;&lt;BR /&gt;Cheers,&lt;BR /&gt;&lt;BR /&gt;VK2COT</description>
    <pubDate>Mon, 07 Jun 2010 23:47:13 GMT</pubDate>
    <dc:creator>VK2COT</dc:creator>
    <dc:date>2010-06-07T23:47:13Z</dc:date>
    <item>
      <title>Using command line up arrow/down arrow</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/using-command-line-up-arrow-down-arrow/m-p/4643743#M379645</link>
      <description>Hello,&lt;BR /&gt;I am new to HPUX but have extensive experience on Tru64.&lt;BR /&gt;&lt;BR /&gt;I would like to configure my terminal access to allow use of the up arrow and down arrow for command recall. I have done this in Tru64 by using ksh and setting the editor to emacs (set -o emacs). I use an old terminal emulator called KEA. It can be configured to emulate vt100 or vt400 (7 bit and 9 bit).&lt;BR /&gt;&lt;BR /&gt;So far, I have been unable to get the arrow keys to work properly without actually mapping them via the KEA maps which causes other issues.&lt;BR /&gt;&lt;BR /&gt;I don't like using vi for the command line editor.&lt;BR /&gt;&lt;BR /&gt;Someone recommended installing and using bash instead of ksh, but I would prefer keeping the system shells native to HPUX.&lt;BR /&gt;&lt;BR /&gt;I am running HPUX 11iV3 (B.11.31).&lt;BR /&gt;&lt;BR /&gt;Is there any simple mechanism to configure this? Should I load bash?&lt;BR /&gt;&lt;BR /&gt;Thanks.&lt;BR /&gt;</description>
      <pubDate>Mon, 07 Jun 2010 18:23:40 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/using-command-line-up-arrow-down-arrow/m-p/4643743#M379645</guid>
      <dc:creator>JohnSeel</dc:creator>
      <dc:date>2010-06-07T18:23:40Z</dc:date>
    </item>
    <item>
      <title>Re: Using command line up arrow/down arrow</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/using-command-line-up-arrow-down-arrow/m-p/4643744#M379646</link>
      <description>Hi John:&lt;BR /&gt;&lt;BR /&gt;I think you covered your options: use 'bash' or learn 'vi' at least insofar as using it as a command editor.&lt;BR /&gt;&lt;BR /&gt;Whatever you do, do *not* change the default shell for 'root' from '/sbin/sh' [the POSIX shell in HP parlance].  To do so will lead to an un-startable system.  You can temporarily change to the 'bash' shell as root.  Simply don't make it the default login shell.&lt;BR /&gt;&lt;BR /&gt;Regards!&lt;BR /&gt;&lt;BR /&gt;...JRF...</description>
      <pubDate>Mon, 07 Jun 2010 18:34:59 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/using-command-line-up-arrow-down-arrow/m-p/4643744#M379646</guid>
      <dc:creator>James R. Ferguson</dc:creator>
      <dc:date>2010-06-07T18:34:59Z</dc:date>
    </item>
    <item>
      <title>Re: Using command line up arrow/down arrow</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/using-command-line-up-arrow-down-arrow/m-p/4643745#M379647</link>
      <description>Thanks, James.&lt;BR /&gt;&lt;BR /&gt;I have already changed the root shell to ksh. Would this also be an issue?&lt;BR /&gt;&lt;BR /&gt;John&lt;BR /&gt;</description>
      <pubDate>Mon, 07 Jun 2010 18:50:23 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/using-command-line-up-arrow-down-arrow/m-p/4643745#M379647</guid>
      <dc:creator>JohnSeel</dc:creator>
      <dc:date>2010-06-07T18:50:23Z</dc:date>
    </item>
    <item>
      <title>Re: Using command line up arrow/down arrow</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/using-command-line-up-arrow-down-arrow/m-p/4643746#M379648</link>
      <description>Hi (again) John:&lt;BR /&gt;&lt;BR /&gt;&amp;gt; I have already changed the root shell to ksh. Would this also be an issue?&lt;BR /&gt;&lt;BR /&gt;Yes.  The default root login shell as defined in '/etc/passwd' *must* remain '/sbin/sh'.  This is a statically linked executable that doesn't use shared libraries found in '/usr'.  Thus, during startup, before '/usr' is mounted, a fully functional runtime environment exists.  Shells other than '/sbin/sh' live in the '/usr' directory and use shared libraries from that mountpoint.&lt;BR /&gt;&lt;BR /&gt;The HP-UX POSIX shell ('/sbin/sh' for root and '/usr/bin/sh' for non-root users) is really as superset of the Korn (ksh88) shell available as '/usr/bin/ksh'.  You should have no problems with the POSIX shell if you are accustomed to using 'ksh'.&lt;BR /&gt;&lt;BR /&gt;A Korn93 version of 'ksh' is available as '/usr/dt/bin/dtksh' if you want the enhancements of Korn93.  In 11.31, however, you must have loaded the CDE bundle for this to be available.&lt;BR /&gt;&lt;BR /&gt;Regards!&lt;BR /&gt;&lt;BR /&gt;...JRF...&lt;BR /&gt;</description>
      <pubDate>Mon, 07 Jun 2010 19:07:06 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/using-command-line-up-arrow-down-arrow/m-p/4643746#M379648</guid>
      <dc:creator>James R. Ferguson</dc:creator>
      <dc:date>2010-06-07T19:07:06Z</dc:date>
    </item>
    <item>
      <title>Re: Using command line up arrow/down arrow</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/using-command-line-up-arrow-down-arrow/m-p/4643747#M379649</link>
      <description>Okay, thanks.&lt;BR /&gt;I've changed it back to /sbin/sh.&lt;BR /&gt;Thanks for the heads up.&lt;BR /&gt;John&lt;BR /&gt;</description>
      <pubDate>Mon, 07 Jun 2010 19:36:26 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/using-command-line-up-arrow-down-arrow/m-p/4643747#M379649</guid>
      <dc:creator>JohnSeel</dc:creator>
      <dc:date>2010-06-07T19:36:26Z</dc:date>
    </item>
    <item>
      <title>Re: Using command line up arrow/down arrow</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/using-command-line-up-arrow-down-arrow/m-p/4643748#M379650</link>
      <description>Hi (again) John:&lt;BR /&gt;&lt;BR /&gt;&amp;gt; Okay, thanks.&lt;BR /&gt;&lt;BR /&gt;If you have found the answers you received, helpful, please read:&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://forums.itrc.hp.com/service/forums/helptips.do?#28" target="_blank"&gt;http://forums.itrc.hp.com/service/forums/helptips.do?#28&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;Regards!&lt;BR /&gt;&lt;BR /&gt;...JRF...</description>
      <pubDate>Mon, 07 Jun 2010 20:32:25 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/using-command-line-up-arrow-down-arrow/m-p/4643748#M379650</guid>
      <dc:creator>James R. Ferguson</dc:creator>
      <dc:date>2010-06-07T20:32:25Z</dc:date>
    </item>
    <item>
      <title>Re: Using command line up arrow/down arrow</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/using-command-line-up-arrow-down-arrow/m-p/4643749#M379651</link>
      <description>John - &lt;BR /&gt;  I'd go with bash.  By default, it does command history via arrow keys.  You'll just have to invoke the shell by hand after you log in.  No biggie.</description>
      <pubDate>Mon, 07 Jun 2010 23:20:37 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/using-command-line-up-arrow-down-arrow/m-p/4643749#M379651</guid>
      <dc:creator>TwoProc</dc:creator>
      <dc:date>2010-06-07T23:20:37Z</dc:date>
    </item>
    <item>
      <title>Re: Using command line up arrow/down arrow</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/using-command-line-up-arrow-down-arrow/m-p/4643750#M379652</link>
      <description>Hello,&lt;BR /&gt;&lt;BR /&gt;Arrow keys can work in Ksh.&lt;BR /&gt;&lt;BR /&gt;Add into .kshrc&lt;BR /&gt;&lt;BR /&gt;set -o emacs&lt;BR /&gt;alias __A='^P'&lt;BR /&gt;alias __D='^B'&lt;BR /&gt;alias __B='^N'&lt;BR /&gt;alias __C='^F'&lt;BR /&gt;&lt;BR /&gt;Where:&lt;BR /&gt;^P   type as   CTRL-V CTRL-C P&lt;BR /&gt;^B   type as   CTRL-V CTRL-C B&lt;BR /&gt;...&lt;BR /&gt;&lt;BR /&gt;Some of my students asked me this questions&lt;BR /&gt;in the past.&lt;BR /&gt;&lt;BR /&gt;Cheers,&lt;BR /&gt;&lt;BR /&gt;VK2COT</description>
      <pubDate>Mon, 07 Jun 2010 23:47:13 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/using-command-line-up-arrow-down-arrow/m-p/4643750#M379652</guid>
      <dc:creator>VK2COT</dc:creator>
      <dc:date>2010-06-07T23:47:13Z</dc:date>
    </item>
    <item>
      <title>Re: Using command line up arrow/down arrow</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/using-command-line-up-arrow-down-arrow/m-p/4643751#M379653</link>
      <description>&lt;!--!*#--&gt;&amp;gt; [...] You'll just have to invoke the shell&lt;BR /&gt;&amp;gt; by hand after you log in. [...]&lt;BR /&gt;&lt;BR /&gt;Or exec the thing from the shell start-up&lt;BR /&gt;scriptlet (only) if "/usr" is mounted.  As&lt;BR /&gt;usual, many things are possible.</description>
      <pubDate>Tue, 08 Jun 2010 00:14:42 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/using-command-line-up-arrow-down-arrow/m-p/4643751#M379653</guid>
      <dc:creator>Steven Schweda</dc:creator>
      <dc:date>2010-06-08T00:14:42Z</dc:date>
    </item>
    <item>
      <title>Re: Using command line up arrow/down arrow</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/using-command-line-up-arrow-down-arrow/m-p/4643752#M379654</link>
      <description>&amp;gt;Steven: Or exec the thing from the shell start-up scriptlet (only) if "/usr" is mounted.&lt;BR /&gt;&lt;BR /&gt;This may not be good enough.  You should make sure that /usr/local/bin/ (if bash is there) is available and all the shlibs and dld are also available.</description>
      <pubDate>Tue, 08 Jun 2010 08:15:35 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/using-command-line-up-arrow-down-arrow/m-p/4643752#M379654</guid>
      <dc:creator>Dennis Handly</dc:creator>
      <dc:date>2010-06-08T08:15:35Z</dc:date>
    </item>
    <item>
      <title>Re: Using command line up arrow/down arrow</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/using-command-line-up-arrow-down-arrow/m-p/4643753#M379655</link>
      <description>VK2Cot,&lt;BR /&gt;I've set up the .kshrc file. I can get my shell to recognize the up and down arrows, but all they do is echo on the command line as "^P" and "^B", etc.&lt;BR /&gt;&lt;BR /&gt;Am I missing something else?&lt;BR /&gt;&lt;BR /&gt;Also. I don't understand what you mean by:&lt;BR /&gt;Where:&lt;BR /&gt;^P type as CTRL-V CTRL-C P&lt;BR /&gt;^B type as CTRL-V CTRL-C B&lt;BR /&gt;&lt;BR /&gt;Thanks.</description>
      <pubDate>Fri, 11 Jun 2010 13:52:24 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/using-command-line-up-arrow-down-arrow/m-p/4643753#M379655</guid>
      <dc:creator>JohnSeel</dc:creator>
      <dc:date>2010-06-11T13:52:24Z</dc:date>
    </item>
    <item>
      <title>Re: Using command line up arrow/down arrow</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/using-command-line-up-arrow-down-arrow/m-p/4643754#M379656</link>
      <description>All,&lt;BR /&gt;I've loaded bash (bash-4.1.005-ia64-11.31.depot, termcap-1.3.1-hppa-11.11.depot, and gettext-0.16.1-hppa-11.11.depot -- the last two were the latest versions I could find)They all loaded successfully with swinstall.&lt;BR /&gt;&lt;BR /&gt;However, when I invoke "bash" I get messages like:&lt;BR /&gt;/usr/lib/hpux32/dld.so: Unable to find library 'libtermcap.so'&lt;BR /&gt;&lt;BR /&gt;I find the lib file it is looking for and link it back into /usr/lib/hpux32 but then it just goes to another lib file it can't find.&lt;BR /&gt;&lt;BR /&gt;Two questions:&lt;BR /&gt;1) Why is it looking in hpux32 when I loaded a 64bit version of bash?&lt;BR /&gt;2) I tried setting LD_LIBRARY_PATH to various directories including where I've found the files it is looking for, but that does not seem to work. Is there another environment variable I need to set?&lt;BR /&gt;&lt;BR /&gt;Thanks.&lt;BR /&gt;</description>
      <pubDate>Fri, 11 Jun 2010 13:59:02 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/using-command-line-up-arrow-down-arrow/m-p/4643754#M379656</guid>
      <dc:creator>JohnSeel</dc:creator>
      <dc:date>2010-06-11T13:59:02Z</dc:date>
    </item>
    <item>
      <title>Re: Using command line up arrow/down arrow</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/using-command-line-up-arrow-down-arrow/m-p/4643755#M379657</link>
      <description>&amp;gt;I don't understand what you mean by:&lt;BR /&gt;^P type as CTRL-V CTRL-C P&lt;BR /&gt;^B type as CTRL-V CTRL-C B&lt;BR /&gt;&lt;BR /&gt;I think that should be:&lt;BR /&gt;CTRL-V CTRL-P&lt;BR /&gt;CTRL-V CTRL-B&lt;BR /&gt;&lt;BR /&gt;You need CTRL-V to escape the next char.&lt;BR /&gt;&lt;BR /&gt;&amp;gt;1) Why is it looking in hpux32 when I loaded a 64bit version of bash?&lt;BR /&gt;&lt;BR /&gt;Why do you think it is 64 bit?  The kernel and dld.so don't lie.&lt;BR /&gt;&lt;BR /&gt;&amp;gt;2) I tried setting LD_LIBRARY_PATH to various directories including where I've found the files it is looking for&lt;BR /&gt;&lt;BR /&gt;What does "chatr /path-to-bash/bash" show?</description>
      <pubDate>Fri, 11 Jun 2010 14:13:16 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/using-command-line-up-arrow-down-arrow/m-p/4643755#M379657</guid>
      <dc:creator>Dennis Handly</dc:creator>
      <dc:date>2010-06-11T14:13:16Z</dc:date>
    </item>
    <item>
      <title>Re: Using command line up arrow/down arrow</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/using-command-line-up-arrow-down-arrow/m-p/4643756#M379658</link>
      <description>I thought Itanium was 64bit?&lt;BR /&gt;My uname -a output shows:&lt;BR /&gt;HP-UX srvunx01 B.11.31 U ia64&lt;BR /&gt;&lt;BR /&gt;Isn't that 64 bit?&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Fri, 11 Jun 2010 14:49:43 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/using-command-line-up-arrow-down-arrow/m-p/4643756#M379658</guid>
      <dc:creator>JohnSeel</dc:creator>
      <dc:date>2010-06-11T14:49:43Z</dc:date>
    </item>
    <item>
      <title>Re: Using command line up arrow/down arrow</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/using-command-line-up-arrow-down-arrow/m-p/4643757#M379659</link>
      <description>Yeah!&lt;BR /&gt;The escape character before the Control P was the final issue (with that anyway, I still don't know why bash doesn't work.)&lt;BR /&gt;To recap:&lt;BR /&gt; LEAVE ROOT as sh!&lt;BR /&gt;&lt;BR /&gt;For other users, or when invoking ksh after logging in as root:&lt;BR /&gt;&lt;BR /&gt;In the user's .profile&lt;BR /&gt;ENV=~/.kshrc; export ENV&lt;BR /&gt;&lt;BR /&gt;In the user's .kshrc enter:&lt;BR /&gt;&lt;BR /&gt;set -o emacs&lt;BR /&gt;alias __A='^P'&lt;BR /&gt;alias __B='^B'&lt;BR /&gt;alias __C='^N'&lt;BR /&gt;alias __D='^F'&lt;BR /&gt;&lt;BR /&gt;When entering the aliases, DO NOT cut and paste the above. The characters must be escaped with CONTROL V. So, for example ^P would be typed "CONTROL V CONTROL P", etc.&lt;BR /&gt;&lt;BR /&gt;Thanks to everyone.&lt;BR /&gt;John&lt;BR /&gt;</description>
      <pubDate>Fri, 11 Jun 2010 16:21:34 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/using-command-line-up-arrow-down-arrow/m-p/4643757#M379659</guid>
      <dc:creator>JohnSeel</dc:creator>
      <dc:date>2010-06-11T16:21:34Z</dc:date>
    </item>
    <item>
      <title>Re: Using command line up arrow/down arrow</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/using-command-line-up-arrow-down-arrow/m-p/4643758#M379660</link>
      <description>&lt;!--!*#--&gt;&amp;gt; I've loaded bash (bash-4.1.005-ia64-11.31.depot, [...]&lt;BR /&gt;&lt;BR /&gt;It's more work, but I've found it useful to&lt;BR /&gt;build most GNU stuff from the sources.&lt;BR /&gt;(Pulling a loose strand of GNU yarn does tend&lt;BR /&gt;to result in a lap filled with what looks&lt;BR /&gt;like the annual output of a whole herd of&lt;BR /&gt;sheep, but sometimes it's actually finite.)&lt;BR /&gt;When all the builds are done on your own&lt;BR /&gt;system, finding all the run-time stuff seems&lt;BR /&gt;to be less of a problem.&lt;BR /&gt;&lt;BR /&gt;The current kit seems to be version 4.1 with&lt;BR /&gt;seven patches available, resulting in:&lt;BR /&gt;&lt;BR /&gt;dyi # bash --version&lt;BR /&gt;GNU bash, version 4.1.7(1)-release (ia64-hp-hpux11.31)&lt;BR /&gt;Copyright (C) 2009 Free Software Foundation, Inc.&lt;BR /&gt;[...]&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://www.gnu.org/software/bash/" target="_blank"&gt;http://www.gnu.org/software/bash/&lt;/A&gt;</description>
      <pubDate>Fri, 11 Jun 2010 20:57:55 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/using-command-line-up-arrow-down-arrow/m-p/4643758#M379660</guid>
      <dc:creator>Steven Schweda</dc:creator>
      <dc:date>2010-06-11T20:57:55Z</dc:date>
    </item>
    <item>
      <title>Re: Using command line up arrow/down arrow</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/using-command-line-up-arrow-down-arrow/m-p/4643759#M379661</link>
      <description>&amp;gt;My uname -a output shows: ia64.  Isn't that 64 bit?&lt;BR /&gt;&lt;BR /&gt;No and yes.  This is just a name so it doesn't show the mode of a particular program.&lt;BR /&gt;But the hardware always runs in 64 bit mode so it is only with software smoke and mirrors can you have a 32 bit application.&lt;BR /&gt;&lt;BR /&gt;And the default compile mode is +DD32.&lt;BR /&gt;&lt;BR /&gt;&amp;gt;Thanks to everyone.&lt;BR /&gt;&lt;BR /&gt;If you are happy with the answers you were given, please read the following about how to assign points:&lt;BR /&gt;&lt;A href="http://forums.itrc.hp.com/service/forums/helptips.do?#33" target="_blank"&gt;http://forums.itrc.hp.com/service/forums/helptips.do?#33&lt;/A&gt;</description>
      <pubDate>Sat, 12 Jun 2010 12:11:48 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/using-command-line-up-arrow-down-arrow/m-p/4643759#M379661</guid>
      <dc:creator>Dennis Handly</dc:creator>
      <dc:date>2010-06-12T12:11:48Z</dc:date>
    </item>
  </channel>
</rss>

