Ken Takata wrote:

> As mattn mentioned, currently vim.exe uses
> ReadConsoleOutputA/WriteConsoleOutputA to save and restore the console buffer.
> But I think using CreateConsoleScreenBuffer and SetConsoleActiveScreenBuffer
> is a straight forward way. We don't need to save the console buffer by ourself
> if we use these APIs, because it is a matter of an OS.
> 
> I attached patches for this.
> The first patch implements this and just comments out old codes.
> The second patch removes the old codes.
> I separated the patches because of readability.
> 
> Actually, these patches still use ReadConsoleOutputW/WriteConsoleOutputW for
> 'norestorescreen'. We need to copy the last Vim screen to the original console
> buffer when 'restorescreen' is not set.

I'll await comments for a little while before including this patch.

> Note: These patches won't work on Win9x, because I used Unicode version of
> Win32 APIs directly. I don't think it matters, because no one complains that
> the official 7.4 binary doesn't work on Win9x. (VC2005 is the last VC which
> supports Win9x, but the official binary is built by VC2008.)

I don't think we need to support Windows 95 and 98 anymore.  I don't
have a computer anymore that runs it (and thus can't play some old
games...).

Windows XP is also deprecated, but it's still used in many places.
Thus Windows XP is the oldest we need to support.


-- 
Shit makes the flowers grow and that's beautiful

 /// 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_dev" 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_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Raspunde prin e-mail lui