19446Re: 6.0z: Aborted scp makes stdin line buffered
- Apr 1, 2001Andreas Gunnarsson wrote:
> Try this:It looks like "scp" does something to the terminal that Vim doesn't undo. Vim
> - Edit a file
> - :e scp://some.hostname.with.sshd/file
> - CTRL-C when asked for passphrase
> - :buf 1
> - Do some stuff in the first file (moving the cursor up and down a couple of
> hundred times works)
> Vim seems to lose control over the input; when a key is pressed it is
> echoed to the screen and vim doesn't handle the input until return is
> pressed. It is as if stdin becomes buffered when the password question
> is interrupted, but not until after a while.
does try to set the terminal back to a mode it prefers, but perhaps something
is missing for your system. Look in mch_settmode() in os_unix.c.
Unfortunately there is no "reset_tty()" function...
BEDEVERE: Wait. Wait ... tell me, what also floats on water?
ALL: Bread? No, no, no. Apples .... gravy ... very small rocks ...
ARTHUR: A duck.
"Monty Python and the Holy Grail" PYTHON (MONTY) PICTURES LTD
/// Bram Moolenaar -- Bram@... -- http://www.moolenaar.net \\\
((( Creator of Vim - http://www.vim.org -- ftp://ftp.vim.org/pub/vim )))
\\\ Help me helping AIDS orphans in Uganda - http://iccf-holland.org ///
- << Previous post in topic Next post in topic >>