vile
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[vile] Minor patch to support Windows console vile under ConEmu


From: Rick Sladkey
Subject: [vile] Minor patch to support Windows console vile under ConEmu
Date: Tue, 1 Oct 2013 03:54:40 +0000

I just discovered a tabbed resizable console emulator for Windows called ConEmu 
(https://code.google.com/p/conemu-maximus5/).  Using the console version of 
vile with ConEmu mostly works fine.  This patch fixes the order of operations 
so that csbi is correct at the time ntconio_eeop is called when the emulator is 
resized.  Without it the bottom part of the screen is not correctly redrawn 
when the window becomes larger.

 --- orig/vile-9.8k/ntconio.c   2013-03-07 05:11:21.000000000 -0500
+++ vile-9.8k/ntconio.c 2013-09-30 23:18:25.324354100 -0400
@@ -1290,11 +1290,11 @@
            return key;

        case WINDOW_BUFFER_SIZE_EVENT:
+           GetConsoleScreenBufferInfo(hConsoleOutput, &csbi);
            newscreensize(
                             ir.Event.WindowBufferSizeEvent.dwSize.Y,
                             ir.Event.WindowBufferSizeEvent.dwSize.X
                );
-           GetConsoleScreenBufferInfo(hConsoleOutput, &csbi);
            continue;

        case MOUSE_EVENT:


________________________________


This message is intended only for the designated recipient(s). It may contain 
company confidential or proprietary information and may be subject to 
confidentiality protections.

If you are not a designated recipient, you may not review, copy or distribute 
this message. If you receive this in error, please notify the sender by reply 
e-mail and delete this message. Thank you.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]