On Mon, Dec 22, 2014 at 10:21:26PM -0600, Rob Landley wrote: > > > On 12/21/14 17:42, enh wrote: > > On Sun, Dec 21, 2014 at 1:07 PM, James McMechan > > <[email protected]> wrote: > >> fortunately n-curses devolves tremendously when you don't try to support > >> every terminal type under the sun efficiently...
I think using raw escape sequences or using a home made translation layer like tmux and vim do it is not optimal. I would prefer a clean and simple curses library most likely based on the one from NetBSD. > > (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 don't care that much about binary size but vim's source is a bloated, unmaintainable, #ifdef littered mess, designed to run on all broken systems ever envisioned by mankind. > I plan to implement vi over the next year I agree that there is a need for a clean vi(m) like editor. Based on my experience I got from writing my own work in progress clone[0], the problem is that while the basic editing functionality is fairly easy to provide, users will also expect more advance stuff like (visual block mode, code folding, auto completion etc). If you don't implement these then they won't use it as their main editor, at which point the whole endeavor becomes kind of pointless ... I don't think providing such a full featured editor should be the focus for toybox, but unfortunatley anything less will be of little interest for most people. [0] https://github.com/martanne/vis -- Marc André Tanner >< http://www.brain-dump.org/ >< GPG key: CF7D56C0 _______________________________________________ Toybox mailing list [email protected] http://lists.landley.net/listinfo.cgi/toybox-landley.net
