Re: feature request lftp should respond to Ctrl-Z

2002-10-14 Thread Nicolas Noble

 Hello,

 I got the following feature request:

 http://bugs.debian.org/158772

 It would be nice if lftp would be stopped by Ctrl-Z, when at entered at
 its command prompt.

 thx.

To freeze lftp? Or to get back a command shell? If it's to get a command
shell, then do '!'. If it's to freeze it, well... I don't see the point
of doing that ;-)




Re: feature request lftp should respond to Ctrl-Z

2002-10-14 Thread Noel Koethe

On Mon, 14 Okt 2002, Nicolas Noble wrote:

  It would be nice if lftp would be stopped by Ctrl-Z, when at entered at
  its command prompt.
 
 To freeze lftp? Or to get back a command shell? If it's to get a command
 shell, then do '!'. If it's to freeze it, well... I don't see the point
 of doing that ;-)

Its to get a shell.
The default in shells is to use Ctrl-Z so the runing job
will go into the backgroup and you have your shell back.
The point is to use the shell job management.

-- 
Noèl Köthe



Re: feature request lftp should respond to Ctrl-Z

2002-10-14 Thread Nicolas Noble

   It would be nice if lftp would be stopped by Ctrl-Z, when at entered at
   its command prompt.
 
  To freeze lftp? Or to get back a command shell? If it's to get a command
  shell, then do '!'. If it's to freeze it, well... I don't see the point
  of doing that ;-)

 Its to get a shell.
 The default in shells is to use Ctrl-Z so the runing job
 will go into the backgroup and you have your shell back.
 The point is to use the shell job management.

Don't forget that there is a built-in job management into lftp: you can
start multiple downloads, stop each of them using Ctrl-Z (that's why
you can't CTRL-Z lftp: it catch the signal for this feature) and resume
each of them using 'wait' or 'fg'. (by default, in lftp, when you CTRL-Z a
download, it goes on background, it doesn't freeze)

Maybe this can be done, yeah, for example by disabling the signal handler
when it goes back to the prompt, and re-enabling it when a job goes
foreground. Might be an idea.




Re: feature request lftp should respond to Ctrl-Z

2002-10-14 Thread Glenn Maynard

On Mon, Oct 14, 2002 at 09:24:02PM +0200, Nicolas Noble wrote:
  It would be nice if lftp would be stopped by Ctrl-Z, when at entered at
  its command prompt.
 
 To freeze lftp? Or to get back a command shell? If it's to get a command
 shell, then do '!'. If it's to freeze it, well... I don't see the point
 of doing that ;-)

If you have an ftp session opened but aren't actually downloading, it
might be useful (just as it is with any other program).  Type suspend.
It *will* stop running tasks, though.  lftp isn't multithreaded.

-- 
Glenn Maynard



Re: feature request lftp should respond to Ctrl-Z

2002-10-14 Thread Haas Wernfried

On Mon, Oct 14, 2002 at 09:42:50PM +0200, Nicolas Noble wrote:
It would be nice if lftp would be stopped by Ctrl-Z, when at
entered at its command prompt.

  Its to get a shell.
  The point is to use the shell job management.

 Don't forget that there is a built-in job management into lftp: you can
 start multiple downloads, stop each of them using Ctrl-Z (that's why
 you can't CTRL-Z lftp: it catch the signal for this feature) and resume
 each of them using 'wait' or 'fg'. (by default, in lftp, when you CTRL-Z a
 download, it goes on background, it doesn't freeze)

though the only program known to me that does not respond to C-z is pine
(you can turn it off/on there afaik) and so the behaviour of lftp is a bit
unusual, i think in the shell-like way of using lftp, the actual
situation is quite good. of course an option to enable/disable it would
be worth an idea.
e.g.:
set suspend-mode X
0.. as it is
1.. responds to C-z

btw, there's also the command suspend in lftp :)

regards,
wernfried


-- 
- Fppmpppffpppmpfpffmffmppmpm Mfpmmfmm
- [EMAIL PROTECTED]
- mfpfmpfmppfm://fpfppffpmmpppff.ppmfmfmpm.mmmfmp/~mmmppmpppmpmffppfppp
- http://www.namesuppressed.com/kenny/