<?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: Command Prompt get truncated to 80 chars whenever recall command using ESC-k in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/command-prompt-get-truncated-to-80-chars-whenever-recall-command/m-p/3457805#M848411</link>
    <description>Check this link (last 20 lines):&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://www.nersc.no/~knutal/unix_tips.html" target="_blank"&gt;http://www.nersc.no/~knutal/unix_tips.html&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;sks</description>
    <pubDate>Fri, 07 Jan 2005 06:54:44 GMT</pubDate>
    <dc:creator>Sanjay Kumar Suri</dc:creator>
    <dc:date>2005-01-07T06:54:44Z</dc:date>
    <item>
      <title>Command Prompt get truncated to 80 chars whenever recall command using ESC-k</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/command-prompt-get-truncated-to-80-chars-whenever-recall-command/m-p/3457798#M848404</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;I have set the command prompt (PS1) to show the current working directory and am currently using vi to recall command history.&lt;BR /&gt;&lt;BR /&gt;However, if my prompt is greater than 80 chars, it will be truncated to 80 chars when I recall the previous command using ESC-k. My screen width is 150 chars and it is really annoying and confusing when this happens.&lt;BR /&gt;&lt;BR /&gt;Is there a way to prevent this from happening?&lt;BR /&gt;&lt;BR /&gt;Thanks,&lt;BR /&gt;John</description>
      <pubDate>Fri, 07 Jan 2005 05:59:15 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/command-prompt-get-truncated-to-80-chars-whenever-recall-command/m-p/3457798#M848404</guid>
      <dc:creator>JLiYim</dc:creator>
      <dc:date>2005-01-07T05:59:15Z</dc:date>
    </item>
    <item>
      <title>Re: Command Prompt get truncated to 80 chars whenever recall command using ESC-k</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/command-prompt-get-truncated-to-80-chars-whenever-recall-command/m-p/3457799#M848405</link>
      <description>John,&lt;BR /&gt;&lt;BR /&gt;I just tried it with a 100 character (bogus) command and got all 100 characters back.  I had to scroll to the right to see them, but they were there.  I'm using an HPTerm on CDE with 11.11 (PA-RISC flavored), and "set -o vi" + "export HISTFILE=" to get command line editing.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Pete</description>
      <pubDate>Fri, 07 Jan 2005 06:11:58 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/command-prompt-get-truncated-to-80-chars-whenever-recall-command/m-p/3457799#M848405</guid>
      <dc:creator>Pete Randall</dc:creator>
      <dc:date>2005-01-07T06:11:58Z</dc:date>
    </item>
    <item>
      <title>Re: Command Prompt get truncated to 80 chars whenever recall command using ESC-k</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/command-prompt-get-truncated-to-80-chars-whenever-recall-command/m-p/3457800#M848406</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;try this command to set the current window size environment:&lt;BR /&gt;&lt;BR /&gt;eval $(resize)&lt;BR /&gt;&lt;BR /&gt;Regards</description>
      <pubDate>Fri, 07 Jan 2005 06:19:30 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/command-prompt-get-truncated-to-80-chars-whenever-recall-command/m-p/3457800#M848406</guid>
      <dc:creator>Andreas Voss</dc:creator>
      <dc:date>2005-01-07T06:19:30Z</dc:date>
    </item>
    <item>
      <title>Re: Command Prompt get truncated to 80 chars whenever recall command using ESC-k</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/command-prompt-get-truncated-to-80-chars-whenever-recall-command/m-p/3457801#M848407</link>
      <description>Have you tried using following to edit the command?&lt;BR /&gt;&lt;BR /&gt;h : move cursor one character to left&lt;BR /&gt;l : move cursor one character to right&lt;BR /&gt;&lt;BR /&gt;sks</description>
      <pubDate>Fri, 07 Jan 2005 06:28:52 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/command-prompt-get-truncated-to-80-chars-whenever-recall-command/m-p/3457801#M848407</guid>
      <dc:creator>Sanjay Kumar Suri</dc:creator>
      <dc:date>2005-01-07T06:28:52Z</dc:date>
    </item>
    <item>
      <title>Re: Command Prompt get truncated to 80 chars whenever recall command using ESC-k</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/command-prompt-get-truncated-to-80-chars-whenever-recall-command/m-p/3457802#M848408</link>
      <description>It's not the command that gets truncated. It is the command prompt ... You can test this by going to a directory path that is greater than 80 chars with your command prompt set to display the current directory (export PS1='$PWD &amp;gt;&amp;gt;').&lt;BR /&gt;&lt;BR /&gt;eval $(resize) does not work.</description>
      <pubDate>Fri, 07 Jan 2005 06:32:00 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/command-prompt-get-truncated-to-80-chars-whenever-recall-command/m-p/3457802#M848408</guid>
      <dc:creator>JLiYim</dc:creator>
      <dc:date>2005-01-07T06:32:00Z</dc:date>
    </item>
    <item>
      <title>Re: Command Prompt get truncated to 80 chars whenever recall command using ESC-k</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/command-prompt-get-truncated-to-80-chars-whenever-recall-command/m-p/3457803#M848409</link>
      <description>Oh, I see.  In that case, you've got me.  I would find having a command prompt of varying width (let alone greater than 80 characters!) far more disconcerting!&lt;BR /&gt;&lt;BR /&gt;Sorry I couldn't help.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Pete</description>
      <pubDate>Fri, 07 Jan 2005 06:40:11 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/command-prompt-get-truncated-to-80-chars-whenever-recall-command/m-p/3457803#M848409</guid>
      <dc:creator>Pete Randall</dc:creator>
      <dc:date>2005-01-07T06:40:11Z</dc:date>
    </item>
    <item>
      <title>Re: Command Prompt get truncated to 80 chars whenever recall command using ESC-k</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/command-prompt-get-truncated-to-80-chars-whenever-recall-command/m-p/3457804#M848410</link>
      <description>This appears to be a limitation/feature of the command prompt PS1 rather than the pwd command. If you set PS1 to a long string, it only displays the right hand 80 characters.</description>
      <pubDate>Fri, 07 Jan 2005 06:46:21 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/command-prompt-get-truncated-to-80-chars-whenever-recall-command/m-p/3457804#M848410</guid>
      <dc:creator>Stephen Keane</dc:creator>
      <dc:date>2005-01-07T06:46:21Z</dc:date>
    </item>
    <item>
      <title>Re: Command Prompt get truncated to 80 chars whenever recall command using ESC-k</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/command-prompt-get-truncated-to-80-chars-whenever-recall-command/m-p/3457805#M848411</link>
      <description>Check this link (last 20 lines):&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://www.nersc.no/~knutal/unix_tips.html" target="_blank"&gt;http://www.nersc.no/~knutal/unix_tips.html&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;sks</description>
      <pubDate>Fri, 07 Jan 2005 06:54:44 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/command-prompt-get-truncated-to-80-chars-whenever-recall-command/m-p/3457805#M848411</guid>
      <dc:creator>Sanjay Kumar Suri</dc:creator>
      <dc:date>2005-01-07T06:54:44Z</dc:date>
    </item>
    <item>
      <title>Re: Command Prompt get truncated to 80 chars whenever recall command using ESC-k</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/command-prompt-get-truncated-to-80-chars-whenever-recall-command/m-p/3457806#M848412</link>
      <description>This does not happen on CYGWIN and I wonder whether other UNIX platforms (SUN/IBM/Linux) have the same issue.&lt;BR /&gt;&lt;BR /&gt;Anybody who has worked on Oracle E-Business Suite knows that some directory paths can easily be more than 80 chars and this is one of the reason why I set the window's width to be 140 or more.&lt;BR /&gt;&lt;BR /&gt;I do not think that is is an issue with PS1 as this does not happen when I use emacs as the command editor.</description>
      <pubDate>Fri, 07 Jan 2005 07:22:57 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/command-prompt-get-truncated-to-80-chars-whenever-recall-command/m-p/3457806#M848412</guid>
      <dc:creator>JLiYim</dc:creator>
      <dc:date>2005-01-07T07:22:57Z</dc:date>
    </item>
    <item>
      <title>Re: Command Prompt get truncated to 80 chars whenever recall command using ESC-k</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/command-prompt-get-truncated-to-80-chars-whenever-recall-command/m-p/3457807#M848413</link>
      <description>Correction ... it does happen when I use emacs but only when I use CTRL-L. If I just use CTRL-P and CTRL-N, the command prompt remain unchanged.</description>
      <pubDate>Fri, 07 Jan 2005 07:33:28 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/command-prompt-get-truncated-to-80-chars-whenever-recall-command/m-p/3457807#M848413</guid>
      <dc:creator>JLiYim</dc:creator>
      <dc:date>2005-01-07T07:33:28Z</dc:date>
    </item>
    <item>
      <title>Re: Command Prompt get truncated to 80 chars whenever recall command using ESC-k</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/command-prompt-get-truncated-to-80-chars-whenever-recall-command/m-p/3457808#M848414</link>
      <description>Expand window, type in:&lt;BR /&gt;&lt;BR /&gt;resize&lt;BR /&gt;&lt;BR /&gt;Then you should see it.&lt;BR /&gt;&lt;BR /&gt;This is what I do fro .profile&lt;BR /&gt;&lt;BR /&gt;HOST=`uname -n`&lt;BR /&gt;PS1="&lt;BR /&gt;\$LOGNAME@\$HOST [ \$PWD ]&lt;BR /&gt;# ";export PS1&lt;BR /&gt;&lt;BR /&gt;That way, commands are on line below the path.&lt;BR /&gt;&lt;BR /&gt;Rgds...Geoff</description>
      <pubDate>Fri, 07 Jan 2005 08:44:26 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/command-prompt-get-truncated-to-80-chars-whenever-recall-command/m-p/3457808#M848414</guid>
      <dc:creator>Geoff Wild</dc:creator>
      <dc:date>2005-01-07T08:44:26Z</dc:date>
    </item>
    <item>
      <title>Re: Command Prompt get truncated to 80 chars whenever recall command using ESC-k</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/command-prompt-get-truncated-to-80-chars-whenever-recall-command/m-p/3457809#M848415</link>
      <description>If there is no way to prevent the truncate, how can I ensure that the prompt only display the last 80 characters?&lt;BR /&gt;&lt;BR /&gt;Currently, PS1 is set as follows:&lt;BR /&gt;export PS1='['`whoami`'@'`uname -n`']$PWD&amp;gt;&amp;gt; '&lt;BR /&gt;&lt;BR /&gt;John</description>
      <pubDate>Fri, 07 Jan 2005 10:57:31 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/command-prompt-get-truncated-to-80-chars-whenever-recall-command/m-p/3457809#M848415</guid>
      <dc:creator>JLiYim</dc:creator>
      <dc:date>2005-01-07T10:57:31Z</dc:date>
    </item>
    <item>
      <title>Re: Command Prompt get truncated to 80 chars whenever recall command using ESC-k</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/command-prompt-get-truncated-to-80-chars-whenever-recall-command/m-p/3457810#M848416</link>
      <description>After a while, these really long $PWD prompts can be very annoying, even if they are on a separate line. Usually, you know the parent structure of where you are located and you only need the current directory and the next higher directory. This will accomplish that task and avoid the truncation:&lt;BR /&gt; &lt;BR /&gt;export PS1='${PWD##${PWD%/*/*}/} $ '</description>
      <pubDate>Fri, 07 Jan 2005 14:09:53 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/command-prompt-get-truncated-to-80-chars-whenever-recall-command/m-p/3457810#M848416</guid>
      <dc:creator>Bill Hassell</dc:creator>
      <dc:date>2005-01-07T14:09:53Z</dc:date>
    </item>
  </channel>
</rss>

