1838670 Members
5890 Online
110128 Solutions
New Discussion

Re: Terminal settings

 
SOLVED
Go to solution
No Name_2
Occasional Advisor

Terminal settings

Here's a dumb/easy one - I'm new to UX...

While running a char cell terminal emulator and logged into UX, I can't backspace - I get only ^?... I saw someone key a command that made backspace actually backspace...

Anyone know what this is??? Thanks!
7 REPLIES 7
Sridhar Bhaskarla
Honored Contributor

Re: Terminal settings

Try this..

stty erase

-Sri
You may be disappointed if you fail, but you are doomed if you don't try
MANOJ SRIVASTAVA
Honored Contributor

Re: Terminal settings

hi

at the comnad prompt
stty erase (press the back space key)


Manoj Srivastava
A. Clay Stephenson
Acclaimed Contributor

Re: Terminal settings

stty erase '^H'.

The smart play would be to put this is your .profile or make sure that your are using a defined TERM type.
If it ain't broke, I can fix that.
S.K. Chan
Honored Contributor

Re: Terminal settings

Check your stty setting ..
$ stty
==> Look for "erase". It's probably set to something else or not set at all.
To set it ..
$ stty erase
Now check again ..
$ stty
No Name_2
Occasional Advisor

Re: Terminal settings

Works great! Thank you... how would I make this permenant so I don't have to do this every time I start a new session?

Thanks again!!!
A. Clay Stephenson
Acclaimed Contributor
Solution

Re: Terminal settings

I would actually approach it like this (in a brand new session):

1) Before you do a stty command to set erase, do a stty and note the value of erase. It's probably ^H.

2) Change the keyboard mapping of your terminal emulator so that <- generates a ctrl-h (ASCII 8) and save.

If it ain't broke, I can fix that.
No Name_2
Occasional Advisor

Re: Terminal settings

All is well... thanks (and points!) to all.