2
0
mirror of https://github.com/xcat2/confluent.git synced 2024-11-26 11:30:23 +00:00

Revert "Have nodeconsole restore term on exit"

This reverts commit 2972374da8.
This commit is contained in:
Jarrod Johnson 2018-08-02 10:27:37 -04:00
parent 2972374da8
commit ecbe1a86b1

View File

@ -585,7 +585,6 @@ def startconsole(nodename):
tty.setraw(sys.stdin.fileno())
currfl = fcntl.fcntl(sys.stdin.fileno(), fcntl.F_GETFL)
fcntl.fcntl(sys.stdin.fileno(), fcntl.F_SETFL, currfl | os.O_NONBLOCK)
sys.stdout.write('\x1b[?1049h\x1b[H')
inconsole = True
@ -594,7 +593,6 @@ def quitconfetty(code=0, fullexit=False, fixterm=True):
global currconsole
global didconsole
if fixterm or didconsole:
sys.stdout.write('\x1b[?1049l')
currfl = fcntl.fcntl(sys.stdin.fileno(), fcntl.F_GETFL)
fcntl.fcntl(sys.stdin.fileno(), fcntl.F_SETFL, currfl ^ os.O_NONBLOCK)
if oldtcattr is not None: