#189 Fix the env in TTY mode Upstream-commit: e260e808149d5ac4d0bfc4822d056a53fb277e66 Component: engine