Features
The Terminal app is designed with both usability and extensibility in mind.
๐ Performance & Design
- High-Performance UI: Built with React for smooth, flicker-free terminal output.
- Glassmorphism Aesthetic: Sleek design that perfectly matches the ModernOS layout.
- Dynamic Updates: Command outputs bridge seamlessly from the Lua backend to the React frontend.
๐ ๏ธ Developer Extensibility
- Dynamic Command Registration: Easily add new commands via Lua using
RegisterTerminalCommand. - HTML Support: Commands can return complex HTML strings for rich visual formatting.
- Open Configuration: Core command logic is located in an "open" file (
client/open/open.lua) for easy user customization.
๐ป System Commands
- Diagnostic Tools: Built-in commands like
ipconfigandwhoamifor system info. - Utilities: Quick access to server time (
date) and history management (clear). - Flexible Arguments: Full argument support in commands for complex user interactions.
Installation
Installing the Terminal app is straightforward. Since it is designed to work with kartik-laptop, ensure you have the core laptop resource running.
Commands & Callbacks
The Terminal app uses a centralized NUI callback to handle all user input. This logic is exposed in an "open" file to allow for deep customization of how commands are parsed and executed.