Re: aha! I figured out why journalctl's auto-pager bugs me when git's doesn't (and possible solution)

2012-10-19 Thread Enrico Scholz
Adam Williamson writes: >> > - don't auto-page; >> >> yes; that's the best solution. The auto-pager is perhaps the most >> annoying feature of systemd. I have no problem in scrolling back some >> pages in my terminal with shift-pgup, but having a status request block >> (plain 'systemctl' or

Re: aha! I figured out why journalctl's auto-pager bugs me when git's doesn't (and possible solution)

2012-10-18 Thread Miloslav Trmač
On Thu, Oct 18, 2012 at 8:30 PM, Lennart Poettering wrote: > On Thu, 18.10.12 14:05, Matthew Miller (mat...@fedoraproject.org) wrote: > >> journalctl -n500 -f >> >> (No space allowed after then -n.) > > The space thing is really annoying actually. glibc's getopt() insists on > that for options s

Re: aha! I figured out why journalctl's auto-pager bugs me when git's doesn't (and possible solution)

2012-10-18 Thread Matthew Miller
On Thu, Oct 18, 2012 at 08:30:43PM +0200, Lennart Poettering wrote: > > journalctl -n500 -f > > (No space allowed after then -n.) > The space thing is really annoying actually. glibc's getopt() insists on > that for options such as "-n" that have an optional argument (i.e. which > appear as "n::"

Re: aha! I figured out why journalctl's auto-pager bugs me when git's doesn't (and possible solution)

2012-10-18 Thread John . Florian
> From: Reindl Harald > Am 18.10.2012 20:05, schrieb Matthew Miller: > > On Thu, Oct 18, 2012 at 07:46:46PM +0200, Reindl Harald wrote: > >> and i am doing "tail -n 500 -f /var/log/messages" or whatever > >> logfle i want to watch since years because i want to see what > >> happened before, can sc

Re: aha! I figured out why journalctl's auto-pager bugs me when git's doesn't (and possible solution)

2012-10-18 Thread Reindl Harald
Am 18.10.2012 20:05, schrieb Matthew Miller: > On Thu, Oct 18, 2012 at 07:46:46PM +0200, Reindl Harald wrote: >> and i am doing "tail -n 500 -f /var/log/messages" or whatever >> logfle i want to watch since years because i want to see what >> happened before, can scroll up and watch what is going

Re: aha! I figured out why journalctl's auto-pager bugs me when git's doesn't (and possible solution)

2012-10-18 Thread Lennart Poettering
On Thu, 18.10.12 14:05, Matthew Miller (mat...@fedoraproject.org) wrote: > journalctl -n500 -f > > (No space allowed after then -n.) The space thing is really annoying actually. glibc's getopt() insists on that for options such as "-n" that have an optional argument (i.e. which appear as "n::"

Re: aha! I figured out why journalctl's auto-pager bugs me when git's doesn't (and possible solution)

2012-10-18 Thread Matthew Miller
On Thu, Oct 18, 2012 at 07:46:46PM +0200, Reindl Harald wrote: > and i am doing "tail -n 500 -f /var/log/messages" or whatever > logfle i want to watch since years because i want to see what > happened before, can scroll up and watch what is going on This will work *right now* with journald, with

Re: aha! I figured out why journalctl's auto-pager bugs me when git's doesn't (and possible solution)

2012-10-18 Thread Matthew Miller
On Thu, Oct 18, 2012 at 01:50:38PM -0400, Przemek Klosowski wrote: > BTW, I hope that journald will allow doing the equivalent of > tail -f /var/log/** That is effectively what 'journalctl -f' does by default. > This would be tricky during the transition when some programs will > still use /var/l

Re: aha! I figured out why journalctl's auto-pager bugs me when git's doesn't (and possible solution)

2012-10-18 Thread Reindl Harald
Am 18.10.2012 19:29, schrieb Adam Williamson: > On Thu, 2012-10-18 at 10:35 +0200, Enrico Scholz wrote: >> Matthew Miller writes: >> >>> - don't auto-page; >> >> yes; that's the best solution. The auto-pager is perhaps the most >> annoying feature of systemd. I have no problem in scrolling b

Re: aha! I figured out why journalctl's auto-pager bugs me when git's doesn't (and possible solution)

2012-10-18 Thread Przemek Klosowski
On 10/18/2012 01:41 PM, Przemek Klosowski wrote: On 10/18/2012 01:29 PM, Adam Williamson wrote: Okay, so with the old system, I don't recall *ever* doing 'cat /var/log/messages'. I always, always either less'ed it or grep'ped ... Did/do you usually less /var/log/messages? Or did you usually c

Re: aha! I figured out why journalctl's auto-pager bugs me when git's doesn't (and possible solution)

2012-10-18 Thread Matthew Miller
On Thu, Oct 18, 2012 at 01:41:59PM -0400, Przemek Klosowski wrote: > >Okay, so with the old system, I don't recall *ever* doing > >'cat /var/log/messages'. I always, always either less'ed it or grep'ped > >Did/do you usually less /var/log/messages? Or did you usually cat it? > >>Or, do you want tha

Re: aha! I figured out why journalctl's auto-pager bugs me when git's doesn't (and possible solution)

2012-10-18 Thread Przemek Klosowski
On 10/18/2012 01:29 PM, Adam Williamson wrote: Okay, so with the old system, I don't recall *ever* doing 'cat /var/log/messages'. I always, always either less'ed it or grep'ped ... Did/do you usually less /var/log/messages? Or did you usually cat it? Or, do you want that e.g. the 'ls -l' out

Re: aha! I figured out why journalctl's auto-pager bugs me when git's doesn't (and possible solution)

2012-10-18 Thread Miloslav Trmač
On Thu, Oct 18, 2012 at 10:35 AM, Enrico Scholz wrote: > Hence, the systemd tools should follow Unix/Linux tradition and specialize > on their core functionality and avoid implementing "features" breaking > user experience. FWIW, it's not only implicit tradition: (info standards 'Program Behavior

Re: aha! I figured out why journalctl's auto-pager bugs me when git's doesn't (and possible solution)

2012-10-18 Thread Adam Williamson
On Thu, 2012-10-18 at 10:35 +0200, Enrico Scholz wrote: > Matthew Miller writes: > > > - don't auto-page; > > yes; that's the best solution. The auto-pager is perhaps the most > annoying feature of systemd. I have no problem in scrolling back some > pages in my terminal with shift-pgup, but

Re: aha! I figured out why journalctl's auto-pager bugs me when git's doesn't (and possible solution)

2012-10-18 Thread Ville Skyttä
On 2012-10-18 11:35, Enrico Scholz wrote: > Hence, the systemd tools should follow Unix/Linux tradition and specialize > on their core functionality and avoid implementing "features" breaking > user experience. There are other tools like 'less' which are much better > suited for paging program ou

Re: aha! I figured out why journalctl's auto-pager bugs me when git's doesn't (and possible solution)

2012-10-18 Thread Enrico Scholz
Matthew Miller writes: > - don't auto-page; yes; that's the best solution. The auto-pager is perhaps the most annoying feature of systemd. I have no problem in scrolling back some pages in my terminal with shift-pgup, but having a status request block (plain 'systemctl' or 'journalctl' reque

aha! I figured out why journalctl's auto-pager bugs me when git's doesn't (and possible solution)

2012-10-17 Thread Matthew Miller
Again, this is with the prefix that this isn't a big deal; it's a matter of polish. But, here's the difference between `man` and `git log` automatically sending output to a pager: Man is a document reader. When you run it, you start at the top and read down. A pager is natural. The git log comman