Shellminator V3.0.1
Simple Terminal
|
Sometimes, it's important to notify the user when a certain event occurs. That’s exactly what the ShellminatorNotification class is for!
It simply generates a text box in the center of the screen, where you can display any message you want. The notification stays on the screen until the user presses Enter or Ctrl+C, making sure they don’t miss important information.
Using notifications is easy—just create an object from the ShellminatorNotification class:
Before displaying it, set the text you want to show. This can be multiple lines if needed:
To bring the notification to the foreground, use either the beginScreen or swapScreen method:
beginScreen(¬ification);
→ Use this if you’re switching from terminal mode to GUI mode. swapScreen(¬ification);
→ Use this if you’re already in GUI mode and want to replace the current content with the notification.