summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xnyancat.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/nyancat.py b/nyancat.py
index 90029c1..872cfae 100755
--- a/nyancat.py
+++ b/nyancat.py
@@ -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:
Jonathan McCrohan118-656/+877 2014-01-16Release 0+git20140107.1850cf8-1debian/0+git20140107.1850cf8-1Jonathan McCrohan1-2/+2 2014-01-16Update Standards Version to 3.9.5Jonathan McCrohan2-1/+9