When quitting the InfluxQL shell, it doesn't properly clean up the terminal. This results in the user needing to run stty sane in order to restore proper functioning of their terminal (e.g. echo of keys typed).
Steps to reproduce:
Run influx v1 shell
Type quit to quit
Enter a new command on the command line
Expected behavior:
The terminal behaves as it did prior to launching influx v1 shell.
Actual behavior:
Typed characters are not echoed to the console.
When quitting the InfluxQL shell, it doesn't properly clean up the terminal. This results in the user needing to run
stty sane
in order to restore proper functioning of their terminal (e.g. echo of keys typed).Steps to reproduce:
influx v1 shell
quit
to quitExpected behavior: The terminal behaves as it did prior to launching
influx v1 shell
.Actual behavior: Typed characters are not echoed to the console.
Environment info:
Darwin 21.6.0 arm64
Linux 5.15.56-v8+ aarch64
Influx CLI 2.4.0 (git: 5c7c34f16d) build_date: 2022-08-18T18:21:50Z
Influx CLI 2.4.0 (git: 5c7c34f) build_date: 2022-08-18T19:26:48Z
Root cause: This happens due to c-bata/go-prompt#228 (see my comment for an explanation). A fix is available in c-bata/go-prompt#263.