Commit 4cce77d
authored
fix: reset ANSI styling before printing prompt (#992)
* fix: reset ANSI styling before printing prompt
Reset any ANSI styling that may have been left by external commands
before printing the prompt. This ensures the prompt is not affected
by previous output styling that was not properly reset.
Fixes nushell/nushell#16384
Signed-off-by: majiayu000 <[email protected]>
* refactor: remove redundant ResetColor since SGR 0 resets all
---------
Signed-off-by: majiayu000 <[email protected]>1 parent b81c351 commit 4cce77d
1 file changed
+5
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
208 | 208 | | |
209 | 209 | | |
210 | 210 | | |
| 211 | + | |
| 212 | + | |
| 213 | + | |
| 214 | + | |
| 215 | + | |
211 | 216 | | |
212 | 217 | | |
213 | 218 | | |
| |||
0 commit comments