Intermittent: Previous commands appear right of prompt after clear
- Dominant language
- C
- Stars
- 20.5k
- Forks
- 1.5k
- PR merge metrics
- No merged PRs in 30d
Description
If you run the command 'clear' some of the previous commands (sometimes even the clear you ran) can intermittently appear underneath and to the right of the prompt. The ghost lines always begin with ~]# positioned directly under the ~]# of the live prompt, with the command text following — as if the line starts at the prompt's tail rather than column 0. I haven't tried with any PS1 other than the iSH default of \[\e[1;32m\]\h [\[\e[0m\]\w\[\e[1;32m\]]# \[\e[0m\]. I have only tested on iSH version 1.3.2, iOS version 26.6.1 and an iPhone 12. I have also only tested in portrait and full-screen. I have only tested the default ash shell. I have not seen the bug with reset but keep in mind it is intermittent so that could just be luck or it might genuinely not happen with reset.
Contributor guide
No contributing guide indexed for this repository
Research direction
Reproduce the intermittent display corruption by running clear in the default ash shell on iSH 1.3.2 on iOS, using the default PS1 in portrait full-screen mode. Start by tracing the terminal rendering and clear handling; done means previous commands no longer appear offset to the right or beneath the live prompt, while reset behavior remains separately understood.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- c, ios
- Domain
- mobile-dev, operating-systems
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Active
- Clarity
- Mostly clear
- Newbie friendliness
- 45/100