Class KernelExperimental
Implements
- Kernel
Index
Constructors
Properties
Accessors
Methods
Properties
Readonly
Experimental
auth
Authentication and authorization service
Optional
Experimental
bios
BIOS module providing low-level functionality
Readonly
Experimental
channel
Broadcast channel for inter-kernel communication
Readonly
Experimental
components
Web Components manager
Optional
Experimental
container
WebContainer instance
Readonly
Experimental
devices
Map of registered devices and their drivers
Readonly
Experimental
dom
DOM manipulation service
Readonly
Experimental
events
Event management system
Readonly
Experimental
filesystem
Virtual filesystem
Readonly
Experimental
i18n
Internationalization service
Readonly
Experimental
id
Unique identifier for this kernel instance
Readonly
Experimental
intervals
Interval management service
Readonly
Experimental
keyboard
Keyboard interface
Readonly
Experimental
log
Logging system
Readonly
Experimental
memory
Memory management service
Readonly
Experimental
modules
Map of loaded modules
Readonly
Experimental
name
Name of the kernel
Readonly
Experimental
options
Configuration options passed to the kernel
Readonly
Experimental
packages
Map of loaded packages
Readonly
Experimental
processes
Process management service
Readonly
Experimental
protocol
Protocol handler service
Readonly
Experimental
screensavers
string,
{
default: (options: { terminal: Terminal }) => Promise<void>;
exit: () => Promise<void>;
},
>
Map of available screensavers
Readonly
Experimental
service
Service management system
Readonly
Experimental
shell
Shell for command interpretation and execution
Readonly
Experimental
storage
Storage provider interface
Readonly
Experimental
terminal
Terminal interface for user interaction
Readonly
Experimental
toast
Toast notification service
Readonly
Experimental
users
User management service
Readonly
Experimental
version
Version string of the kernel
Readonly
Experimental
wasm
WebAssembly service
Readonly
Experimental
windows
Window management service
Readonly
Experimental
workers
Web Worker management service
Accessors
addEventListener
removeEventListener
state
- get state(): KernelState
Experimental
Current state of the kernel
Returns KernelState
Methods
boot
configure
execute
executeApp
executeCommand
executeDevice
- executeDevice(
device: KernelDevice,
args?: string[],
shell?: Shell,
): Promise<number> Experimental
Executes a device command
Parameters
- device: KernelDevice
Device to execute command on
- args: string[] = []
Command arguments
- shell: Shell = ...
Shell instance
Returns Promise<number>
Exit code of the device command
- device: KernelDevice
executeNode
executeScript
getPackageMainExport
notify
- notify(
title: string,
options?: NotificationOptions,
): Promise<void | Notification> Experimental
Shows a system notification if permissions are granted
Parameters
- title: string
Notification title
- options: NotificationOptions = {}
Notification options
Returns Promise<void | Notification>
The created notification or void if permissions denied
- title: string
Author
Jay Mathis code@mathis.network (https://github.com/mathiscode)
The Kernel class is the core of the ecmaOS system. It manages the system's resources and provides a framework for system services.
Returns
The unbooted kernel instance.
Example