News for hackers. Stuff that matters.
Re:The sad state of sysadmin in the age of containers by eropple on Wednesday April 22, 2015 @09:46AM (#9420344)
I never use man pages, to be honest, and I'm quite comfortable on a command line. Reading long-ish things in a terminal kind of sucks, for me, and even if I end up reading a man page in Chrome it's nicely formatted and has readable serif fonts and is easily scrolled with the trackpad on my laptop.
Re:The sad state of sysadmin in the age of containers by c22 on Wednesday April 22, 2015 @12:31PM (#9421585)
I probably haven't read a man page "cover to cover" since high school. Usually I just need to read a couple lines about a specific flag or the location of some configuration file which I can find quickly with a simple search or by scanning the document with my eyes.
Re:The sad state of sysadmin in the age of containers by stephenr on Wednesday April 22, 2015 @10:11AM (#9420507)
Your terminal doesn't scroll with wheel/trackpad?
Re:The sad state of sysadmin in the age of containers by rspeer on Wednesday April 22, 2015 @11:38AM (#9421187)
The wheel or trackpad scrolls the terminal's scrollback, not the pager program that happens to be running in it.

(I can imagine some sort of hackery that determines if less or something is running and scrolls that, but it sounds like a huge mess. Is that actually what you're doing? Does it send keypresses? What if you're in a mode where those keypresses do something besides scrolling?)

Re:The sad state of sysadmin in the age of containers by stephenr on Wednesday April 22, 2015 @12:55PM (#9421748)
No I'm talking about scrolling in the actual program running - it's most useful in a pager obviously, but it also works for editors, and it works both locally (OS X, built-in Terminal.app) and over SSH on Debian hosts.

I'll be honest - I have ~no idea~ (edit: apparently there are xterm control sequences for mouse scrolling) how it's actually implemented, but several tools have some reference to mouse support (tmux, vim, etc) in option/config files, so it's probably available for your distro/platform and just needs to be enabled.

Further edit: (or PS. or whatever):

`less` pager supports mouse scrolling. `more` pager does not!

Re:The sad state of sysadmin in the age of containers by c22 on Wednesday April 22, 2015 @12:28PM (#9421557)
I just tried this on debian and my mouse wheel scrolls less inside of my terminal (and returns my previous line buffer when I type 'q').
Re:The sad state of sysadmin in the age of containers by eropple on Wednesday April 22, 2015 @02:29PM (#9422483)
It can do continuous scrolling of the terminal or line-by-line scrolling of the pager. Both are poor options for trying to actually read prose content inside the terminal, IMO, and opening a browser is easier.
Re:The sad state of sysadmin in the age of containers by c22 on Wednesday April 22, 2015 @04:24PM (#9423299)
What do you mean by "continuous" versus "line-by-line" scrolling? When I use the mousewheel to scroll a man page in xterm it behaves and appears the same as when I use the mousewheel to scroll a webpage in Chrome (the content moves smoothly up and down, disappearing at the top and bottom edges of the viewport).