veeso / tui-realm

👑 tui-rs framework to build stateful applications with a React/Elm inspired approach
MIT License
558 stars 25 forks source link

[BUG] - windows: one off error in powershell #56

Closed strowk closed 11 months ago

strowk commented 11 months ago

Description

First row and first column of a terminal are not drawn on when running example "demo" in Powershell.

Steps to reproduce

In windows 11 run standard terminal application. Clone repo and run cargo run --example demo

You would see that app renders in wrong bounds.

image

Expected behaviour

Should take terminal completely for render.

Environment

Additional information

Might be a bug with crossterm possibly?

If terminal is resized (resize window) - it fixes the issue, app starts rendering correctly.

If running git bash from same terminal, it works the same.

When git bash is run from its own terminal, then usual cargo run leads to totally broken terminal, but running using winpty ( winpty cargo run --example demo ) reproduces the issue differently - first two rows are left, but first column is drawn over correctly.

veeso commented 11 months ago

fixed in 1.9.1