bczsalba / pytermgui

Python TUI framework with mouse support, modular widget system, customizable and rapid terminal markup language and more!
https://ptg.bczsalba.com
MIT License
2.21k stars 54 forks source link

[BUG] InputField appears two cursors when typing #70

Closed DuckyMomo20012 closed 2 years ago

DuckyMomo20012 commented 2 years ago

Describe the bug When I resize the window vertically or set vertical_align of Window to CENTER or BOTTOM, the InputField appeared with two cursors when typing or focusing.

To Reproduce Steps to reproduce the behavior:

  1. Create a Window with one InputField.
  2. Run the app.
  3. Resize the window vertically.
  4. Click on InputField.
  5. Typing.
  6. See the error.

OR

  1. Go to this replit sandbox: https://replit.com/join/weiqtjcppk-duongvinh
  2. Run the app.
  3. Resize the "Login" window vertically.
  4. Click on InputField.
  5. Typing.
  6. See the error.

Expected behavior Only one cursor moving on the screen.

Screenshots pytermgui

System information

PyTermGUI version 6.3.0

System details:
    Python version: 3.10.4
    $TERM:          xterm-256color
    $COLORTERM:     truecolor
    Color support:  ColorSystem.TRUE
    OS Platform:    Linux-5.15.0-37-generic-x86_64-with-glibc2.35
bczsalba commented 2 years ago

Yep, this is a thing unfortunately. Not quite sure why it's happening, but it should be fixed in the near future!