t3hn3rd f752be48ce
continuous-integration/drone/push Build is passing
continuous-integration/drone/pr Build is passing
refactor/feature/fix: Major refactor of codebase
refactor(stdio): replace console/terminal command system with buffer-based stdio
- Introduced stdio.pas as the unified command I/O layer.
- All 31 command procedures across 15 files now receive stdin_buf,
  stdout_buf, and stderr_buf (POutBuf) instead of a single outbuf.
- vterminal.pas creates all three buffers per command invocation and
  displays both stdout and stderr.
- Deleted console.pas, terminal.pas, and 9 obsolete windowing programs
  (shell, splash, edit, memview, themer, netlog, vmlog, vmstate, udpcat).
- Migrated all registerCommand calls to stdio, rewrote vterminal
  processCommand to use stdio.findCommand, and added proper error
  routing to stderr for invalid params, bad paths, and system errors.

refactor(syslog): replace console logging with serial-backed syslog
- Introduced syslog.pas for kernel-level logging over serial/dev.
- Migrated all boot logging in kernel.pas from console.outputln/
  writestringln to syslog.logln/writestringln.
- Converted 19 fault handlers, hashmap, lists, scheduler, tracer, net,
  udp, and all driver init paths to use syslog.
- Rewrote BSOD in util.pas (50+ calls) from console to syslog.
- Removed CONSOLE_SLOW_REDRAW, TRGB565, TRGB565Pair, and HWND
  from system.pas.

fix(keyboard): add ring buffer and proper press/release cycling for LVGL input
- Replaced the single last_key/key_pressed slot in lvgl.pas with a
  16-entry ring buffer (kb_buf, kb_head, kb_tail) to prevent ISR
  overwrites when typing fast.
- Added a kb_pending_release flag so each keystroke gets a
  full PRESSED->RELEASED cycle before the next key is consumed —
  LVGL requires this pairing and was silently dropping intermediate
  keys when receiving consecutive PRESSED events without
  intervening releases.

feat(vterminal): use Hack monospace font for terminal output
- Added Hack Regular 14px (hack_14.c) as a custom LVGL font.
- Removed the .static_bitmap field from the generated font file
  (not present in LVGL 9.2 lv_font_t struct).
- Declared the hack_14 external symbol in lvgl.pas and switched
  vterminal's text label from lv_font_montserrat_14 to hack_14
  for proper monospace terminal rendering.
2026-03-01 02:06:31 +00:00
2025-03-09 13:05:39 +00:00
2020-10-29 15:27:40 +00:00
2020-10-29 15:27:40 +00:00
2020-10-29 15:27:40 +00:00
ds
2017-05-20 18:25:38 +00:00
2026-02-26 12:23:42 +00:00
2021-06-22 23:42:43 +01:00
2026-02-27 16:30:31 +00:00
2025-03-15 10:52:08 +00:00
2021-07-06 19:18:23 +00:00
2021-07-06 19:18:23 +00:00
2021-07-06 19:18:23 +00:00
2021-07-06 19:18:23 +00:00
2026-02-27 16:30:31 +00:00
2021-07-06 19:18:23 +00:00
2021-07-06 19:18:23 +00:00
2021-07-06 19:18:23 +00:00
2025-03-09 19:39:25 +00:00
2026-02-27 16:30:31 +00:00
2021-06-22 20:55:23 +00:00
2026-02-27 16:30:31 +00:00
2021-06-22 20:54:58 +00:00
2025-03-09 13:05:39 +00:00
2020-10-29 15:35:00 +00:00

Asuro

We welcome everyone to give building/breaking/fixing/shooting Asuro a go, feel free to follow the steps below and mess with Asuro for fun or profit.

Setting up your build environment

Prerequisites

  • WSL2 WSL2 is used in conjunction with Docker to predefine a build environment for Asuro.
  • Docker for Windows Docker is used to ensure a predefined environment with the correct versions of; Freepascal, Binutils, NASM, Make, xorriso & grub-mk-rescue installed is used for compilation. An ISO will be generated at the end of the build process.
  • Git (Obviously) I don't think this needs an explaination.
  • VSCode (Optional, but highly recommended) Visual Studio code is our IDE of choice, and we have a number of recommended plugins.
    • PowerShell Plugin by Microsoft This plugin gives you the ability to use the 'PowerShell' task type, allowing the automatic launching of virtualbox with the resulting image generated during compilation of Asuro.
  • VirtualBox Virtualbox is our Virtualisation environment of choice, don't ask why, it just is.

Installation (correct as of 2021/06/20)

  1. Install WSL2 as described in the article linked above & ensure Virtualization is enabled in the BIOS.

  2. Ensure WSL2 is used by default with the following command:

    wsl --set-default-version 2
    
  3. Install Docker for Windows.

  4. Install Git for Windows.

  5. Install VSCode & the listed plugins.

  6. Install VirtualBox (v7+).

  7. Clone this repository.

  8. Run the following command in the root of the repo to build the docker image:

    docker compose build builder
    
  9. Run the following command to compile Asuro:

    docker compose run builder
    
  10. Create a new virtual machine in Virtualbox and mount the Asuro.iso generated in step 9 as a boot image.

  11. Add the virtualbox installation directory to your %PATH% environment variable, usually:

    %PROGRAMFILES%\Oracle\VirtualBox
    
  12. Naviage to your virtualbox machines folder, this is usually the following

    %userprofile%\VirtualBox VMs\<VM Name>
    

    Open the Virtual Machine Definition file (.vbox) in your text editor of choice and find the following line:

    <Machine uuid="{7d395c96-891c-4139-b77d-9b6b144b0b93}" name="Asuro" OSType="Linux" snapshotFolder="Snapshots" lastStateChange="2021-06-20T20:33:07Z">
    

    Copy the uuid, in our case 7d395c96-891c-4139-b77d-9b6b144b0b93 & create a localenv.json file in the project root with the following content:

    {
        "VirtualBox":{
            "MachineName":"<YOUR_UUID_OR_MACHINE_NAME>"
        }
    }
    

    This will allow VSCode to automatically launch VirtualBox once Asuro has been compiled.

    You can also enable the serial adapter "COM1" in mode "Raw File", give it a path, and provide this path in the localenv.json as follows:

    {
        "VirtualBox" : {
            "MachineName": "<YOUR_UUID_OR_MACHINE_NAME>",
            "LogLocation": "Fully\\Qualified\\Path\\To\\Your\\Log\\File"
        }
    }
    

    This will allow you to see the console output from Asuro in your host terminal.

  13. Open your project folder in VSCode, use CTRL+SHIFT+B to build & F5 to build + run in VBox.

  14. Congratulations! You can now play with Asuro!

Notes & Gotchas

  • The above process has been updated to be compatible with VirtualBox 7+, in which VBoxSDL was removed and vboxmanage should be used in its place. A small wrapper powershell script is used to achieve this.
  • It was noted that Windows builds above 20H2 seem to have issues installing WSL2. We may have to wait for a patch from Microsoft to fix this. Our devs are currently using build 20H2.
S
Description
An x86 Operating System that started development in 2015 as somewhat of an academic project. Written almost entirely in Freepascal, with NASM used only for bootstrapping & minimal low-level routines, Asuro is a purely hobbyist operating system that differs quite majorly in design from any mainstream OS.
https://asuro.xyz
Readme
61 MiB
Languages
Pascal 98.3%
Python 0.8%
Shell 0.7%
Assembly 0.1%