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: https://github.com/SerenityOS/serenity/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
Reference in a new issue