mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-01 05:39:11 +00:00
Shell: Add support for escaping backslash in prompt sequence
This commit is contained in:
parent
050c73d301
commit
491d61a2fd
Notes:
sideshowbarker
2024-07-17 23:07:41 +09:00
Author: https://github.com/adamjoer
Commit: 491d61a2fd
Pull-request: https://github.com/SerenityOS/serenity/pull/21589
Reviewed-by: https://github.com/alimpfard
1 changed files with 3 additions and 0 deletions
|
@ -157,6 +157,9 @@ DeprecatedString Shell::prompt() const
|
|||
else
|
||||
builder.append('!');
|
||||
|
||||
} else if (lexer.consume_specific('\\')) {
|
||||
builder.append('\\');
|
||||
|
||||
} else {
|
||||
lexer.consume();
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue