diff options
author | Sadrul Habib Chowdhury <sadrul@users.sourceforge.net> | 2009-06-12 01:29:43 -0400 |
---|---|---|
committer | Sadrul Habib Chowdhury <sadrul@users.sourceforge.net> | 2009-06-12 01:29:43 -0400 |
commit | 1ae66b4725363cb35a87ff8e42ec5a5c5e86af9c (patch) | |
tree | fdb184b3f59a8e3da03f98402dcaa1c9bd70dc29 | |
parent | 803b9973631a6860d0f2fee4bfee9be0895a7b8a (diff) | |
download | screen-1ae66b4725363cb35a87ff8e42ec5a5c5e86af9c.tar.gz |
Sample python script for testing.
-rw-r--r-- | src/scripts/py.py | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/src/scripts/py.py b/src/scripts/py.py new file mode 100644 index 0000000..106c465 --- /dev/null +++ b/src/scripts/py.py @@ -0,0 +1,13 @@ +import time +import screen + +f = open("/tmp/debug/py", "ab") +f.write("Called at %s \n" % (time.asctime(time.localtime()))) +f.close() + + +f = open("/tmp/debug/py", "ab") +windows = screen.windows() +for win in windows: + f.write("Window: %s (%d) %s %s %d\n" % (win.title, win.number, win.dir, win.tty, win.pid)) +f.close() |