On 10/20/15 3:17 , Adam Števko wrote: > Hi folks, > > I am doing small custom modifications of SmartOS installer, where I have to > use less to display few files and want to use its paging capabilities. > However, less is “misbehaving” in a sense that it displays only what fits on > the screen and then quits. Files itself don’t fit on single screen. While > debugging this I found out following things: > > - /dev/console doesn’t allow me to set rows and columns via stty > - the problem occurs with more programs, not just less, e.g more (illumos > one, not less), man (less is invoked) > - setting TERM from xterm-color to other terminal types doesn’t change > anything (I tried, vt100, xterm, sun-color) > > Looking around the Internet I found this: > http://compgroups.net/comp.unix.solaris/solaris-console-has-no-scroll-capability-so/457791 > > <http://compgroups.net/comp.unix.solaris/solaris-console-has-no-scroll-capability-so/457791>. > I tried to send reset control sequence, but the behavior is the same. > > When I test run the installer on booted SmartOS machine, less works as > expected, so it. What should be done, so the scrolling works on /dev/console? > Any hints appreciated.
Well, what device is your /dev/console? Is it ttya, ttyb, the vga console, etc.? Robert ------------------------------------------- smartos-discuss Archives: https://www.listbox.com/member/archive/184463/=now RSS Feed: https://www.listbox.com/member/archive/rss/184463/25769125-55cfbc00 Modify Your Subscription: https://www.listbox.com/member/?member_id=25769125&id_secret=25769125-7688e9fb Powered by Listbox: http://www.listbox.com
