Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #87370

Pexpect idea - but can I handle curses?

Date 2015-03-13 10:17 -0500
Subject Pexpect idea - but can I handle curses?
From Skip Montanaro <skip.montanaro@gmail.com>
Newsgroups comp.lang.python
Message-ID <mailman.325.1426259880.21433.python-list@python.org> (permalink)

Show all headers | View raw


[Multipart message — attachments visible in raw view] - view raw

I have this tweak I'd like to make to the top command (Linux only is fine).
Most of the time I want to see just one user or all users. Every now and
again though, I'd like to see all users except another.  Top doesn't
support this functionality, but I thought something like "-u -root" would
be a handy extension. Another would be to watch multiple users, e.g. -u
skip,bob. I thought I could fire up a top command showing all users in a
pseudo tty with a fake huge number of lines, then elide the rows matching
unwanted users. However... I have a feeling I might be fairly seriously
challenged trying to work with top's raw output, as it probably does
something more sophisticated than clear the screen and spit out rows. Will
I be in over my head trying to tweak the output? Hmmm... maybe if I tell
top TERM=dumb?

Anyway, before I get in over my head on the input side, I thought I would
check to see if I'm likely to hit a brick wall on the output side...

Thx,

Skip

Back to comp.lang.python | Previous | NextNext in thread | Find similar | Unroll thread


Thread

Pexpect idea - but can I handle curses? Skip Montanaro <skip.montanaro@gmail.com> - 2015-03-13 10:17 -0500
  Re: Pexpect idea - but can I handle curses? Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2015-03-13 16:54 +0100
    Re: Pexpect idea - but can I handle curses? Skip Montanaro <skip.montanaro@gmail.com> - 2015-03-13 11:20 -0500
      Re: Pexpect idea - but can I handle curses? Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2015-03-13 18:03 +0100
        Re: Pexpect idea - but can I handle curses? Skip Montanaro <skip.montanaro@gmail.com> - 2015-03-13 12:25 -0500
          Re: Pexpect idea - but can I handle curses? Christian Gollwitzer <auriocus@gmx.de> - 2015-03-13 23:47 +0100
            Re: Pexpect idea - but can I handle curses? Skip Montanaro <skip.montanaro@gmail.com> - 2015-03-13 19:14 -0500
              Re: Pexpect idea - but can I handle curses? Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2015-03-14 20:19 +0100
                Re: Pexpect idea - but can I handle curses? Skip Montanaro <skip.montanaro@gmail.com> - 2015-03-14 20:05 -0500
                Re: Pexpect idea - but can I handle curses? Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2015-03-15 10:23 +0100

csiph-web