A Linux Emulator for JavaScript
import{Emulator}from"kotonemu";importShalfeltOSfrom"kotonemu/os";const{ options, storage}=ShalfeltOS(xterm_terminal_object);constemulator=newEmulator(options,storage);emulator.run();
ShalfeltOS 0.1.0Copyright (C) 2024 Kotonone and ShalfeltOS contributorskotonepc login: aPassword: bLast login: Wed Dec 9 04:09:57 on tty1[kotone@kotonepc /]$
When you want to implement a Linux-like PC that can actually be operated by the user in software written in JavaScript.
For example, ... games that put a little too much emphasis on technology?
- open
- close
- seek
- read
- write
- stat
- unlink
- mkdir
- readdir
- rmdir
- symlink
- uname
- spawn
- exec
You can start the development server with the following command: