Class KernelExperimental
Implements
- Kernel
Index
Constructors
Properties
Accessors
Methods
Properties
Readonly Experimentalauth
Authentication and authorization service
Readonly Experimentalchannel
Broadcast channel for inter-kernel communication
Readonly Experimentalcomponents
Web Components manager
Optional Experimentalcontainer
WebContainer instance
Readonly Experimentaldevices
Map of registered devices and their drivers
Readonly Experimentaldom
DOM manipulation service
Readonly Experimentalevents
Event management system
Readonly Experimentalfilesystem
Virtual filesystem
Readonly Experimentali18n
Internationalization service
Readonly Experimentalid
Unique identifier for this kernel instance
Readonly Experimentalintervals
Interval management service
Readonly Experimentalkeyboard
Keyboard interface
Readonly Experimentallog
Logging system
Readonly Experimentalmemory
Memory management service
Readonly Experimentalmodules
Map of loaded modules
Readonly Experimentalname
Name of the kernel
Readonly Experimentaloptions
Configuration options passed to the kernel
Readonly Experimentalpackages
Map of loaded packages
Readonly Experimentalprocesses
Process management service
Readonly Experimentalprotocol
Protocol handler service
Readonly Experimentalscreensavers
string,
{
default: (options: { terminal: Terminal }) => Promise<void>;
exit: () => Promise<void>;
},
>
Map of available screensavers
Readonly Experimentalservice
Service management system
Readonly Experimentalshell
Shell for command interpretation and execution
Readonly Experimentalstorage
Storage provider interface
Readonly Experimentalterminal
Terminal interface for user interaction
Readonly Experimentaltoast
Toast notification service
Readonly Experimentalusers
User management service
Readonly Experimentalversion
Version string of the kernel
Readonly Experimentalwasm
WebAssembly service
Readonly Experimentalwindows
Window management service
Readonly Experimentalworkers
Web Worker management service
Accessors
addEventListener
removeEventListener
state
- get state(): KernelState
ExperimentalCurrent state of the kernel
Returns KernelState
Methods
boot
configure
execute
executeApp
executeCommand
executeDevice
- executeDevice(
device: KernelDevice,
args?: string[],
shell?: Shell,
): Promise<number> ExperimentalExecutes 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> ExperimentalShows 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