Re: [dev] [ubase] pager

2017-02-10 Thread Marc André Tanner
On Fri, Feb 10, 2017 at 12:08:21PM -0800, Leander S. Harding wrote: > Search is indispensably useful and needful overall for general command > output, which is why it should be implemented with a powerful/good ui > at the multiplexer/TE layer, so that you're not maintaining two or > more search fac

Re: [dev] [ubase] pager

2017-02-10 Thread Leander S. Harding
Search is indispensably useful and needful overall for general command output, which is why it should be implemented with a powerful/good ui at the multiplexer/TE layer, so that you're not maintaining two or more search facilities with similar-but-slightly-differing features. This though leads me

Re: [dev] [ubase] pager

2017-02-10 Thread Mattias Andrée
Some pagers also support search, which can be very useful. On Fri, 10 Feb 2017 11:28:04 -0800 "Leander S. Harding" wrote: > Personally, I've always thought that the VTxx escape > sequence family is missing one: enable/disable > scroll-lock. Then, your 'pager' just consists of printing > the scr

Re: [dev] [ubase] pager

2017-02-10 Thread Leander S. Harding
Personally, I've always thought that the VTxx escape sequence family is missing one: enable/disable scroll-lock. Then, your 'pager' just consists of printing the scroll-lock sequences at the beginning and end of output and using your multiplexer's scrolling feature, and can be accomplished lik

Re: [dev] [ubase] pager

2017-02-10 Thread hiro
the problem is when i *know* stuff fill be very long, but I still want to start reading from the beginning. in tmux i don't know how to start scrolling from top of my last command. I don't want to scroll there manually. also in page i can use pgup/down in tmux i have to do crazy emacs-combinations

Re: [dev] [ubase] pager

2017-02-09 Thread Eric Pruitt
On Fri, Feb 10, 2017 at 08:26:11AM +0100, robin wrote: > I usually pipe into less whenever something overflows the terminal > height, but having to type 2>&1 to see stderr is a bit cumbersome. In > dvtm Shift-PageUp is much easier. I use a generic wrapper function in Bash: # $1 Name or pat

Re: [dev] [ubase] pager

2017-02-09 Thread robin
On Thu, Feb 09, 2017 at 07:09:23PM +0100, Josuah Demangeon wrote: > roqbin.a.t.peder...@gmail.com: > > > I vaguely remember pagers discussed in a thread, and the conclusion was > > that pagers are unecessary because its the job of something like dvtm or > > tmux. > > I also like to have the multi

Re: [dev] [ubase] pager

2017-02-09 Thread hiro
tmux doesn't have a usable pager imo.

Re: [dev] [ubase] pager

2017-02-09 Thread Josuah Demangeon
roqbin.a.t.peder...@gmail.com: > I vaguely remember pagers discussed in a thread, and the conclusion was > that pagers are unecessary because its the job of something like dvtm or > tmux. I also like to have the multiplexer managing the scrolling, but for dvtm, what provides the scrolling (and c

Re: [dev] [ubase] pager

2017-02-09 Thread robin
On Thu, Feb 02, 2017 at 07:45:28PM +0100, Mattias Andrée wrote: > Hi! > > I'm going to write a pager for ubase, and, because > it is a necessary component of the pager, I will > also implement ul(1). ul(1) will be used by the > pager which is necessary to get properly formatted > output when pipin

Re: [dev] [ubase] pager

2017-02-04 Thread Mattias Andrée
On Sat, 4 Feb 2017 12:13:03 +0100 Josuah Demangeon wrote: > On February 4, 2017 10:49:52 AM GMT+01:00, "Mattias > Andrée" wrote: > > On Sat, 4 Feb 2017 10:22:24 +0100 > > Josuah Demangeon wrote: > > > > > On February 4, 2017 2:03:16 AM GMT+01:00, "Mattias > > > Andrée" wrote: > > > > > >

Re: [dev] [ubase] pager

2017-02-04 Thread Josuah Demangeon
On February 4, 2017 10:49:52 AM GMT+01:00, "Mattias Andrée" wrote: > On Sat, 4 Feb 2017 10:22:24 +0100 > Josuah Demangeon wrote: > > > On February 4, 2017 2:03:16 AM GMT+01:00, "Mattias > > Andrée" wrote: > > > > > > Well, this is embarrassing, I forgot to check you > > > program before sta

Re: [dev] [ubase] pager

2017-02-04 Thread Mattias Andrée
On Sat, 4 Feb 2017 10:22:24 +0100 Josuah Demangeon wrote: > On February 4, 2017 2:03:16 AM GMT+01:00, "Mattias > Andrée" wrote: > > > > Well, this is embarrassing, I forgot to check you > > program before starting on ul(1). However, I just ran > > > > MAN_KEEP_FORMATTING=y man man | ./iode

Re: [dev] [ubase] pager

2017-02-04 Thread Josuah Demangeon
On February 4, 2017 2:03:16 AM GMT+01:00, "Mattias Andrée" wrote: > > Well, this is embarrassing, I forgot to check you program > before starting on ul(1). However, I just ran > > MAN_KEEP_FORMATTING=y man man | ./iode I made escape sequences tooglable with flags, maybe that is the reas

Re: [dev] [ubase] pager

2017-02-03 Thread Mattias Andrée
On Thu, 2 Feb 2017 20:42:06 +0100 Josuah Demangeon wrote: > I started such a tool recently. It is probably not > suckless, as it is already 1600 loc, but can properly > display a man page, colour escape codes and content from > UTF-8-test.txt and UTF8-demo.txt without ncurses. > > http://github

Re: [dev] [ubase] pager

2017-02-02 Thread Mattias Andrée
On Thu, 2 Feb 2017 20:42:06 +0100 Josuah Demangeon wrote: > I started such a tool recently. It is probably not > suckless, as it is already 1600 loc, but can properly > display a man page, colour escape codes and content from > UTF-8-test.txt and UTF8-demo.txt without ncurses. > > http://github

Re: [dev] [ubase] pager

2017-02-02 Thread Josuah Demangeon
I started such a tool recently. It is probably not suckless, as it is already 1600 loc, but can properly display a man page, colour escape codes and content from UTF-8-test.txt and UTF8-demo.txt without ncurses. http://github.com/josuah/iode If this one sucks, I would be glad to see the implem