kingToolbox / kingToolbox/WindTerm

outline cannot get the command line of the custom PS1 correctly

Open
#385 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
C
Stars
32.3k
Forks
2.5k
PR merge metrics
No merged PRs in 30d

Description

After I entered a command on my customized PS1, the outline did not capture the command I entered.
```sh
$ echo $PS1
\[\e]0;\w\a\]\n\[\e[32m\]\u@\h \[\e[33m\]\w\[\e[0m\]\n\$
```
![a20211222153235](https://user-images.githubusercontent.com/28861745/147053874-2ff92c65-5c90-44ba-bf1b-62c7b1ba7fe0.png)

Contributor guide

No contributing guide indexed for this repository

Research direction

Reproduce the command-capture failure in WindTerm using the customized PS1 shown in the issue, then trace the terminal's prompt and command-line handling entry points. Compare capture behavior with a simpler PS1 and confirm that commands entered after the provided prompt are recorded correctly before considering the issue done.

Written by the indexing model from the issue text.

Assessment

Tech stack
bash, c
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.