(Sent directly and to list; list moderator -- if any -- is welcome
to reject this.)
Tim Chase wrote:
> I'm playing around with a curses program and would like it to behave
> similarly to how vim lets me do
>
> $ echo hello | vim -
>
> where vim reads data from stdin but then interacts with the terminal
> directrly. What magic is vim doing here?
I don't know what vim is doing, but I suspect it works like password
prompts in pipelines, eg:
$ someprogram | ssh user@site "sh someotherprogram -"
user@site password:
$
Those read from STDERR to get keyboard input in the face of STDIN being
NOTATTY.
Elijah
--
--
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php
---
You received this message because you are subscribed to the Google Groups "vim_use" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/vim_use/495ZTJ5qJSzfYt%40panix5.panix.com.
No comments:
Post a Comment