• Alessandro Rubini's avatar
    userspace/tools/wr_mon: several changes · 4876da8b
    Alessandro Rubini authored
    This fixes several minor issues with wr_mon. It changes the term.c interface,
    bur wr_mon is the only user of it and term.h.
    
      - term: support b/w mode (no colors)
      - term: simplify termios setting, and don't do it on non-tty files
      - term: term_poll now does poll, so user input is handled quickly
      - term: exit on ctrl-C
      - term: don't fflush() on every cprintf
      - wr_mon: accept "-b" for "black and white"
      - wr_mon: fix buffering of stdout, fflush the whole screenshot
          (this results in much less flashing in the terminal window)
      - wr_mon: use \n where possible, not calculated positions
          (this simplified future addition of dynamic interface listings)
      - wr_mon: shrink output vertically, so in no-servo mode it fits 80x25
      - wr_mon: use term_poll, not explicit sleep
      - wr_mon: don't clear the screen at exit time
    Signed-off-by: Alessandro Rubini's avatarAlessandro Rubini <rubini@gnudd.com>
    4876da8b
Name
Last commit
Last update
binaries Loading commit data...
build Loading commit data...
doc Loading commit data...
kernel Loading commit data...
patches Loading commit data...
robustness/coding Loading commit data...
rt Loading commit data...
usb-loader Loading commit data...
userspace Loading commit data...
.gitignore Loading commit data...
.gitmodules Loading commit data...
COPYING Loading commit data...
README Loading commit data...