I'm working at a company that uses three different Unices (Linux, Solaris and AIX) all with the same home directories/etc. They all use GNU coreutils (thankfully!), but it's still "interesting" trying to work around various issues. We connect to them by running an X server (Exceed On Demand) on our (Windows) desktops and using xterm, or
sshing from another machine from an existing xterm window (there are other methods too but I don't currently use them so I'll leave them out for now).
In particular, I had issues on Solaris with the backspace key. It would work in bash but just print ^H in some other applications (especially readline-based things).
I'm currently using the solution of having
stty erase ^H in my
~/.profile and the following in my
*VT100.Translations: #override \ <Key>BackSpace: string(0x08)\n
This seems to work most of the time but is perhaps not desirable since I'm explicitly setting the backspace key to something that might not be the default/preferred on each platform. In particular, I often get messages when using
reset reminding me that I've set erase to ^H, and very occasionally through a series of circumstances that I haven't yet been able to figure out everything breaks again; perhaps things will work in readline-based apps but not in bash; and I'll have to type
reset to get everything back to normal.
These issues lead me to believe that this might not be the preferred way of doing this. Does anyone have any improvement over this situation?