Australis.Dev-user-demo
Development reference from Australis.Dev-user-demo. Commands and source paths on this page are relative to that repository checkout. For current task status, use the development project.
A small terminal input and root-file reading demonstration for Australis OS.
This development application exercises the operating system’s user-program runtime beyond printing a fixed message. It is intended as a reference for developers testing interactive console programs and filesystem access.
Overview
Section titled “Overview”The demo focuses on two user-facing operations:
- Terminal input: accept data entered by the user through the Australis terminal.
- Root-file reading: request and read a file from the root of the HyFS filesystem.
Together, these demonstrate how an application can communicate with the terminal and access OS-managed resources through the supported Australis executable interface.
This is a development example, not a general-purpose file viewer or terminal utility.
Requirements
Section titled “Requirements”- A build of Australis OS with the user-program loader, terminal input, and file-reading operations.
- An Australis-compatible
.execbuild of the demo. - A HyFS image containing both the executable and a suitable file for the demo to read.
- The Hydrogen compiler with the Australis target, if compiling from Hydrogen source.
Getting Started
Section titled “Getting Started”1. Clone the repository
Section titled “1. Clone the repository”git clone https://github.com/Aurora-softwares/Australis.Dev-user-demo.gitcd Australis.Dev-user-demo2. Build the executable
Section titled “2. Build the executable”Compile the included project with a Hydrogen compiler that supports the Australis target:
hy build UserDemo.hyproj -o user-demo.exec3. Package the executable in HyFS 2
Section titled “3. Package the executable in HyFS 2”The standard Australis OS aggregate builds this project and installs
user-demo.exec under /System/Bin in the read-only HyFS 2 boot image. The image
must also contain /hello.txt, which the source reads:
/├── Bin/│ └── user-demo.exec└── hello.txtThe normal image build includes both files. Rebuild the OS image after changing
the application; the source expects /hello.txt.
4. Run in Australis OS
Section titled “4. Run in Australis OS”After booting the rebuilt image, invoke the program from the terminal:
run /System/Bin/user-demo.execThe bare command user-demo also resolves through the current recovery
shell’s PATH.
Once launched, follow its input prompt (if present) and inspect the reported file data. Exact prompts and output depend on the implementation.
How It Works
Section titled “How It Works”Terminal command | vAustralis program loader | vUser demo (.exec) | | v vTerminal input HyFS root-file read | | +------+-----+ | v Demo outputThe application is intended to use the services offered by the Australis runtime, rather than directly accessing the terminal hardware or filesystem storage.
What This Tests
Section titled “What This Tests”- Launching a user application from HyFS.
- Handling interactive terminal input.
- Resolving and reading a root-level file.
- Returning control to the Australis terminal after execution.
For memory-isolation and error-recovery testing, see Australis.Dev-user-fault.
Current Limitations
Section titled “Current Limitations”Australis OS and Hydrogen are under active development. Console input and text
file results are currently limited to 255 ASCII bytes. The demo reads
/hello.txt; that file must be present in the mounted filesystem.
Related Projects
Section titled “Related Projects”- Australis OS — operating system and runtime.
- Australis-HelloWorld — minimal Hydrogen application and build example.
- Hydrogen Compiler — compiler and Australis backend.
- Hydrogen website — language information.
Contributing
Section titled “Contributing”Bug reports, improvements, and contributions are welcome. For issues specific to the kernel or runtime, please use the Australis OS repository; for compiler issues, use the Hydrogen Compiler repository.
License
Section titled “License”See LICENSE for this repository’s license.