On Sun, 21 Dec 2014 15:42:01 -0800 enh <[email protected]> wrote: > On Sun, Dec 21, 2014 at 1:07 PM, James McMechan > <[email protected]> wrote: > > On 12/20/2014 05:55:45 PM, David Seikel wrote: > >> > >> On Sat, 20 Dec 2014 19:30:01 -0600 Rob Landley <[email protected]> > >> wrote: > >> > > >> > > >> > On 12/19/14 18:52, David Seikel wrote: > >> > > On Fri, 19 Dec 2014 16:43:51 -0800 enh <[email protected]> wrote: > >> > > > >> > >> i was thinking about writing a trivial termcap implementation > >> > >> that just returns the xterm-color answers and using the BSD > >> > >> less, but i didn't realize that even the BSDs use the GNU > >> > >> less. > > > > > > fortunately n-curses devolves tremendously when you don't try to > > support every terminal type under the sun efficiently... > > (very off-topic at this point, but vim doesn't use ncurses under any > circumstances. moreover, it turns out that vim actually has all kinds > of different fallbacks and as long as you don't misconfigure it like i > did, it builds and runs fine out of the box on Android. it has a > minimal tgetstr/tgoto/tputs implementation *and* a few built-in > termcap subsets, including xterm. it's an 8.3MiB binary unstripped or > 2.1MiB stripped for aarch64, though, so probably not of much interest > to you guys :-) ) > > >> > >> i switched Android over to the toybox more from the mksh shell > >> > >> function, but people still complain they really want less. > >> > >> (afaict, mostly for "the ability to go backwards" and > >> > >> "search".) > > > > > > Thinking about it, an old school more without ncurses could have > > the last few bits of less tacked on top: searching, backwards > > movement, any other bits of interest? > > If we yield on fine cursor control and efficiency we could just > > print the screen... > > It is not like we are trying to be efficient on a ADM-3 or a > > teletype over a slow serial connection...
This is what boxes does. In theory most things still in use today use some basic and ordinary ANSI escape sequences, so the complexity of ncurses and friends is not really needed. Boxes is a generic editor frame work, with the simple stuff of editing / paging generalised and wrappers around it for emacs, less, more, vi, WordStar, and a few others. And yes, it does just print the entire screen when stuff changes, though Rob mentioned more intelligent redraws might be a good addition. I left it out for simplicities sake for now, better to get the basic infrastructure in place first. Apparently Rob has had to deal with slow serial ports recently. -- A big old stinking pile of genius that no one wants coz there are too many silver coated monkeys in the world.
signature.asc
Description: PGP signature
_______________________________________________ Toybox mailing list [email protected] http://lists.landley.net/listinfo.cgi/toybox-landley.net
