mirror of
https://github.com/xcat2/confluent.git
synced 2024-11-22 17:43:14 +00:00
Revert "Have nodeconsole restore term on exit"
This reverts commit 2972374da8
.
This commit is contained in:
parent
2972374da8
commit
ecbe1a86b1
@ -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:
|
||||
|
Loading…
Reference in New Issue
Block a user