On Tue, Jul 22, 2014 at 10:56 AM, Stephan Beal <[email protected]> wrote:
> On Tue, Jul 22, 2014 at 7:33 PM, Gour <[email protected]> wrote:
>>
>> Have you seen https://github.com/nsf/godit - text editor?
>
>
> i hadn't until now. It seems he implemented all of those features in script
> code. i was hoping someone had written them in C already. Maybe the time i
> saved wrapping termbox (only heard about it 6 hours ago) over curses (would
> have taken several days) can be invested in some widgets. But first i need a
> windowing/paneling system, so that's my first step...

Having heard about termbox only through this thread I just had a quick
look over the API ...

The blit() function seems to be the core for windowing, copying a
cell-rectangle into the main termbox buffer.

Have a display-list of windows = rectangles, and blit() them into the
main buffer, from back to front before presenting the result.

Missing features to help with this
- Can't blit() rect's out of the main buffer (to save state, before
blitting in a modal window, for example)
- Can't redirect the put()/change() APIs to work on rect's outside of
the main buffer.


Still, something to keep track off.
Might be interesting to see how it meshes with "linenoise".


-- 
Andreas Kupries
Senior Tcl Developer
Code to Cloud: Smarter, Safer, Fasterâ„¢
F: 778.786.1133
[email protected]
http://www.activestate.com
Learn about Stackato for Private PaaS: http://www.activestate.com/stackato

EuroTcl'2014, July 12-13, Munich, GER -- http://www.eurotcl.tcl3d.org/
21'st Tcl/Tk Conference: Nov 10-14, Portland, OR, USA --
http://www.tcl.tk/community/tcl2014/
Send mail to [email protected], by Sep 8
Registration is open.
_______________________________________________
fossil-users mailing list
[email protected]
http://lists.fossil-scm.org:8080/cgi-bin/mailman/listinfo/fossil-users

Reply via email to