You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
However, when I press the up arrow key, I don't see the last command used but instead the command prints ^[[A
Expected behaviour
when I run kubectl exec -it ... -- bash I can open an interactive session in bash and use the arrow keys to navigate through the shell history
Possible solution
No response
Additional context
In addition, when I press Ctrl+C my application exists, when I do that in a shell, it just prints ^C but it does not exit kubectl. My impression is that my app is still connected to the pty slave
Environment
$ kubectl version --short
Client Version: v1.22.1
Server Version: v1.20.13
Configuration and features
kube = { version = "0.74.0", features = ["runtime", "derive", "native-tls", "ws"] }
k8s-openapi = { version = "0.15.0", features = ["v1_24"] }
Affected crates
No response
Would you like to work on fixing this bug?
No response
The text was updated successfully, but these errors were encountered:
Yeah, deferring to crossterm here should be the way to go. The above PR is very nicely plugging into crossterm in an example to do this, so going to close this when that gets merged (because while full handling of escape chars is out of scope for us, we do need to handle terminal size).
Current and expected behavior
Current behaviour
I have a code like this
I can connect to the container
However, when I press the up arrow key, I don't see the last command used but instead the command prints
^[[A
Expected behaviour
when I run
kubectl exec -it ... -- bash
I can open an interactive session in bash and use the arrow keys to navigate through the shell historyPossible solution
No response
Additional context
In addition, when I press Ctrl+C my application exists, when I do that in a shell, it just prints
^C
but it does not exit kubectl. My impression is that my app is still connected to the pty slaveEnvironment
$ kubectl version --short
Client Version: v1.22.1
Server Version: v1.20.13
Configuration and features
Affected crates
No response
Would you like to work on fixing this bug?
No response
The text was updated successfully, but these errors were encountered: