Sample python script for testing.
[screen-lua.git] / src / scripts / py.py
blob106c465fb23742bc505c8ae08da40bd365f91e98
1 import time
2 import screen
4 f = open("/tmp/debug/py", "ab")
5 f.write("Called at %s \n" % (time.asctime(time.localtime())))
6 f.close()
9 f = open("/tmp/debug/py", "ab")
10 windows = screen.windows()
11 for win in windows:
12 f.write("Window: %s (%d) %s %s %d\n" % (win.title, win.number, win.dir, win.tty, win.pid))
13 f.close()