On Tue, Jul 22, 2014 at 11:45 AM, Stephan Beal <[email protected]> wrote: > On Tue, Jul 22, 2014 at 8:21 PM, Andreas Kupries <[email protected]> > wrote: >>
> i (coincidentally) emails the author asking about the ability to > save/restore blocks. No answer yet, but it was only an hour or so ago. Heh. > Looking at the "godit" link from Gour godit seems to be from the same person as termbox, and termbox-go. >, it seems it is indeed possible to > implement multi-windowing, popup window support, etc., using only the > available APIs. See the screenshots - it looks a lot like emacs and is > implemented in "go": > > https://github.com/nsf/godit > >> - Can't redirect the put()/change() APIs to work on rect's outside of >> the main buffer. > > > That's where the Window class (fairly analog to a curses Window) would come > in. It would need its own variants which translate the coordinates into the > global ("stdscr") space. Not necessarily. If the operations are done on the window buffer itself no transform is required. It happens implicitly when the window buffer is blitted into the main for presentation. > The fact that there's only one output routine > (tb_change_cell(); tb_put_cell() is just a convenience wrapper around that > one) should mean that higher-level code has to wrap less stuff. In curses > there are many routines which have to be specialized for windows vs pads vs > panel. > > BTW: termbox got the coordinates right: (x,y) instead of (y,x). > > Curses is dead. Long live curses. > >> Still, something to keep track off. >> Might be interesting to see how it meshes with "linenoise". > > > termbox provides all the low-level bits you'd need to implement > linenoise-like editing, but it would be a bit of work to do, at least in C - > might be easier in script code. Speaking of: it took me all of a couple > hours to bind the 12-or-so functions to script space, and i'm quite certain > you could implement a TCL module for it faster than that. Heh. Yes, after looking at termbox my first thought was that it should be easy to make a low-level binding for it with critcl. > My point is only - > in the off chance that you want to experiment with it, doing so would not > require a huge time sink. True. > > Will post screenshots if/when i've got something interesting to show. The > core API binding is finished (plus a few extras, e.g. clearing the screen > using given fg/bg attributes), but i'm not yet sure if i'm in the mood to > hack on it further tonight. Have fun. (The world is currently not so funny right now :( ) -- 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

