VanDyke Software Forums

Go Back   VanDyke Software Forums > SecureCRT 5.1/SecureFX 3.1/VShell 2.6 Beta
User Name
Password
FAQ Members List Calendar Search Today's Posts Mark Forums Read

 
 
Thread Tools Display Modes
  #1  
Old 06-03-2005, 08:42 PM
dcomo's Avatar
dcomo dcomo is offline
Registered User
 
Join Date: Mar 2004
Location: New York
Posts: 124
Emulation causing problems deleting typed text

Recently I have noticed that when using Linux or Xterm terminal emulation, I cannot delete any text typed after a shell prompt that is requesting additional information.

Here's an example:

1. On a Linux workstation using the bash shell, I have created a sample file simply called test. (command issued: #touch test)

2. Now, when I attempt to remove the file (command issued: # rm test) I am prompted with the following:

Code:
rm: remove regular file `test'?
3. If I make a mistake and type in something other than y/n, I'd like to press the backspace or delete key to erase it so I can re-type it.

Previously, pressing the backspace key has given me a character code, however pressing the delete key would actually delete the previous character
and move the cursor one place to the left. (This is also the way that it works within ANSI encoding.)

Now, I am getting the following:
(The character codes are identical in Xterm and Linux)

Pressing backspace shows:
Code:
^H
Pressing delete shows:
Code:
^[[3~
If I make a typo, I have to CTRL+C, which will cancel the current prompt and re-enter the correct response.
__________________
Drew J. Como
Highland Visuals & Graphic Design
  #2  
Old 06-03-2005, 10:54 PM
toloughlin's Avatar
toloughlin toloughlin is offline
Senior Member
 
Join Date: Feb 2004
Location: Nashua, NH
Posts: 378
Quote:
Originally Posted by dcomo
If I make a typo, I have to CTRL+C, which will cancel the current prompt and re-enter the correct response.
I noticed this too. I found that using Ctrl+Backspace gets rid of what you typed, at least in the Linux term type.
It saves you from having to Ctrl+C what you're in the middle of.
__________________
----------------------------------------------
Tom O'Loughlin
  #3  
Old 06-04-2005, 09:10 AM
dcomo's Avatar
dcomo dcomo is offline
Registered User
 
Join Date: Mar 2004
Location: New York
Posts: 124
toloughlin,

Thanks for the tip. Yes, this seems to be a good workaround, however this really needs to be corrected since new users (and even existing users) will find this cumbersome. (In the meantime, this saves me tons of time!)

I am a very fast typist, however my accuracy depends on what time of the day it is and if I had my coffee yet.

Please note that this works in the Xterm emulation as well.
__________________
Drew J. Como
Highland Visuals & Graphic Design
  #4  
Old 06-05-2005, 08:11 PM
Maureen's Avatar
Maureen Maureen is offline
VanDyke Product Director
 
Join Date: Feb 2004
Location: Albuquerque, NM
Posts: 1,612
Thanks for reporting this. We'll look into it and let you know what we find out.

Maureen
  #5  
Old 06-05-2005, 10:32 PM
toloughlin's Avatar
toloughlin toloughlin is offline
Senior Member
 
Join Date: Feb 2004
Location: Nashua, NH
Posts: 378
Quote:
Originally Posted by dcomo
... however this really needs to be corrected since new users (and even existing users) will find this cumbersome. (In the meantime, this saves me tons of time!)
I hear ya, these guys are good - fixes come quick
__________________
----------------------------------------------
Tom O'Loughlin
  #6  
Old 06-06-2005, 08:17 AM
DaCypher DaCypher is offline
Registered User
 
Join Date: Mar 2005
Posts: 33
Hmm, I always thought this had to do with the specific setup of my machines (i.e. some funky initialization scripts for my root users). This only seems to happen when I am root user and only in certain situations (I believe it is only when I am running a program that is reading from stdin - such as rm -i). This problem doesn't occur when I do a 'rm -i test' as a normal user. What I have done as a workaround is put 'stty erase ^H' in /root/.bashrc.
 

Thread Tools
Display Modes

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 -6. The time now is 05:08 AM.


copyright 1995-2017 VanDyke Software, Inc.