[Date Prev] [Date Next] [Thread Prev] [Thread Next] [Date Index] [Thread Index]
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 fileindex=line.find(':5a:84')
for line in open('foo-01.csv'):
# look for the line with the right MAC
while index != -1:
start = index + 1
index = line.find(':5a:84', start)
print line
# send the line to the screen
# stdscr.addstr(0, 0, line)
# redraw the screenjimf@dell6000:~$
# stdscr.refresh()
# I realize I am not properly cleaning up, but will get to that later
___________________________________________________________________________ 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