diff options
author | Sadrul Habib Chowdhury <sadrul@users.sourceforge.net> | 2010-04-03 04:05:40 -0400 |
---|---|---|
committer | Sadrul Habib Chowdhury <sadrul@users.sourceforge.net> | 2010-04-03 04:05:40 -0400 |
commit | df282d7e09534e2be982d134447b29b023fc0d1c (patch) | |
tree | 2c2db2074eaadec1986f72c978b52efc230c13d5 /src/scripts/py.py | |
parent | 3d5dc020e65450446f247ca7b4ea1c7fc5649aa7 (diff) | |
parent | c250a4aa1caf7bc955407e2846149632a84a1f46 (diff) | |
download | screen-df282d7e09534e2be982d134447b29b023fc0d1c.tar.gz |
Merge branch 'scripting-python' into scripting
Conflicts:
src/Makefile.in
Diffstat (limited to 'src/scripts/py.py')
-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() |