- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: Command Prompt get truncated to 80 chars whene...
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
Discussions
Discussions
Forums
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
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
тАО01-06-2005 09:59 PM
тАО01-06-2005 09:59 PM
Command Prompt get truncated to 80 chars whenever recall command using ESC-k
I have set the command prompt (PS1) to show the current working directory and am currently using vi to recall command history.
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.
Is there a way to prevent this from happening?
Thanks,
John
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-06-2005 10:11 PM
тАО01-06-2005 10:11 PM
Re: Command Prompt get truncated to 80 chars whenever recall command using ESC-k
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.
Pete
Pete
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-06-2005 10:19 PM
тАО01-06-2005 10:19 PM
Re: Command Prompt get truncated to 80 chars whenever recall command using ESC-k
try this command to set the current window size environment:
eval $(resize)
Regards
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-06-2005 10:28 PM
тАО01-06-2005 10:28 PM
Re: Command Prompt get truncated to 80 chars whenever recall command using ESC-k
h : move cursor one character to left
l : move cursor one character to right
sks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-06-2005 10:32 PM
тАО01-06-2005 10:32 PM
Re: Command Prompt get truncated to 80 chars whenever recall command using ESC-k
eval $(resize) does not work.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-06-2005 10:40 PM
тАО01-06-2005 10:40 PM
Re: Command Prompt get truncated to 80 chars whenever recall command using ESC-k
Sorry I couldn't help.
Pete
Pete
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-06-2005 10:46 PM
тАО01-06-2005 10:46 PM
Re: Command Prompt get truncated to 80 chars whenever recall command using ESC-k
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-06-2005 10:54 PM
тАО01-06-2005 10:54 PM
Re: Command Prompt get truncated to 80 chars whenever recall command using ESC-k
http://www.nersc.no/~knutal/unix_tips.html
sks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-06-2005 11:22 PM
тАО01-06-2005 11:22 PM
Re: Command Prompt get truncated to 80 chars whenever recall command using ESC-k
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.
I do not think that is is an issue with PS1 as this does not happen when I use emacs as the command editor.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-06-2005 11:33 PM
тАО01-06-2005 11:33 PM