bash assumes ECHO is enabled for the tty
This commit is contained in:
parent
dac9b07f16
commit
4487462b0d
2 changed files with 3 additions and 2 deletions
|
|
@ -171,6 +171,9 @@ def __init__(self, argv, rows=25, columns=80, scrollback=100, cell_width=10, cel
|
|||
time.sleep(0.01)
|
||||
if cwd:
|
||||
os.chdir(cwd)
|
||||
new = termios.tcgetattr(sys.stdin.fileno())
|
||||
new[3] = new[3] | termios.ECHO
|
||||
termios.tcsetattr(sys.stdin.fileno(), termios.TCSADRAIN, new)
|
||||
os.execvpe(argv[0], argv, env or os.environ)
|
||||
os.set_blocking(self.master_fd, False)
|
||||
self.cell_width = cell_width
|
||||
|
|
|
|||
|
|
@ -41,8 +41,6 @@ def safe_env_for_running_shell(home_dir, rc='', shell='zsh'):
|
|||
print('set +o posix', file=f)
|
||||
# ensure LINES and COLUMNS are kept up to date
|
||||
print('shopt -s checkwinsize', file=f)
|
||||
# Not sure why bash turns off echo in this scenario
|
||||
print('stty echo', file=f)
|
||||
if rc:
|
||||
print(rc, file=f)
|
||||
print(rc_inset('bash'), file=f)
|
||||
|
|
|
|||
Loading…
Reference in a new issue