Skip to content

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.

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.

  • A build of Australis OS with the user-program loader, terminal input, and file-reading operations.
  • An Australis-compatible .exec build 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.
Terminal window
git clone https://github.com/Aurora-softwares/Australis.Dev-user-demo.git
cd Australis.Dev-user-demo

Compile the included project with a Hydrogen compiler that supports the Australis target:

Terminal window
hy build UserDemo.hyproj -o user-demo.exec

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.txt

The normal image build includes both files. Rebuild the OS image after changing the application; the source expects /hello.txt.

After booting the rebuilt image, invoke the program from the terminal:

run /System/Bin/user-demo.exec

The 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.

Terminal command
|
v
Australis program loader
|
v
User demo (.exec)
| |
v v
Terminal input HyFS root-file read
| |
+------+-----+
|
v
Demo output

The application is intended to use the services offered by the Australis runtime, rather than directly accessing the terminal hardware or filesystem storage.

  • 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.

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.

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.

See LICENSE for this repository’s license.