Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Why do I have an equals sign at the end of my unix prompt? 1

Status
Not open for further replies.

Chrissirhc

Programmer
May 20, 2000
926
GB
I have this in my .mycshrc file I have

#ksh
setenv VISUAL vi
setenv PS1='$HOSTNAME'": "'$PWD'" > "
#setenv PS1='$USER'" on "`hostname`": "'$PWD'" > "
exec ksh -o vi

and my prompt looks like this

servername: /home/username > =

Why do I have an equals sign at the end??

Thanks,

Chris
 
If you can't configure your terminal for keyboard mapping within a unix session, you may consider to use the Del key as the kill character (ie erase the whole line):
Code:
stty erase ^H kill ^?

Hope This Help
PH.
 
Thanks PHV I may use that for now. If you find out what command I can use to get both keys doing a single character delete, please let me know.

Thanks,

Chris
 
what terminal emulator are you using?
what flavour of unix are you connecting to?
 
Actually I'm find the delete key mapping to kill quite annoying and hard to get used to...

Do you have any other ideas for me to get this working so that both backspace and delete keys just delete single characters?

Thanks in advance,

Chris
 
You need to tell us which terminal emulator you're using and which Unix.

Greg.
 
Using uname -X Its SunOS I use telnet or exceed if thats what you mean by terminal emulator?
 
Chrissirhc, this is the third posting you have put out on this. What exactly is it that you want? Do you want the backspace key to backspace and delete the way it would in a Windows editor? Do you want the delete key to do anything? In one (or all three) of the postings, you say you want the backspace key and the delete key to delete. Why?

put stty erase "^H" in your .profile to get backspace to delete characters to the left. In addition (as stated in a couple of previous answers to you in this and one of your other threads), if you are using a terminal emulator like Exceed or Reflection, you may also have to select an option like "Backspace key sends delete" in the emulators settings window.

And if you really want two keys to do the same thing: add on your stty line in .profile this (after the erase "^H"): erase "^?"

If you are finding "the delete key mapping to kill quite annoying and hard to get used to..." why don't you just delete the part in your .profile to get rid of it?


 
As I said earlier, using telnet (as supplied with MS Windows), you can't set two keys to do stty erase. One or the other, and not worth losing any more sleep over.

Greg.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top