Hello All, I am working on paging feature on tty, pty outputting. Is there anyway I can do paging output at tty drivers by way of setting some options using ioctl or .... Please let me know, to give you some idea if you type ls -l | more on command prompt you see the output in paging fashion. This is the kind of feature I want it on tty fds. Please let me know if anyone has any better idea. thanks. -- Regards, Sri.
On Mon, 30 Apr 2012 14:17:30 -0400 Sri Ram Vemulpali <sri.ram.gmu06@gmail.com> wrote:
Hello All,
I am working on paging feature on tty, pty outputting. Is there anyway I can do paging output at tty drivers by way of setting some options using ioctl or ....
Things like page dimensions and escape code management are userspace handled in Linux. If you must fake it via a tty then I'd suggest you write a pty/tty using app, if not then pipe it through more. For the former case a simple expect script should do it.
participants (2)
-
Alan Cox -
Sri Ram Vemulpali