Xavier de Gaye wrote:

> On Tue, Dec 7, 2010 at 6:59 PM, Xavier de Gaye wrote:
> >> I am not sure if the hack above is acceptable. I will look into the tty
> >> attributes problem.
> >
> > The hack must not be used. Instead, when the error occurs in vim_read() and
> > the error is EINTR, vim should retry reading from stdin.
> 
> 
> The attached patch fixes the problem by retrying a read after an EINTR.
> 
> And actually there is no tty modes problem after vim has successfully
> (with the patch) completed its task. When the window has been widened
> while Benjamin test is running, new commands produce a garbled output.
> But simply resizing the window once again restores xterm in a sane state.

Thanks.  I think we need to wrap this in a function vim_read_retry() and
perhaps use it in more places.

-- 
hundred-and-one symptoms of being an internet addict:
2. You kiss your girlfriend's home page.

 /// Bram Moolenaar -- [email protected] -- http://www.Moolenaar.net   \\\
///        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
\\\  an exciting new programming language -- http://www.Zimbu.org        ///
 \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///

-- 
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

Reply via email to