[Toybox] [PATCH] ls: Ensure file names are separated by 2 spaces

Jarno Mäkipää jmakip87 at gmail.com
Tue Oct 29 08:59:28 PDT 2019


On Tue, Oct 29, 2019 at 6:08 AM Rob Landley <rob at landley.net> wrote:
>
> On 10/28/19 10:07 AM, Jarno Mäkipää wrote:
> > I can try to help writing tests for lib/ utf-8 stuff, and I am sure
> > there is lot of things to do there to do for Andrew also. Anyway there
> > is ton of corner cases.
> >
> > I would also like to know if there would be anyway to do automated
> > testing for VI, ofc I could do it by implementing ex command
> > substitute for every visual mode command and then implement -c option
> > with multiple commands in row parsing. But I feel that implementing ex
> > commands just for testing purposes is bit tedious. And I am not sure
> > if there is visual mode commands that does not have ex mode
> > substitute. So if there would be easy way to push "interactive"
> > command slowly like "5G3dd:wq\n" and then check diff if 3 lines are
> > missing after line 5 or not...
>
> For years I've wanted to do a pty master/slave command that would run another
> command in a simulated pty, feed input into it ala expect with simulated X and Y
> size of the "screen", and be able to check "where is the cursor now" after
> operations, and maybe get a dump of the simulated screen output.

That could be very handy for testing things like less, man and vi that
should perhaps eventually share drawing, movement and reg exp search
codebase...

I was little bit thinking could I just hack suckless terminal run my
own vi tests, since its simple enough to understand, already used it
for debugging escape codes

>
> Alas, it was on my todo list along with implementing screen, and people on here
> insist that only tmux with random features I have no interest in is ever worth
> doing, so... nope, no plans.

I dont know reason why tmux should be in scope of toybox, it already
has bsd style licence and it is semi active, why not just build the
real thing on top of toybox on need basis... ok they need find curses
implementation and few other libs, but still. Screen on other hand
could be useful with only ctrl+A+D and -r feature, would probably
cover 90% of users.

-Jarno

>
> Rob



More information about the Toybox mailing list