From 24afd7f1ace2ad2e223146c7e28645adbb2bdbaa Mon Sep 17 00:00:00 2001 From: Kevin Lange Date: Wed, 30 Nov 2011 18:54:27 -0600 Subject: rxvt should emulate linux --- nyancat.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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: -- cgit v1.2.3