rxvt should emulate linux
This commit is contained in:
parent
e0720adbde
commit
24afd7f1ac
@ -3,7 +3,7 @@ import SocketServer
|
|||||||
from subprocess import Popen, PIPE
|
from subprocess import Popen, PIPE
|
||||||
from telnetsrvlib import TelnetHandler
|
from telnetsrvlib import TelnetHandler
|
||||||
|
|
||||||
class TNS(SocketServer.TCPServer):
|
class TNS(SocketServer.ThreadingMixIn, SocketServer.TCPServer):
|
||||||
allow_reuse_address = True
|
allow_reuse_address = True
|
||||||
|
|
||||||
class TNH(TelnetHandler):
|
class TNH(TelnetHandler):
|
||||||
@ -16,6 +16,8 @@ class TNH(TelnetHandler):
|
|||||||
p.stdin.write("3\n")
|
p.stdin.write("3\n")
|
||||||
elif (self.TERM.lower().find("fallback") != -1):
|
elif (self.TERM.lower().find("fallback") != -1):
|
||||||
p.stdin.write("4\n")
|
p.stdin.write("4\n")
|
||||||
|
elif (self.TERM.lower().find("rxvt") == 0):
|
||||||
|
p.stdin.write("3\n")
|
||||||
else:
|
else:
|
||||||
p.stdin.write("2\n")
|
p.stdin.write("2\n")
|
||||||
while 1:
|
while 1:
|
||||||
|
Loading…
Reference in New Issue
Block a user