The UNIX and Linux Forums  
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.

Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Dummies Questions & Answers
.
google unix.com



UNIX for Dummies Questions & Answers If you're not sure where to post a UNIX or Linux question, post it here. All UNIX and Linux newbies welcome !!

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Sort command - strange behaviour miwinter UNIX for Advanced & Expert Users 16 05-29-2008 08:19 AM
Strange sed behaviour vino UNIX for Advanced & Expert Users 8 02-12-2008 06:51 AM
A Strange Behaviour!!! navojit dutta Shell Programming and Scripting 5 12-21-2007 04:35 AM
/etc/passwd strange behaviour! penguin-friend Linux 0 06-06-2005 01:00 PM
very strange behaviour on unix server bolo77 UNIX for Dummies Questions & Answers 7 03-02-2005 03:32 PM

 
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Bulgarian Greek Powered by Powered by Google
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
Prev Previous Post   Next Post Next
  #1 (permalink)  
Old 03-27-2008
anurags anurags is offline
Registered User
  
 

Join Date: Mar 2008
Posts: 2
Longer commands and strange behaviour on ksh

Hi,
I was trying to customize this archaic HP-UX box. only shell available is ksh and that too seems to be pretty old and doesn't completely conform to what I read on the web about ksh. Anyway here are my issues:

- I wanted to have a dynamic title on xterm or dtterm. I put the following lines in my .kshrc:
PS1='ESC]0;${USER}@${HOSTNAME}: ${PWD}BEL${HOSTNAME}$ '

I had to spend hours to get the correct sequence for the ESC and BEL but finally got it working and works like charm.

However what happens now is on the command line whenever I enter a longer command even if its on the same line the "<" appears halfway and I can't see the whole command. Not sure why because the default screen itself has many many characters left on the side and it shouldn't be the case any idea how to fix it.

2. I wanted to customize the arrow keys which I was able to but couldn't do any thing with the home, end and pgup pgdn keys and command completions using tab (not escape escape) note the bind key for the tab completions doesn't work.

for the arrow keys following are working but don't know what to do about the home & end keys (^a & ^e are the keystrokes which are actually working right now as home and end. However if I press home and end keys they work more like pgup & pgdn keys.

arrow key customizations (in case someone wants to use them) - got it from web:
set -o emacs
alias __A=$(print '\0020') # ^P = up = previous command
alias __B=$(print '\0016') # ^N = down = next command
alias __C=$(print '\0006') # ^F = right = forward a character
alias __D=$(print '\0002') # ^B = left = back a character

Please help. Thanks in advance.
Anu
 

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT -4. The time now is 05:59 AM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language Translations Powered by .
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0