<?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 &amp;quot;tab&amp;quot;, &amp;quot;backspace&amp;quot; and &amp;quot;arrow&amp;quot; keys. in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/using-quot-tab-quot-quot-backspace-quot-and-quot-arrow-quot-keys/m-p/4375373#M684707</link>
    <description>Command completion is a function of the shell itself. If you are using csh, these escape twice, will not help you. Unless you have a very compelling reason why you are using csh, I's strongly suggest using POSIX (/usr/bin/sh) or its subset ksh (/usr/bin/ksh) as your default shell and then your command completion esc-esc should work.&lt;BR /&gt;&lt;BR /&gt;In order to scroll up pand down in the command history, using esc-k, first you need to set your command history correctly and history scroll keys (called vi binding I think). In your .profile enter the following:&lt;BR /&gt;&lt;BR /&gt;export HISTFILE=$HOME/.sh_history&lt;BR /&gt;export HISTSIZE=500&lt;BR /&gt;set -o vi&lt;BR /&gt;&lt;BR /&gt;log out and log back in. &lt;BR /&gt;you should be able to perform the functions. &lt;BR /&gt;&lt;BR /&gt;Hope this helps</description>
    <pubDate>Wed, 11 Mar 2009 13:37:19 GMT</pubDate>
    <dc:creator>Mel Burslan</dc:creator>
    <dc:date>2009-03-11T13:37:19Z</dc:date>
    <item>
      <title>using "tab", "backspace" and "arrow" keys.</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/using-quot-tab-quot-quot-backspace-quot-and-quot-arrow-quot-keys/m-p/4375367#M684701</link>
      <description>Hi&lt;BR /&gt;&lt;BR /&gt;  I am connecting my HP-UX thru Telnet using putty.&lt;BR /&gt;&lt;BR /&gt;1) I am not able to use "tab key" for auto completion of the command. is it possible in HP-UX like Linux.&lt;BR /&gt;&lt;BR /&gt;2)The whole command is erased When I press "backspace key" to erase a single letter  in a command that I entered wrongly.&lt;BR /&gt;&lt;BR /&gt;3)can we use arrow keys to move cursor forward and backword in a command that we are going to execute.</description>
      <pubDate>Tue, 10 Mar 2009 06:27:10 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/using-quot-tab-quot-quot-backspace-quot-and-quot-arrow-quot-keys/m-p/4375367#M684701</guid>
      <dc:creator>senthil_kumar_1</dc:creator>
      <dc:date>2009-03-10T06:27:10Z</dc:date>
    </item>
    <item>
      <title>Re: using "tab", "backspace" and "arrow" keys.</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/using-quot-tab-quot-quot-backspace-quot-and-quot-arrow-quot-keys/m-p/4375368#M684702</link>
      <description>Shalom,&lt;BR /&gt;&lt;BR /&gt;1)HP-UX uses escape K. I've spoken to several experts and they recommend against trying to make tab work with HP-UX&lt;BR /&gt;&lt;BR /&gt;2)stty erase &lt;BACK space="" key=""&gt;&lt;BR /&gt;&lt;BR /&gt;3) Escape K.&lt;BR /&gt;&lt;BR /&gt;If you fiddle around enough you can make this stuff work like Linux. However I found it useful to have HP-UX behave differently so I know what type of system I am on.&lt;BR /&gt;&lt;BR /&gt;SEP&lt;/BACK&gt;</description>
      <pubDate>Tue, 10 Mar 2009 06:38:10 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/using-quot-tab-quot-quot-backspace-quot-and-quot-arrow-quot-keys/m-p/4375368#M684702</guid>
      <dc:creator>Steven E. Protter</dc:creator>
      <dc:date>2009-03-10T06:38:10Z</dc:date>
    </item>
    <item>
      <title>Re: using "tab", "backspace" and "arrow" keys.</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/using-quot-tab-quot-quot-backspace-quot-and-quot-arrow-quot-keys/m-p/4375369#M684703</link>
      <description>Hi Senthilkumar,&lt;BR /&gt;&lt;BR /&gt;It deponds on the shell which you are using. &lt;BR /&gt;&lt;BR /&gt;For auto completetion you should press Esc key two times after typed first few characters. &lt;BR /&gt;&lt;BR /&gt;For command history you should press Esc+k key combination. Afer Esc+k , press k till you get the desired history command.&lt;BR /&gt;&lt;BR /&gt;You can also install bash shell on HP to get the features of Linux bash shell.</description>
      <pubDate>Tue, 10 Mar 2009 06:39:38 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/using-quot-tab-quot-quot-backspace-quot-and-quot-arrow-quot-keys/m-p/4375369#M684703</guid>
      <dc:creator>Ganesan R</dc:creator>
      <dc:date>2009-03-10T06:39:38Z</dc:date>
    </item>
    <item>
      <title>Re: using "tab", "backspace" and "arrow" keys.</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/using-quot-tab-quot-quot-backspace-quot-and-quot-arrow-quot-keys/m-p/4375370#M684704</link>
      <description>Hi Steven E. Protter &lt;BR /&gt;&lt;BR /&gt;you given this answer&lt;BR /&gt;&lt;BR /&gt;2)stty erase &lt;BACK space="" key=""&gt;&lt;BR /&gt;&lt;BR /&gt;for my this question&lt;BR /&gt;&lt;BR /&gt;how to erase a single letter if i entered a command wrongly? &lt;BR /&gt;&lt;BR /&gt;I am not able to understand your answer.&lt;/BACK&gt;</description>
      <pubDate>Tue, 10 Mar 2009 07:26:13 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/using-quot-tab-quot-quot-backspace-quot-and-quot-arrow-quot-keys/m-p/4375370#M684704</guid>
      <dc:creator>senthil_kumar_1</dc:creator>
      <dc:date>2009-03-10T07:26:13Z</dc:date>
    </item>
    <item>
      <title>Re: using "tab", "backspace" and "arrow" keys.</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/using-quot-tab-quot-quot-backspace-quot-and-quot-arrow-quot-keys/m-p/4375371#M684705</link>
      <description>&amp;gt;&amp;gt; 2)The whole command is erased When I press "backspace key" to erase a single letter in a command that I entered wrongly.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;rather than fiddling with stty commands on the HP-UX box its probably easier just to get PuTTY to behave correctly.&lt;BR /&gt;&lt;BR /&gt;In your PuTTY Configuration Dialog, go to Terminal-&amp;gt;Keyboard page and change the Backspace key from its default of Control-? (127) to Control-H&lt;BR /&gt;&lt;BR /&gt;Now as long as no-one is hard setting a specific TERM value on the HP-UX server it should work correctly.&lt;BR /&gt;&lt;BR /&gt;As far as the other items are concerned, I agree with the other posters - don't make HP-UX like Linux, learn how to use the vi style command history functions (i.e. press ESC once and then use standard vi editing commands to move about through the current command and command history). The (horrible in my opinion) functionality in Linux is much more a product of the PC "doskey" style functionality which "assumes" all keys are mapped correctly. On UNIX you never know when you'll run across a system where terminal emulation isn't configured correctly, so being able to fall back on a method that doesn't need to use extended keys is much preferrable.&lt;BR /&gt;&lt;BR /&gt;As already indicated, if you really want this functionality install bash on your server. But DO NOT make bash the default shell for root (unless you want to break your box).&lt;BR /&gt;&lt;BR /&gt;HTH&lt;BR /&gt;&lt;BR /&gt;Duncan</description>
      <pubDate>Tue, 10 Mar 2009 07:48:45 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/using-quot-tab-quot-quot-backspace-quot-and-quot-arrow-quot-keys/m-p/4375371#M684705</guid>
      <dc:creator>Duncan Edmonstone</dc:creator>
      <dc:date>2009-03-10T07:48:45Z</dc:date>
    </item>
    <item>
      <title>Re: using "tab", "backspace" and "arrow" keys.</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/using-quot-tab-quot-quot-backspace-quot-and-quot-arrow-quot-keys/m-p/4375372#M684706</link>
      <description>Still i am not able to auto complete the  commands using "esc twice" and not able to get comman history by pressing "esc + k" and again k.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;See I am connecting HP-UX server. that is configured with Telnet. and I am using Putty&lt;BR /&gt;to connect.&lt;BR /&gt;&lt;BR /&gt;after connecting &lt;BR /&gt;1) i am not able to auto complete the  commands using pressing "esc twice".&lt;BR /&gt;2)i am not able to get comman history by pressing "esc + k" and again k.&lt;BR /&gt;</description>
      <pubDate>Wed, 11 Mar 2009 13:25:25 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/using-quot-tab-quot-quot-backspace-quot-and-quot-arrow-quot-keys/m-p/4375372#M684706</guid>
      <dc:creator>senthil_kumar_1</dc:creator>
      <dc:date>2009-03-11T13:25:25Z</dc:date>
    </item>
    <item>
      <title>Re: using "tab", "backspace" and "arrow" keys.</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/using-quot-tab-quot-quot-backspace-quot-and-quot-arrow-quot-keys/m-p/4375373#M684707</link>
      <description>Command completion is a function of the shell itself. If you are using csh, these escape twice, will not help you. Unless you have a very compelling reason why you are using csh, I's strongly suggest using POSIX (/usr/bin/sh) or its subset ksh (/usr/bin/ksh) as your default shell and then your command completion esc-esc should work.&lt;BR /&gt;&lt;BR /&gt;In order to scroll up pand down in the command history, using esc-k, first you need to set your command history correctly and history scroll keys (called vi binding I think). In your .profile enter the following:&lt;BR /&gt;&lt;BR /&gt;export HISTFILE=$HOME/.sh_history&lt;BR /&gt;export HISTSIZE=500&lt;BR /&gt;set -o vi&lt;BR /&gt;&lt;BR /&gt;log out and log back in. &lt;BR /&gt;you should be able to perform the functions. &lt;BR /&gt;&lt;BR /&gt;Hope this helps</description>
      <pubDate>Wed, 11 Mar 2009 13:37:19 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/using-quot-tab-quot-quot-backspace-quot-and-quot-arrow-quot-keys/m-p/4375373#M684707</guid>
      <dc:creator>Mel Burslan</dc:creator>
      <dc:date>2009-03-11T13:37:19Z</dc:date>
    </item>
    <item>
      <title>Re: using "tab", "backspace" and "arrow" keys.</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/using-quot-tab-quot-quot-backspace-quot-and-quot-arrow-quot-keys/m-p/4375374#M684708</link>
      <description>Oh, by the way, if you are planning to use these for root user, please do not change the default shell to anything. It needs to be /sbin/sh . Changing root's default shell is an open invitation to disaster. Thought I should add this word of caution. The command history editing keys as described in my post above, should work with /sbin/sh shell by the way.</description>
      <pubDate>Wed, 11 Mar 2009 13:40:21 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/using-quot-tab-quot-quot-backspace-quot-and-quot-arrow-quot-keys/m-p/4375374#M684708</guid>
      <dc:creator>Mel Burslan</dc:creator>
      <dc:date>2009-03-11T13:40:21Z</dc:date>
    </item>
    <item>
      <title>Re: using "tab", "backspace" and "arrow" keys.</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/using-quot-tab-quot-quot-backspace-quot-and-quot-arrow-quot-keys/m-p/4375375#M684709</link>
      <description>the tab, backspace and arrow keys in Linux are part of the bash shell &amp;amp; edlin packages.&lt;BR /&gt;&lt;BR /&gt;if you absolutely have to have them, you will need to install bash and all of its prerequisites.  &lt;BR /&gt;&lt;BR /&gt;as noted above, *don't* install anything other then /sbin/sh for root's default shell.  &lt;BR /&gt;&lt;BR /&gt;in the event you want bash for root, simply start it at the command line after login</description>
      <pubDate>Wed, 11 Mar 2009 14:48:13 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/using-quot-tab-quot-quot-backspace-quot-and-quot-arrow-quot-keys/m-p/4375375#M684709</guid>
      <dc:creator>OldSchool</dc:creator>
      <dc:date>2009-03-11T14:48:13Z</dc:date>
    </item>
  </channel>
</rss>

