diff options
author | Kevin Lange <k@dakko.us> | 2011-11-30 18:54:27 -0600 |
---|---|---|
committer | Kevin Lange <k@dakko.us> | 2011-11-30 18:54:27 -0600 |
commit | 24afd7f1ace2ad2e223146c7e28645adbb2bdbaa (patch) | |
tree | 4060b1dfe258bc466ef66ed36a13db88bdbcf73d /nyancat.py | |
parent | e0720adbded8b73aea42542f57c02042584b94fc (diff) | |
download | nyancat-24afd7f1ace2ad2e223146c7e28645adbb2bdbaa.tar.gz |
rxvt should emulate linux
Diffstat (limited to 'nyancat.py')
-rwxr-xr-x | nyancat.py | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -3,7 +3,7 @@ import SocketServer from subprocess import Popen, PIPE from telnetsrvlib import TelnetHandler -class TNS(SocketServer.TCPServer): +class TNS(SocketServer.ThreadingMixIn, SocketServer.TCPServer): allow_reuse_address = True class TNH(TelnetHandler): @@ -16,6 +16,8 @@ class TNH(TelnetHandler): p.stdin.write("3\n") elif (self.TERM.lower().find("fallback") != -1): p.stdin.write("4\n") + elif (self.TERM.lower().find("rxvt") == 0): + p.stdin.write("3\n") else: p.stdin.write("2\n") while 1: |