charmbracelet / bubbletea

A powerful little TUI framework 🏗
MIT License
26.28k stars 759 forks source link

textinput output is ssh.session,textinput keep moving in client termianl #699

Open njfanxun opened 1 year ago

njfanxun commented 1 year ago

image update func use。 but my terminal is keep moving tty

bashbunni commented 1 year ago

Hey @njfanxun thanks so much for the demo. Do you mind providing a minimal reproducible example for this issue? Would love to help get it sorted!

bashbunni commented 1 year ago

Also, what terminal emulator are you using? I know I've had weird behaviour happen in the past with kitty and SSH when I wasn't using their SSH kitten to connect to endpoints over SSH

njfanxun commented 1 year ago

er,my terminal is macos iterm2. i use https://github.com/erikgeiser/promptkit. the repo's textinput happened that。Of course, I used ssh server。After connecting up through my iterm2。I read the promptkit source code,I guess,it may be promptkit use go template for view method。

bashbunni commented 1 year ago

I wasn't able to reproduce the textinput glitching out with the textinput example from promptkit. I used the latest version of iterm2 and ssh'd into my machine to run it as well and didn't have any weird behaviour. Your prompts don't look like what's in any of the example files in promptkit. I can try again with the token example if you can provide me with an example I can run

njfanxun commented 1 year ago

ssh-portal.zip my code is in zip. run code and in your iterm2 input "ssh localhost", the above problem will appear