K9s: Shell: First entered character lost

Created on 30 Apr 2019  路  4Comments  路  Source: derailed/k9s






Describe the bug
When entering into a shell the first character typed into the shell is lost, all other characters afterwards work. This is a bug in a library k9s uses

After writing this issue up I realized it's a duplicate of: https://github.com/derailed/k9s/issues/165 (why was this issue closed? seems like it should be kept open for tracking purposes. Also there is a posted "fix" but I couldn't seem to figure out how to apply it)

To Reproduce
Steps to reproduce the behavior:

  1. Deploy a pod kubectl run -it --rm --image alpine bugtest
  2. Go to the pod list
  3. Select the pod named bugtest*
  4. Press s to get a shell
  5. Attempt to run the command cd /bin <enter>
  6. Notice the first keypress is lost

Expected behavior
The shell would contain

# cd /bin
/bin #

Versions (please complete the following information):

  • OS: OSX
  • K9s
Version:   0.5.2
Commit:    3e36512e19e5a961e8e29dcc27debada591a0532
Date:      2019-04-27T04:54:25Z
  • K8s
Client Version: version.Info{Major:"1", Minor:"14", GitVersion:"v1.14.1", GitCommit:"b7394102d6ef778017f2ca4046abbaa23b88c290", GitTreeState:"clean", BuildDate:"2019-04-19T22:13:37Z", GoVersion:"go1.12.4", Compiler:"gc", Platform:"darwin/amd64"}
Server Version: version.Info{Major:"1", Minor:"14", GitVersion:"v1.14.1", GitCommit:"b7394102d6ef778017f2ca4046abbaa23b88c290", GitTreeState:"clean", BuildDate:"2019-04-08T17:02:58Z", GoVersion:"go1.12.1", Compiler:"gc", Platform:"linux/amd64"}
LibLimitation bug

Most helpful comment

@mcristina422 Thank you for the report! The fix is more of a hack ie sending an extra cr to work around the problem. The owner of the lib is aware and yet no fix ;( since the correct fix is actually involved. You can help by voting this issue up. For now, I made a habit of just pressing entrer when I shell in. I know this is annoying.

All 4 comments

@mcristina422 Thank you for the report! The fix is more of a hack ie sending an extra cr to work around the problem. The owner of the lib is aware and yet no fix ;( since the correct fix is actually involved. You can help by voting this issue up. For now, I made a habit of just pressing entrer when I shell in. I know this is annoying.

@derailed Is there any updates about this issue?

Same problem here and for all people in my team. Any news?

Shouldn't you find another library with a more responsive community ? It's weird that this bug has been around for years now

Was this page helpful?
0 / 5 - 0 ratings

Related issues

ArnaudMsh picture ArnaudMsh  路  3Comments

stk0vrfl0w picture stk0vrfl0w  路  3Comments

binarycoded picture binarycoded  路  3Comments

rahilb picture rahilb  路  3Comments

pgoodjohn picture pgoodjohn  路  4Comments