Hi, > IMHO only kernel shell command output should be paged. To that end, we > should specify explicitly what should be paged and what should not. For > example. by introducing a new printf-like function. The only question is how > to handle tests, which you usually want to run in a non-interactive way. I'd use something like fprintf. If you run a kconsole command normally, you pass it stdout directly and nothing is buffered. If you want paging, you pass a special stream handler, which blocks when the screen is full until you press a key. It does not matter how many threads a command uses since it passes around the correct handler structure/function.
Btw, for the UI, I'd use a command like: pager <other command> instead of pager <other command> Martin Sucha _______________________________________________ HelenOS-devel mailing list [email protected] http://lists.modry.cz/listinfo/helenos-devel
