mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 13:38:11 +00:00
Shell: Convert StringBuilder::appendf() => AK::Format
This commit is contained in:
parent
ea027834df
commit
8c3b603da3
3 changed files with 10 additions and 10 deletions
|
@ -77,8 +77,8 @@ String Shell::prompt() const
|
|||
return "# ";
|
||||
|
||||
StringBuilder builder;
|
||||
builder.appendf("\033]0;%s@%s:%s\007", username.characters(), hostname, cwd.characters());
|
||||
builder.appendf("\033[31;1m%s\033[0m@\033[37;1m%s\033[0m:\033[32;1m%s\033[0m$> ", username.characters(), hostname, cwd.characters());
|
||||
builder.appendff("\033]0;{}@{}:{}\007", username, hostname, cwd);
|
||||
builder.appendff("\033[31;1m{}\033[0m@\033[37;1m{}\033[0m:\033[32;1m{}\033[0m$> ", username, hostname, cwd);
|
||||
return builder.to_string();
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue