Skip to content

Commit

Permalink
imp - Improved appearance of post-login shell
Browse files Browse the repository at this point in the history
---

We've moved messages around to better reflect the state of the current kernel.

---

Type: imp
Breaking: False
Doc Required: False
Part: 1/1
  • Loading branch information
AptiviCEO committed Feb 26, 2024
1 parent d4d4e1e commit eb114db
Showing 1 changed file with 13 additions and 15 deletions.
28 changes: 13 additions & 15 deletions public/Nitrocid/Kernel/KernelEntry.cs
Original file line number Diff line number Diff line change
Expand Up @@ -143,21 +143,7 @@ private static void MainLoop()
if (PowerManager.RebootRequested || PowerManager.KernelShutdown)
continue;

// Show current time
if (TimeDateTools.ShowCurrentTimeBeforeLogin)
{
TimeDateMiscRenderers.ShowCurrentTimes();
TextWriterRaw.Write();
}

// Show the tip
if (WelcomeMessage.ShowTip)
WelcomeMessage.ShowRandomTip();

// Show a tip telling users to see license information
TextWriters.Write("* " + Translate.DoTranslation("Run 'license' to see the license information.") + CharManager.NewLine, KernelColorType.Tip);

// Show MOTD
// Show MAL
BaseLoginHandler.ShowMOTDOnceFlag = true;
if (BaseLoginHandler.ShowMAL)
{
Expand All @@ -166,10 +152,22 @@ private static void MainLoop()
}
DebugWriter.WriteDebug(DebugLevel.I, "Loaded MAL.");

// Show current time
if (TimeDateTools.ShowCurrentTimeBeforeLogin)
TimeDateMiscRenderers.ShowCurrentTimes();
TextWriterRaw.Write();

// Show headline
RSSTools.ShowHeadlineLogin();
DebugWriter.WriteDebug(DebugLevel.I, "Loaded headline.");

// Show the tip
if (WelcomeMessage.ShowTip)
WelcomeMessage.ShowRandomTip();

// Show a tip telling users to see license information
TextWriters.Write("* " + Translate.DoTranslation("Run 'license' to see the license information."), KernelColorType.Tip);

// Initialize shell
DebugWriter.WriteDebug(DebugLevel.I, "Shell is being initialized.");
ShellManager.StartShellInternal(ShellType.Shell);
Expand Down

0 comments on commit eb114db

Please sign in to comment.