Suckless is not about being so small that any task, even stupidly
useless like this one suddenly sucks less because of linecount.
On Sat, Sep 17, 2016, at 12:55 PM, pranomes...@gmail.com wrote:
> Maybe I'm a bit late for the party, but I think that
> https://arcetera.moe/git/pg/log.html
> could be another alternative for a suckless pager.
>
> Possible advantages: more features, like scrolling back and going to the
>
On Sat, Sep 17, 2016, at 01:09 PM, hiro wrote:
> a suckless pager would be provided by the terminal.
Good point. I hadn't thought of that when I was trying stali. Stali
has dvtm!
Even still, I think that it would be nice for sbase to have a pager and
I think that the one I wrote is pretty
you might also just want to fix your tmux or dvtm or whatever you use
to organize your virtual terminals in your virtual terminals.
a suckless pager would be provided by the terminal.
Greg Reagle wrote:
> Thanks to all who gave feedback. I made a few enhancements. Hopefully
> they're not bloat. I think it has significantly better functionality
> for only several more SLOC. Once again, looking for feedback. Also, do
> you suckless maintainers want to
Thanks to all who gave feedback. I made a few enhancements. Hopefully
they're not bloat. I think it has significantly better functionality
for only several more SLOC. Once again, looking for feedback. Also, do
you suckless maintainers want to put this into sbase?
It tries to get the size of
On Fri, Sep 16, 2016, at 04:10 PM, Martin Kühne wrote:
> a few gripes:
>
> atoi: personally I prefer strtol and range-checks on the result and/or
> errno.
> getenv(LINES) is a start, but you might also want to offer
> ioctl(TIOCGWINSZ) where available.
> always NULL-check the return value of
On Fri, Sep 16, 2016, at 12:26 PM, u...@netbeisser.de wrote:
> > #include
> > #include
> >
> > int main()
> > {
> > const int page_size = 22;
> > int count = 0;
> > int ch;
> > FILE *tty;
> >
> > if ((tty = fopen("/dev/tty", "a+")) == NULL)
> > return(errno);
>
a few gripes:
atoi: personally I prefer strtol and range-checks on the result and/or errno.
getenv(LINES) is a start, but you might also want to offer
ioctl(TIOCGWINSZ) where available.
always NULL-check the return value of getenv.
what does your pager do on binary input and unexpected things?
Can you elaborate?
On Fri, Sep 16, 2016 at 2:41 PM, Teodoro Santoni wrote:
> Hi,
>
> 2016-09-16 17:40 GMT, Evan Gates :
>> On Fri, Sep 16, 2016 at 9:25 AM, wrote
>>> Thank you Greg for writing such a fantastic pager. I could
Hi,
2016-09-16 17:40 GMT, Evan Gates :
> On Fri, Sep 16, 2016 at 9:25 AM, wrote
>> Thank you Greg for writing such a fantastic pager. I could increase lines
>> however to something more than 22.
>
> char *lines = getenv("LINES");
> int page_size = lines
On Fri, Sep 16, 2016 at 9:25 AM, wrote
> Thank you Greg for writing such a fantastic pager. I could increase lines
> however to something more than 22.
char *lines = getenv("LINES");
int page_size = lines ? atoi(lines) : 24;
On Fri, Sep 16, 2016 at 11:43:37AM -0400, Greg Reagle wrote:
> On Fri, Sep 16, 2016, at 10:01 AM, Greg Reagle wrote:
> > Greetings. I am running stali in qemu and and it seems to lack a pager.
> > Is it a goal of the suckless project to write a suckless pager for
> > sbase? I see that plan9port
On Fri, Sep 16, 2016 at 11:43:37AM -0400, Greg Reagle wrote:
> On Fri, Sep 16, 2016, at 10:01 AM, Greg Reagle wrote:
> > Greetings. I am running stali in qemu and and it seems to lack a pager.
> > Is it a goal of the suckless project to write a suckless pager for
> > sbase? I see that
On Fri, Sep 16, 2016, at 10:01 AM, Greg Reagle wrote:
> Greetings. I am running stali in qemu and and it seems to lack a pager.
> Is it a goal of the suckless project to write a suckless pager for
> sbase? I see that plan9port already has a pager called "p". What about
> importing that into
16 matches
Mail list logo