console-rs / console-rs/console
New lines do not start from column 0
Nobody has claimed this yet.
- Dominant language
- Rust
- Stars
- 1.2k
- Forks
- 144
- Avg merge
- 8h 24m
- Merged PRs (30d)
- 4
Description
Hi.
Thanks for creating this crate.
Can you please tell me if I am doing something wrong or there is a bug?
I made a minimal repro at https://gitlab.com/yerke/repro_tui_bug
The problem is that new lines do not start from column 0.
Here is the example of the output I see on Mac:
$ ./run.sh
Finished dev [unoptimized + debuginfo] target(s) in 0.02s
Running `target/debug/repro_tui_bug`
Hello, world!
[2019-10-27T03:52:26Z DEBUG repro_tui_bug] Hello from main thread 1
[2019-10-27T03:52:26Z DEBUG repro_tui_bug] Hello from main thread 2
[2019-10-27T03:52:33Z DEBUG repro_tui_bug] Please press any button
[src/main.rs:12] key = Ok(
Char(
'f',
),
)
[2019-10-27T03:52:33Z DEBUG repro_tui_bug] Hello from spawned thread 1
[2019-10-27T03:52:33Z DEBUG repro_tui_bug] Hello from spawned thread 2
$
Thanks.
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 reviewing the minimal reproduction at https://gitlab.com/yerke/repro_tui_bug and run its run.sh script to reproduce the indentation on macOS. Use src/main.rs:12 and the logged output as entry points, then trace the console rendering behavior. Done means newly emitted lines begin at column 0 without breaking the shown output.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- rust
- Domain
- cli
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 45/100