![](_gb_images/_gb_sitenav_spacer.gif) |
![](_gb_images/_gb_clear.gif) |
OSX telnet to Solaris: backspace problem
|
![](_gb_images/_gb_clear.gif) |
|
![](_gb_images/_gb_clear.gif) |
Dedicated MacNNer
Join Date: Apr 2001
Location: Montrose, CA
Status:
Offline
|
|
Hi,
I am telnetting from my OS X system (10.1.4) to various Solaris machines running Solaris 8. Backspace works fine until I vi a file; then, my backspace character is "^?".
I figured that manually setting my backspace char to ^h would work, but fails when I enter the editor...
I'm not sure how to solve this problem. Searches covered the terminal app in OS X, but not the problem I'm seeing.
Any help is appreciated. I'm getting tired of ^u & retyping my entire line!!
-Chris
|
|
|
|
|
|
![](_gb_images/_gb_clear.gif) |
|
![](_gb_images/_gb_clear.gif) |
Mac Elite
Join Date: May 2001
Location: Earth
Status:
Offline
|
|
Not sure if this would help, but did you try to enable strict VT100 emulation in Terminal's prefs ?
|
|
|
|
|
|
![](_gb_images/_gb_clear.gif) |
|
![](_gb_images/_gb_clear.gif) |
Junior Member
Join Date: Mar 2001
Location: top 3%
Status:
Offline
|
|
you could always just do a
> stty erase ^? (just hit backspace)
that will set your terminal to use that key as erase. vi must be resetting your terminal settings to what it wants, leaving you hosed in the shell. I would look for a vi setting to control that behavior, and look in any rc files in your home directory that may be doing this.
|
|
|
|
|
|
![](_gb_images/_gb_clear.gif) |
|
![](_gb_images/_gb_clear.gif) |
Dedicated MacNNer
Join Date: Apr 2001
Location: Montrose, CA
Status:
Offline
|
|
Thanks for the suggestions.
stty erase ^? doesn't seem to carry into vi; I even tried putting that command in the .exrc but no luck. The best I can hope for is manually typing ctrl-h, which as you can imagine is a pain.
I also tried using strict vt100, but still no luck.
Oh well, thanks anyway! If I find anything useful in the man pages, I'll post here in case someone else has this problem.
-Chris
|
|
|
|
|
|
![](_gb_images/_gb_clear.gif) |
|
![](_gb_images/_gb_clear.gif) |
Professional Poster
Join Date: Apr 2001
Location: Asheville, NC
Status:
Offline
|
|
I have the same problem. My problem only occurs when I log in from X Windows. In this case, simply launching tcsh on the Solaris box after logging in fixes the problem. I don't have an explanation for why it happens or why this fixes it.
|
ACSA 10.4/10.3, ACTC 10.3, ACHDS 10.3
|
|
|
|
|
![](_gb_images/_gb_clear.gif) |
|
![](_gb_images/_gb_clear.gif) |
Forum Regular
Join Date: Nov 2000
Location: Seattle, Wa, USA
Status:
Offline
|
|
sorry to just post trash..
but i hate solaris
i call it slowaris clownix
|
|
|
|
|
|
![](_gb_images/_gb_clear.gif) |
|
![](_gb_images/_gb_clear.gif) |
Mac Elite
Join Date: Dec 2001
Location: Atlanta, GA, USA
Status:
Offline
|
|
</font><blockquote><font size="1" face="Geneva, Verdana, Arial, sans-serif">quote:</font><hr /><font size="1" face="Geneva, Verdana, Arial, sans-serif">Originally posted by johann:
<strong>sorry to just post trash..
but i hate solaris
i call it slowaris clownix</strong></font><hr /></blockquote><font size="1" face="Geneva, Verdana, Arial, sans-serif">It's not just Solaris. AIX has the same problem. Apple should really fix their terminal emulation to pass the correct control sequences.
I have the stty command in by .cshrc on the remote host, but that's not a complete solution.
|
Mac Pro 2x 2.66 GHz Dual core, Apple TV 160GB, two Windows XP PCs
|
|
|
|
|
![](_gb_images/_gb_clear.gif) |
|
![](_gb_images/_gb_clear.gif) |
Dedicated MacNNer
Join Date: Apr 2001
Location: Montrose, CA
Status:
Offline
|
|
Well, the only way I can find it to fix it by not using the tcsh on my solaris machine.
Using csh is roughly the same functionality, and it maintains the "stty erase ^?" setting through to vi.
Even so, it doesn't erase the characters that are backspaced through until you leave 'insert' mode or type over them, but it's the best I can come up with for now...
|
|
|
|
|
|
![](_gb_images/_gb_clear.gif) |
|
![](_gb_images/_gb_clear.gif) |
Junior Member
Join Date: Mar 2001
Location: top 3%
Status:
Offline
|
|
</font><blockquote><font size="1" face="Geneva, Verdana, Arial, sans-serif">quote:</font><hr /><font size="1" face="Geneva, Verdana, Arial, sans-serif">Originally posted by Big-C:
<strong>
Even so, it doesn't erase the characters that are backspaced through until you leave 'insert' mode or type over them, but it's the best I can come up with for now...</strong></font><hr /></blockquote><font size="1" face="Geneva, Verdana, Arial, sans-serif">that is expected behaviour in vi, all flavors if my memory isn't completely shot.
|
|
|
|
|
|
![](_gb_images/_gb_clear.gif) |
|
![](_gb_images/_gb_clear.gif) |
Dedicated MacNNer
Join Date: May 2001
Location: Paris, France
Status:
Offline
|
|
tcsh default completion is control D
zsh is the "best" shell
bash is for "scripts" but actually quite easy to use and soon may be better than zsh for my tastes ![Stick Out Tongue](https://forums.macnn.com/images/smilies/oldschool/tongue.gif) (don't need to do leet scripts ala zsh anyway we still have perl heh)
then
apple terminal does pass correct "control sequences" it is just not recognised yet by most systems as it is new (like Eterm few times ago and even now)
to correct this tell your shell environment that you are for example vt220 compatible:
Bourne Shells:
export TERM=vt220
C Shells:
setenv TERM vt220
now u r a little more leet ![Stick Out Tongue](https://forums.macnn.com/images/smilies/oldschool/tongue.gif)
|
hotline://hl.chatonly.org
mp3://radio.chatonly.org
|
|
|
|
|
![](_gb_images/_gb_clear.gif) |
|
![](_gb_images/_gb_clear.gif) |
Mac Elite
Join Date: Mar 2000
Location: Allston, MA, USA
Status:
Offline
|
|
I have the same problem with Telneting into my IRIX Webserver. I need to type "stty dec" everytime I log in.
-- Jason
|
-- Jason
|
|
|
|
|
![](_gb_images/_gb_clear.gif) |
|
![](_gb_images/_gb_clear.gif) |
Addicted to MacNN
Join Date: Feb 2001
Location: zurich, switzerland
Status:
Offline
|
|
Good info Kangoo_boo.
Are you people really using telnet? And this for a remote host. This is asking for someone to sniff your passwords. I really would use SSH if I were you. I've had the same problem on various linux boxes with the backspace key in vi. What I did was simply to exit insert mode quickly by hitting the escape key, moving to the character before what Iwanted to delete and hitting "x" until everything I need to delete is deleted. Then I hit the "i" to get back into insert mode and I'm off again. Pain in the backside really, but I got used to it.
|
weird wabbit
|
|
|
|
|
![](_gb_images/_gb_clear.gif) |
|
![](_gb_images/_gb_clear.gif) |
Fresh-Faced Recruit
Join Date: May 2002
Status:
Offline
|
|
Backspace? -I couldn't find it on any of my Mac keyboards. The default settings in Solaris 8 all function properly with settings for TERM=vt100 and stty erase ^?(the "delete" key) using the bourne shell (/usr/bin/sh). Also my terminal.app setting on the mac are all default settings. Setting TERM to anything other than 'xterm', 'vt100', or 'ansi' wont do much for you and may introduce other problems since most emulators are shoddy about implementing the basic 'vt' or 'ansi' definitions. Also check to see if you have a ".exrc" file in your home directory or working directory or if you have EXINIT set in your environment. These could change your term or ttytype when vi starts up.
|
Sun support: You need to see your administrator.
Me: I am the administrator.
Sun: Oh...
TiPB 667/512/30
G4^3 500/1536/30
10.1.5/9.2.2
|
|
|
|
|
![](_gb_images/_gb_clear.gif) |
![](_gb_images/_gb_clear.gif) |
|
![](_gb_images/_gb_clear.gif) |
|
|
|
![](_gb_images/_img_misc/_gb_mb_previousthread-off.gif)
|
|
![](_gb_images/_gb_clear.gif) |
Forum Rules
|
![](_gb_images/_gb_clear.gif) |
![](_gb_images/_gb_clear.gif) |
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
|
HTML code is Off
|
|
|
|
|
|
![](_gb_images/_gb_clear.gif) |
![](_gb_images/_gb_clear.gif) |
![](_gb_images/_gb_clear.gif) |
![](_gb_images/_gb_clear.gif) |
|
![](_gb_images/_gb_sitenav_spacer.gif) |