piotrmurach / tty-prompt

A beautiful and powerful interactive command line prompt
https://ttytoolkit.org
MIT License
1.47k stars 136 forks source link

ask and multiline flicker while typing #188

Open technicalpickles opened 1 year ago

technicalpickles commented 1 year ago

Describe the problem

I'm using prompt.ask and prompt.multiline to gather input, and I've found they seem to flicker as you type. I haven't seen it with prompt.select though.

https://user-images.githubusercontent.com/159/211130859-8f66f90c-5d90-406c-a485-c10112335477.mov

https://user-images.githubusercontent.com/159/211130860-ddcd99fb-5055-4c05-9fba-991417715e23.mov

Steps to reproduce the problem


require 'tty-prompt'

prompt = TTY::Prompt.new
prompt.ask "how are you?"

Actual behaviour

The text flickers. Maybe it's being redrawn every key?

Expected behaviour

No flickering while typing.

Describe your environment