|
|
#1 |
|
Prospect
Join Date: Apr 2002
Location: Santa Cruz
Posts: 1
|
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?
|
|
|
|
|
|
#2 |
|
Prospect
Join Date: Apr 2002
Location: d/fw
Posts: 4
|
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 |
|
|
|
|
|
#3 |
|
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! |
|
|
|
|
|
#4 |
|
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. |
|
|
|
|
|
#5 |
|
Prospect
Join Date: Apr 2002
Location: d/fw
Posts: 4
|
Echo...
echo echo e c h o . . .
__________________
-- ghx |
|
|
|
|
|
#6 |
|
Moderator
Join Date: Jan 2002
Location: Singapore
Posts: 4,237
|
sangandongo,
Sorry about that. Already deleted the 'echo' part in my post. Cheers... |
|
|
|
|
|
#7 |
|
Major Leaguer
Join Date: Jan 2002
Location: Gaithersburg, MD
Posts: 494
|
ok I'm lazy
instead of using backspace you could use delete instead.
|
|
|
|
|
|
#8 |
|
Prospect
Join Date: Jan 2002
Location: ann arbor, mi
Posts: 24
|
you could also just use
control h
|
|
|
|
|
|
#9 |
|
Prospect
Join Date: Apr 2002
Location: d/fw
Posts: 4
|
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 |
|
|
|
|
|
#10 |
|
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? |
|
|
|
|
|
#11 |
|
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. |
|
|
|
|
|
#12 | |||||||||||||||||||
|
Triple-A Player
Join Date: Mar 2003
Location: Australia
Posts: 112
|
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 ? |
|||||||||||||||||||
|
|
|
|
|
#13 |
|
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? |
|
|
|
|
|
#14 |
|
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 |
|
|
|
|
|
#15 |
|
Triple-A Player
Join Date: Mar 2003
Location: Australia
Posts: 112
|
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 :-) |
|
|
|
![]() |
|
|