Greg Ercolano wrote:
>       While making a test program (and not just using it in my app),
>       I just noticed I need to modify item_width() to properly calculate
>       widths for strings containing ANSI, so I'll need some time to
>       figure that one out.

        Some new code here:

            o Made the item_width() fix.
            o Mods to support high intensity fg/bg color modes
            o Included source for two test programs

        Known problems:

            o Italics not yet supported (but bold, underline, intensity are)
            o item_width() doesn't calculate "bold" correctly

FLTK PATCHES
------------
        So here's the updated patch against fltk-1.1.x-svn current for
        Fl_Browser.cxx, and the newly modified AnsiMode.H file (hit "reload"
        to clear browser cache) that needs to be dropped in the same dir
        as Fl_Browser.cxx:
        http://seriss.com/people/erco/fltk/tmp/ansi-patch-03-09-2008.txt
        http://seriss.com/people/erco/fltk/tmp/AnsiMode.H

ANSI TEST PROGRAM
-----------------
        Here's the ansi "test" c++ program that exercises the above
        modifications, and the test program's screenshot:
        http://seriss.com/people/erco/fltk/tmp/browser-ansi-test.cxx
        http://seriss.com/people/erco/fltk/tmp/Fl_Browser-ansi-test.png

FAKE NTSC COLOR BARS TEST PROGRAM
---------------------------------
        Just for lolz, ye olde colorbars drawn using ANSI sequences:
        http://seriss.com/people/erco/fltk/tmp/ansi-fake-colorbars.cxx
        http://seriss.com/people/erco/fltk/tmp/ansi-fake-colorbars.png

_______________________________________________
fltk-dev mailing list
[email protected]
http://lists.easysw.com/mailman/listinfo/fltk-dev

Reply via email to