![]() |
Home | What's New | Products | Download | Purchase | Support | About Us | Contact | Forums |
#1
|
|||
|
|||
SFTP implementation in SecureCRT 5.0
Let me first say that it's possible that my problem may be that all I'm wondering about can be set via some configuring option, but if that's so I can't seem to find in. OK:
The nicest new function in SecureCRT, apart from tabs, is the possibility to open an SFTP session by right clicking the tab. As it is today, however, I feel that it lacks a few functions for it to be really usable. 1. If I'm not missing anything I can't use <- and -> keys to navigate back and forth on a line. Only control codes gets output on screen. Very annoying. 2. Backspace also just causes a control code, you have to use delete. At the very least you should be able to configure backspace and del to switch functions, as you can do in the terminal. 3. There's no command line history. Arrow up and down should give me an option to browse history. 4. Is lcd not implemented? 5. When I open an SFTP tab, is it at all possible for the application to know what directory I'm currently in on the server side, so that SFTP opens in that directory? 6. Perhaps SFTP should locally open in another directory than the program folder? My suggestion would be to open in the users home directory (i.e. c:\Documents and Settings\<username>\). Preferably this should be an configurable option. |
#2
|
|||
|
|||
i agree with everything about also another thing that it think is missing is the tab complete functionality.
c0w |
#3
|
||||||
|
||||||
Quote:
editing is frustrating. I've entered an incident for this. (TT #9827) Quote:
a more complicated sequence? Do you have Session Options / Terminal / Emulation / Mapped Keys / Backspace sends delete checked? Is Backspace mapped on the Mapped Keys tab or in your keymap? Either of these cases would cause you problems, though I just checked in a fix for this. Quote:
Quote:
think it isn't? Quote:
We do have a way for this to work... but it is broken in the current builds. I checked a fix in yesterday, so again, it should work in the next alpha drop. But!, for this to work, you have to: a. Turn on Global Options / Terminal / Enable execute Escape Sequence (it is in the options group box on that page.) b. Send the following escape sequence from the remote system to open the tab window. (This is the only way it can work, because SCRT doesn't know what directory you are currently on the remote side): <esc>&&Bsftp-session <directory to open in>\n Under unix, the following command will do it: echo "^[&&Bsftp-session `pwd`" (To get the ^[, type ctrl+V,ctrl+[.) In addition, the following escape sequences work: <esc>&&Bsftp-upload `pwd` <esc>&&Bsftp-download `pwd` file-or-dir [more file or dirs] I have the download one in a sh script: #!/bin/sh echo "^[&&Bsftp-download `pwd` $*" And then I have an alias 'down' which points to the sh script. So I can type down * and get a recursive copy of my current working directory for example. Quote:
the default should probably be My Documents (which isn't necessarily in C\Documents and Settings even.) I also think it might be nice if SCRT remembered the last local directory you used for that session. (This is no gaurentee that what I think will get done though... I'm notoriously bad at decisions like this :-) Thanks for the valuable feedback. Joseph |
#4
|
|||
|
|||
Quote:
I too want this feature-- I'm forever hitting tab and then going, 'Argh, doesn't work!' Unfortunately, this one isn't a trivial one to add. (If I had to guess, I'd say it probably won't make 5.0-- but we'll have to wait and see. Maybe someone will decide to do it on a weekend :-) One possible workaround is to use the * for completions-- it isn't quite as nice, I know. For example, the following should work: cd * (If there is only one file in your current directory, and it is a directory.) cd Fly* (If Fly* resolves to exactly one thing and it is a directory.) Thanks, Joseph |
#5
|
|||
|
|||
Quote:
Quote:
Do you know why ^U ("hat" + U) is written to screen when I've deleted all the way to the start of the line? Regarding "lcd" not being implemented, maybe I'm just confused by trying to do this (I've tried all of these): lcd c:\Documents and Settings lcd 'c:\Documents and Settings' lcd "c:\Documents and Settings" lcd c:/Documents\ and\ Settings So it seems as if lcd works on directory names without spaces, but not those with. Or do I lack some basic knowledge to get this to work? I do agree with you that My Documents is a better place to open by default, and if you could get SFTP tab to remember from last time what folder to open, that would be cool to. But perhaps it then should be a settable option, or that the current local working directory should be output on screen on logon, so that you actually remember where you were. |
#6
|
||||
|
||||
Quote:
Quote:
When we did the SFTP tab support, we just grabbed the telnet protocol line mode code to do the input processing, and hadn't spent much time giving it more functionality. (Nobody had asked for it yet :-) My guess is that some other telnet client out there displays ^U when you backup past the first character, and we just tried to do what was familiar to people using that interface. Quote:
The format lcd "C:\Documents and Settings" should work. When you try that, what is the error you get? Quote:
Thanks, Joseph |
#7
|
|||
|
|||
Quote:
Systemet finner ikke angitt fil. The above message is norwegian, and means something like "The system can't find the specified file". I guess this is a Windows message, since it is localized. |
#8
|
|||
|
|||
![]()
[QUOTE=undef]sftp> lcd "c:\Documents and Settings\"[QUOTE]
As soon as I posted my last message I realized what's wrong. I'm used to type in the trailing backslash (or slash on Unix platforms) when I'm CD-ing, but apparently this software interprets the trailing backslash as something else than a directory. So if I write Code:
lcd "c:\Documents and Settings" |
#9
|
|||
|
|||
Quote:
(In addition, I fixed the bug of not being able to BS over all the characters if their were control codes in the buffer -- a display problem, the buffer was actually empty. It seems like that was reported on this thread someplace.) Thanks, Joseph |
#10
|
|||
|
|||
Quote:
|
#11
|
|||
|
|||
Logout on CTRL+D
Just one last thing, and I'll stop bugging you
![]() Thanks for adding line editing to sftp in the latest release. Is it possible to add support for CTRL+D to be interpreted as quit/exit as well? If so, this would be consistent with other clients I use. |
#12
|
|||
|
|||
Quote:
It works with SFTP because SFTP has a well defined way of managing your current working directory (well, actually, SFTP has no concept of your current working directory, so SCRT is managing that for you, so once the escape sequences tells us where to start it is easy to prime the pump with that.) Shell on the other hand have no well defined way to set the working directory. |
#13
|
|||
|
|||
Quote:
Thanks, Joseph |
#14
|
|||
|
|||
Quote:
I have been investigating a couple of ways to accomplish this-- a couple of ideas are:
I don't know if or which or when any of these would be implemented though. It would be a cool feature. |
#15
|
||||
|
||||
Quote:
Maureen |
Thread Tools | |
Display Modes | |
|
|