[prev in list] [next in list] [prev in thread] [next in thread] 

List:       vim-dev
Subject:    {patch} Win32 telnet
From:       "Craig Barkhouse" <craig () wanware ! com>
Date:       2000-09-29 17:11:03
[Download RAW message or body]


This message contains an attachment, and I apologize in advance if this =
causes anyone grief.  It seemed like the best course of action.

This patch fixes the problem of not being able to run Vim from a telnet =
session into a Windows machine.  It involves changes in how we use =
console screen buffers.  Specifically, we now avoid creating a new =
buffer and switching to it at startup.  In the course of implementing =
and testing all of this, I also added a few minor cosmetic =
features/fixes to the Win32 console version:

1)  Now set the window icon to Vim's icon, while Vim is running.  This =
only works on Windows 2000 or later.
2)  When executing a shell command, now modify the title as a reminder.  =
e.g. If you do a !cmd from the ex prompt, the title changes from =
"filename - Vim" to "filename - Vim - !cmd" while the command is =
executing.  This is similar to what cmd.exe does when you execute a =
command.
3)  Assuming the "restorescreen" option is set, now restore the cursor =
position on exit.  Before, you always ended up on the bottom line.

There were so many changes to os_win32.c (over 1000 lines of diffs) that =
the only sensible way was to distribute the whole source file.  There is =
a small change to Make_mvc.mak to link with an extra library.  Other =
makefiles might also need this change... Borland?  NB: These files are =
based on stock 6.0h code, so they do not incorporate any patches that =
may have occurred since then!  I don't know if there have been any =
patches to os_win32.c.

I've tested this Vim across telnet from a Windows 2000 client (VTNT =
term) and from an SCO OpenServer 5 client (ANSI term).  I've also tested =
it "locally" from Windows 2000, NT 4.0, and Me.  I've tested general =
editing, executing shell commands, and the "restorescreen" option.  I'm =
interested in other trying out this Vim in other environments, or using =
any features that I didn't know to test.


["Craig Barkhouse.vcf" (text/x-vcard)]
["vim60h-patch-w32telnet.zip" (application/x-zip-compressed)]

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic