[Toybox] linenoise

David Seikel onefang at gmail.com
Sat Oct 27 21:51:55 PDT 2012


On Sat, 27 Oct 2012 12:26:28 -0500 Rob Landley <rob at landley.net> wrote:

> On 12/05/2011 05:11:52 PM, David Seikel wrote:
> > On Mon, 5 Dec 2011 14:41:06 +0100 Jens Staal <staal1978 at gmail.com>
> > wrote:
> > 
> > > Would this be interesting for some toybox utilities?
> > >
> > > https://github.com/antirez/linenoise
> > 
> > Rob was looking at that before, plus a few other similar readline
> > alternatives.
> 
> I noticed that Android is already using it.
> 
> I don't want external dependencies in toybox (no ncurses, gzip,
> etc.) so I'd have to incorporate a fork/snapshot into toybox if I was
> going to use it, which seems impolite to the upstream project. Plus
> I've already dealt with this stuff at some length in busybox (the
> ansi probe size string which can reach through a serial connection
> and find the size of the terminal at the far end, collating escape
> sequences via timeout rather than expecting them to come in as a
> single transaction which they won't across a serial line, etc).
> 
> But I may read through linenoise to see what it's doing before going  
> there, and in theory the stuff David's doing is already doing a lot
> of that. I can always learn new tricks. :)

I looked at that, as well as termbox, then decided to roll my own.
Both provided about a third of the solution, neither in a way I was
happy with, and they are external dependencies.  I agree with Rob on
that point.

-- 
A big old stinking pile of genius that no one wants
coz there are too many silver coated monkeys in the world.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 198 bytes
Desc: not available
URL: <http://lists.landley.net/pipermail/toybox-landley.net/attachments/20121028/d8493b62/attachment-0002.sig>


More information about the Toybox mailing list