Follow

When I create a serial console with 'agetty ttyS0 9600 linux' and connect using minicom or screen. I can't exit man pages. Seems my input is buffered until I kill the process and then my characters are dumped to the cmd prompt. All other programs I tested work fine. Hmmm...

@adamd I think man uses pager, or less, so I'm guessing less is causing the problem. Set the $PAGER variable to something dumber and you might be fine?

@kensanata Thanks for reply.
export PAGER=more works. I settled on vim, which is AWESOME after reading this:
vim.fandom.com/wiki/Using_vim_
Interesting issue with less though.
Thanks for your help!

@nm0i Thanks for suggestion. I actually setup vim as my man page reader using an online tutorial. Since then I discovered other issues that have all been fixed by running 'exec setsid agetty' and not just agetty.

Sign in to participate in the conversation
Mastodon @ SDF

"I appreciate SDF but it's a general-purpose server and the name doesn't make it obvious that it's about art." - Eugen Rochko