Go Back   The macosxhints Forums > OS X Help Requests > UNIX - Newcomers



Reply
 
Thread Tools Rating: Thread Rating: 10 votes, 5.00 average. Display Modes
Old 04-13-2002, 01:03 PM   #1
bblake
Prospect
 
Join Date: Apr 2002
Location: Santa Cruz
Posts: 1
Question Telnet Backspace Problems

Whenever I use the terminal program to telnet from my computer to my school's local server, I can't use backspace. When I hit backspace it prints ^? Is there a preference somewhere in the Terminal that I need to set to send a backspace on a telnet connection? Or is this a problem with the configuration of the server I'm trying to connect to?
bblake is offline   Reply With Quote
Old 04-13-2002, 01:18 PM   #2
sangandongo
Prospect
 
Join Date: Apr 2002
Location: d/fw
Posts: 4
Lightbulb easy fix

this isn't mac specific, it happens when your terminal can't emulate the console type properly.

after logging in to the server giving you this error, type the following:

stty erase (backspace)

where (backspace) is the button itself, not the word in parens. this should actually end up looking like this: stty erase ^?

hit enter and now backspace will work.
__________________
--
ghx
sangandongo is offline   Reply With Quote
Old 04-13-2002, 02:52 PM   #3
xchanyazy
All Star
 
Join Date: Jan 2002
Location: Dexter, MI, USA
Posts: 704
Put the stty command that sangandongo said in your ~/.cshrc file (on the server, it might be called .login or .profile, depending on the login shell) so that you don't have to type it everytime.
__________________
- Greg

Happy user of OS X since the Public Beta.
Help Team Mac OS X cure cancer, Alzheimer's, ALS, Parkinson's, and more!
xchanyazy is offline   Reply With Quote
Old 04-25-2002, 04:30 AM   #4
sao
Moderator
 
Join Date: Jan 2002
Location: Singapore
Posts: 4,237
bblake,


Note that ^? should be quoted as '^?' or ^\? in the ~/.login file to turn off the special meaning that the ? character has to the shell as a pattern matching operator.


Cheers...

Last edited by sao; 04-25-2002 at 04:42 PM.
sao is offline   Reply With Quote
Old 04-25-2002, 08:12 AM   #5
sangandongo
Prospect
 
Join Date: Apr 2002
Location: d/fw
Posts: 4
Echo...

echo echo e c h o . . .
__________________
--
ghx
sangandongo is offline   Reply With Quote
Old 04-25-2002, 04:37 PM   #6
sao
Moderator
 
Join Date: Jan 2002
Location: Singapore
Posts: 4,237
sangandongo,

Sorry about that. Already deleted the 'echo' part in my post.


Cheers...
sao is offline   Reply With Quote
Old 04-25-2002, 04:39 PM   #7
macubergeek
Major Leaguer
 
Join Date: Jan 2002
Location: Gaithersburg, MD
Posts: 494
ok I'm lazy

instead of using backspace you could use delete instead.
macubergeek is offline   Reply With Quote
Old 04-25-2002, 08:49 PM   #8
normcook
Prospect
 
Join Date: Jan 2002
Location: ann arbor, mi
Posts: 24
you could also just use

control h
normcook is offline   Reply With Quote
Old 04-26-2002, 09:46 AM   #9
sangandongo
Prospect
 
Join Date: Apr 2002
Location: d/fw
Posts: 4
Talking To Mr. Hand

Sao,

No need to apologize, I was simply having a bit of fun.

anyhow, you were right about the escape characters. It slipped my mind that he might have taken my '^?' literally.
__________________
--
ghx
sangandongo is offline   Reply With Quote
Old 11-30-2003, 12:44 AM   #10
Gheto Fabulous
Triple-A Player
 
Join Date: Mar 2003
Location: Australia
Posts: 112
I have this problem too, but typing a Backspace or delete sends ^H or ^[[3~ in Panther on Secure FTP

IF I type the stty erase command - I just get an error like this:

sftp> stty erase ^H
Invalid command.
sftp>

sftp> stty erase ^H?
Invalid command.
sftp>

How can I fix this?
Gheto Fabulous is offline   Reply With Quote
Old 11-30-2003, 10:08 AM   #11
acme.mail.order
League Commissioner
 
Join Date: Sep 2003
Location: Tokyo
Posts: 6,334
You're having a problem because you are talking to the wrong program. 'stty' is a shell program that modifies the shell's environment. sftp is another shell program that moves files between systems. The difference is that sftp is interactive, and once you start it it has it's own set of commands - it doesn't understand shell language and vice versa.

stty runs and exits in a single line and returns you to the shell from whence you came.

try using the stty command outside of sftp. If you can type and delete in the shell, you should also be able to do it with all shell programs.
acme.mail.order is offline   Reply With Quote
Old 11-30-2003, 02:01 PM   #12
Gheto Fabulous
Triple-A Player
 
Join Date: Mar 2003
Location: Australia
Posts: 112
Quote:
Originally posted by acme.mail.order

try using the stty command outside of sftp. If you can type and delete in the shell, you should also be able to do it with all shell programs.

Thanks for the explanation, much appreciated... and this is kinda what I thought.... however, when I'm in a sftp session only, the delete key doesn't function as expected.
When I do local shell session or ssh to my other Mac, the delete key functions normally.
I have a feeling it's one of my dot files. I had to take out the line:
echo hello $user from my .tcshrc in order to get sftp to work in the first place. It kept throwing up an error otherwise.

I think there is also something going on with my install of the terminal because after I complete a session, logout and quit the terminal, next time I load the terminal I'm logged out again with a message process completed.

What other files do you think I should look at besides my ~/.tcshrc ?
Gheto Fabulous is offline   Reply With Quote
Old 11-30-2003, 09:05 PM   #13
acme.mail.order
League Commissioner
 
Join Date: Sep 2003
Location: Tokyo
Posts: 6,334
Try using a different shell. Type 'bash' at the first prompt to switch to the bourne shell. check that delete works, then run sftp.

Any particular reason you're using sftp instead of plain ftp?
acme.mail.order is offline   Reply With Quote
Old 12-09-2003, 12:32 AM   #14
jhankins
Triple-A Player
 
Join Date: Dec 2003
Posts: 56
just a guess

I would guess sftp is being used for security yes?
For those that don't know, ftp happens in the clear, meaning one can be somewhere in the traffic flow and decern usernames and passwords with traffic capturing (sniffing) sftp is a much more secure method of file transfer.

Best Regards,

Jim
jhankins is offline   Reply With Quote
Old 12-10-2003, 05:40 PM   #15
Gheto Fabulous
Triple-A Player
 
Join Date: Mar 2003
Location: Australia
Posts: 112
Talking

Indeed my dear jhankins, indeed.

yet still I gets the same problems and dilemmas - but only during sftp - ssh is fine - no idea why it happens, so have given up :-)
Gheto Fabulous is offline   Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump



All times are GMT -5. The time now is 06:24 PM.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.
Site design © IDG Consumer & SMB; individuals retain copyright of their postings
but consent to the possible use of their material in other areas of IDG Consumer & SMB.