lionkor / lionkor/commandline

GNU `screen -dmS` causes commandline to break and CPU spin

Open
#42 2 comments 0 reactions 0 assignees View on GitHub
bug
Dominant language
C++
Stars
95
Forks
16
PR merge metrics
No merged PRs in 30d

Description

1. Run commandline_test as `screen -dmS test commandline_test`
2. Observe 100% CPU spin
3. Attach via `screen -r test` and observe completely bugged input

- [ ] `screen -dmS` should work as expected
- [ ] there should be no CPU spin possible

---
Notes

- it may be that isatty() changes after initialization(?)

Contributor guide

No contributing guide indexed for this repository

Research direction

Start by running commandline_test as `screen -dmS test commandline_test`, then attach with `screen -r test` to reproduce the CPU spin and broken input. Trace the commandline initialization and isatty() handling to identify where screen's detached session changes behavior. Done means the command works under GNU screen without CPU spinning or corrupted input.

Written by the indexing model from the issue text.

Assessment

Tech stack
cpp
Domain
cli
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.