tty-prompt icon indicating copy to clipboard operation
tty-prompt copied to clipboard

ask and multiline flicker while typing

Open technicalpickles opened this issue 2 years ago • 0 comments
trafficstars

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

  • OS version: macOS Ventura 13.0
  • Ruby version: 2.7.7
  • TTY::Prompt version: 0.23.1

technicalpickles avatar Jan 07 '23 04:01 technicalpickles