Re: [dev] Re: I wrote a pager

2016-09-20 Thread hiro
Fun is not suckless. :P

Re: [dev] Re: I wrote a pager

2016-09-19 Thread Evan Gates
On Sun, Sep 18, 2016 at 4:48 PM, Greg Reagle wrote: > On Sun, Sep 18, 2016, at 09:34 AM, Christian Neukirchen wrote: >> 1 loc! >> >> awk 'NR%22==0 { getline _ <"/dev/tty" } {print}' > > Great! And stali has awk. It works pretty well, but doesn't take into > account long lines. > #!/bin/sh IFS='

Re: [dev] Re: I wrote a pager

2016-09-18 Thread hiro
> Actually, it isn't 1 LOC, awk is more than that ^^ It's a stupid joke, as you probably know awk is a good abstraction that is perfectly fine to use. You also don't understand the complexity on the lower levels (for example firmware, microcode), but you are happy nonetheless even though many lin

Re: [dev] Re: I wrote a pager

2016-09-18 Thread Greg Reagle
On Sun, Sep 18, 2016, at 09:34 AM, Christian Neukirchen wrote: > 1 loc! > > awk 'NR%22==0 { getline _ <"/dev/tty" } {print}' Great! And stali has awk. It works pretty well, but doesn't take into account long lines.

Re: [dev] Re: I wrote a pager

2016-09-18 Thread Ali H. Fardan
On 2016-09-18 16:41, Joseph Graham wrote: On Sun, Sep 18, 2016 at 03:34:38PM +0200, Christian Neukirchen wrote: 1 loc! awk 'NR%22==0 { getline _ <"/dev/tty" } {print}' You do your paging with 1 loc and yet you send email with something as bloated as Emacs! Actually, it isn't 1 LOC, awk is

Re: [dev] Re: I wrote a pager

2016-09-18 Thread Joseph Graham
On Sun, Sep 18, 2016 at 03:34:38PM +0200, Christian Neukirchen wrote: > > 1 loc! > > awk 'NR%22==0 { getline _ <"/dev/tty" } {print}' > You do your paging with 1 loc and yet you send email with something as bloated as Emacs!