Skip to content

ask and multiline flicker while typing #188

@technicalpickles

Description

@technicalpickles

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.

Screen.Recording.2023-01-06.at.11.20.14.PM.mov
Screen.Recording.2023-01-06.at.11.18.56.PM.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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions