Operating System - HP-UX
1820074 Members
2896 Online
109608 Solutions
New Discussion юеВ

stty erase problem driving me creasy !!!!!

 
I.Delic
Super Advisor

stty erase problem driving me creasy !!!!!

Hi,
This problem driving me crazy. I don't no wat i'm doing wrong.
I use x reflatction terminal emulation to make connection with my unix box. Evrything is ok except if i want to use an terminal. The terminalwindow works to but my erase key is allways ^H en i want to use Backspace.
stty erase ^? works fine but i want to do this automaticly form my profile.
If i make telnet connection to my unix box evrything works fine to ( .pfoile ).

Only if a use reflectionX it works not correcty. Of course i made some changes in mij .dtprofile file (export DTSOURCEPROFILE=true) but it doesn't help.

Please check my .dtprofile and .profile file to see wat is wrong
Thanks in advance

Idriz
3 REPLIES 3
Bill Hassell
Honored Contributor

Re: stty erase problem driving me creasy !!!!!

Unfortunately, Xwindows is not a normal Unix login. While setting DTSOURCEPROFILE=true will run your $HOME/.profile, this will not run /etc/profile, something that lways occurs with a telnet login. You need to execute an stty setup for all logins. While you can add an stty setting to .profile, you will still miss the global settings and controls in /etc/profile. On the machine where you are logging in, do this:

echo "*loginShell: true" > $HOME/.Xdefaults

Now each terminal window (such as hpterm, xterm or dtterm) will login normally and run /etc/profile, then .profile (assuming POSIX shell or ksh, etc). Another thing to do is to make sure ttytype is ALWAYS run during login. The default /etc/profile and .profile assume that if $TERM is set already, then it must be correct. However, the world of PCs has muddied these waters in carrying terminal information to remote hosts. Therefore, use ttytype to define the T$ERM and LINES/COLUMNS values. Take out the if code for $TERM and replace it with:

eval $(/sbin/ttytype -s)
/sbin/stty erase "^H" kill "^U" intr "^C" eof "^D" -parity ixoff

FInally, Reflection terminal emulators that run in the vt100 mode will default the backspace key to delete and not backspace. Go into the window settings for Setup->Terminal and make sure backspace = backspace. Then save the settings in the default location for Reflection windows.


Bill Hassell, sysadmin
I.Delic
Super Advisor

Re: stty erase problem driving me creasy !!!!!

this is my .profile and .dtprofile file


idriz
I.Delic
Super Advisor

Re: stty erase problem driving me creasy !!!!!

Thank you Bill for your sulution. It is the good one but not the one i was looking for.

After implementing your solution i went to see if all settings of my application goed was ( reflection ).
That was the key to success . The settings was not good. I corrected it and now it works just fine.

Thank you


Idriz