mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 10:18:11 +00:00
Shell: Add support for escaping backslash in prompt sequence
This commit is contained in:
parent
050c73d301
commit
491d61a2fd
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