console-rs / console-rs/console
Term size is None using bacon
Nobody has claimed this yet.
- Dominant language
- Rust
- Stars
- 1.2k
- Forks
- 144
- Avg merge
- 8h 24m
- Merged PRs (30d)
- 4
Description
Using bacon (e.g. bacon run) then console::Term::stdout().size_checked() returns None.
I checked other crates, and the only one returning a size, is crossterm, i.e. crossterm::terminal::size().
Whereas all the following returns None:
terminal_size::terminal_size()termsize::get()termize::dimensions()
Mainly mentioning it, in case anyone wants to search for potential solutions.
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reproducing the issue with bacon and console::Term::stdout().size_checked(), then trace the implementation of size_checked(). Compare its behavior with crossterm::terminal::size() and the other terminal-size crates mentioned. Done means terminal dimensions are returned when running under bacon, with a regression test covering the case.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- rust
- Domain
- cli
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 42/100