mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 14:38:11 +00:00
Snazz up the sh prompt a bit. Add the current tty to it.
This commit is contained in:
parent
3218f00099
commit
511ed4c4de
2 changed files with 6 additions and 10 deletions
|
@ -40,12 +40,6 @@ VirtualConsole* tty2;
|
|||
VirtualConsole* tty3;
|
||||
Keyboard* keyboard;
|
||||
|
||||
void banner()
|
||||
{
|
||||
InterruptDisabler disabler;
|
||||
kprintf("\n\033[33;1mWelcome to \033[36;1mSerenity OS!\033[0m\n\n");
|
||||
}
|
||||
|
||||
static byte parseHexDigit(char nibble)
|
||||
{
|
||||
if (nibble >= '0' && nibble <= '9')
|
||||
|
@ -191,8 +185,6 @@ static void init_stage2()
|
|||
}
|
||||
#endif
|
||||
|
||||
banner();
|
||||
|
||||
int error;
|
||||
auto* sh0 = Task::createUserTask("/bin/sh", (uid_t)100, (gid_t)100, (pid_t)0, error, nullptr, tty0);
|
||||
auto* sh1 = Task::createUserTask("/bin/sh", (uid_t)100, (gid_t)100, (pid_t)0, error, nullptr, tty1);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue