Xavier de Gaye wrote:
> On Sat, Nov 8, 2008 at 6:12 PM, Xavier de Gaye wrote: > > ... > >>> BTW do you think an implementation of netbeans over Vim console is > >>> acceptable as a Vim patch (as opposed to an external patch such as > >>> those in http://groups.google.com/group/vim_dev/web/vim-patches). > >> > >> If you can make the netbeans interface work for a Vim running in a > >> console, that sounds like a useful feature. I would include it if it > >> works properly. However, some programs using the netbeans interface > >> assume GUI features, such as menus. Thus it's probably only useful > >> for some applications. > > > > I will give it a try. > > > Attached is a patch that allows Vim to support NetBeans when run in a > terminal. The patch is based on Vim 7.2.160, subversion revision 1440. > > Problem: Support the NetBeans interface when Vim is run in a > terminal on Unix. > Solution: Hook the NetBeans file descriptor to the event loop. > Add a backward compatible enhancement: the defineAnnoType > "fg" and "bg" color arguments may also be defined as color > names. > Files: runtime/doc/netbeans.txt src/netbeans.c src/ex_cmds.c > src/proto/netbeans.pro src/gui.c src/getchar.c > src/gui_w48.c src/feature.h src/main.c src/proto.h > src/gui_gtk_x11.c src/os_unix.c > > List of the tests that have been run (the pyclewn testsuite is about > 50 tests): > Check that a NetBeans session started in a terminal can be > continued after the ":gui" command is run. > Run pyclewn testsuite with GVim compiled with the GTK gui. > Run pyclewn testsuite with Vim in a terminal, compiled with the > GTK gui. > Run pyclewn testsuite with Vim compiled without any gui. > > Issue not fixed (not worth fixing ?): > When Vim NetBeans runs in a terminal and the ':gui' command is run > and if the GUI is not one of GTK, GNOME, Motif or Win32, then > NetBeans silently stops working. Thanks, sounds good. I'll have a better look later. I would appreciate feedback from others. -- FATHER: You killed eight wedding guests in all! LAUNCELOT: Er, Well ... the thing is ... I thought your son was a lady. FATHER: I can understand that. "Monty Python and the Holy Grail" PYTHON (MONTY) PICTURES LTD /// Bram Moolenaar -- [email protected] -- http://www.Moolenaar.net \\\ /// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\ \\\ download, build and distribute -- http://www.A-A-P.org /// \\\ help me help AIDS victims -- http://ICCF-Holland.org /// --~--~---------~--~----~------------~-------~--~----~ You received this message from the "vim_dev" maillist. For more information, visit http://www.vim.org/maillist.php -~----------~----~----~----~------~----~------~--~---
