asomers / gstat-rs

An enhanced version of FreeBSD's gstat(8) utility
BSD 2-Clause "Simplified" License
14 stars 0 forks source link

Fix display of providers with long names #25

Closed asomers closed 9 months ago

asomers commented 9 months ago

Prior to PR #23 it worked. If the terminal was wide enough to display a long provider name, then tui would expand the "Name" column as necessary. If the terminal was too narrow, then the "Name" would be truncated as required. But ratatui regressed from tui in this regard. After switching from tui to ratatui, gstat-rs would always display the "Name" column with exactly 10 characters. Now, the original behavior is restored.

Also, switch from termion to crossterm, and update Nix to 0.27.0. I'm doing those in the same PR because otherwise they would cause merge conflicts.