jim fisher on 7 Jul 2010 16:26:14 -0700 |
This works, without the ncurses stuff: #!/usr/bin/env python import curses # create curses screen using whole display #stdscr = curses.initscr() # I realize this is an infinite loop # parse the CSV file for line in open('foo-01.csv'): # look for the line with the right MAC index=line.find(':5a:84') while index != -1: start = index + 1 index = line.find(':5a:84', start) # send the line to the screen print line # stdscr.addstr(0, 0, line) # redraw the screen # stdscr.refresh() # I realize I am not properly cleaning up, but will get to that later jimf@dell6000:~$ -- jim fisher Jedijf irc freenode #ubuntu-us-pa www.myfisher.org "Do, or do not. There is no 'try.'" -- Jedi Master Yoda ___________________________________________________________________________ Philadelphia Linux Users Group -- http://www.phillylinux.org Announcements - http://lists.phillylinux.org/mailman/listinfo/plug-announce General Discussion -- http://lists.phillylinux.org/mailman/listinfo/plug
|
|