Re: [dev] [sic] srw - simple read wrapper

From: Evan Gates <evan.gates_AT_gmail.com>
Date: Thu, 24 Jun 2010 09:55:27 -0700

On Thu, Jun 24, 2010 at 5:26 AM, Ethan Grammatikidis
<eekee57_AT_fastmail.fm> wrote:
>
> On 24 Jun 2010, at 07:10, anonymous wrote:
>
>> Works nice, but with 9term it is possible to move cursor and edit
>> line.  If you don't want to use readline (because of license), you can
>> use libedit from BSD.
>
> Or linenoise[1], which sucks vastly less than either. :)
>
> [1] http://github.com/antirez/linenoise
>
> It's a single C file of 432 lines as opposed to libedit's 20k and readline's
> 30k, and works with perhaps > 99% of the terminals still in use, as nearly
> all terminals respect vt100 escape codes. I was introduced to it the other
> day when looking for something to make rc usable on a machine where 9term
> just isn't working out, one way or another.
>
>

Quick clarification, srw does not use readline, it uses the ansi
escape codes and is as of this writing 143 sloc according to
sloccount.

linenoise seems interesting, I'll have to check it out.

-emg
Received on Thu Jun 24 2010 - 16:55:27 UTC

This archive was generated by hypermail 2.2.0 : Thu Jun 24 2010 - 17:00:03 UTC