Skip to content
Mistium edited this page Apr 7, 2024 · 18 revisions

Files

ls /path

Lists out the files in the current terminal directory

Example:

I use "/Mist" because that is my username 

Screenshot 2024-02-13 at 12 54 56

cd /path

Sets the working directory of the terminal system

Here i set the path to the system drive

Screenshot 2024-02-13 at 12 56 12

pwd

Returns the working directory of the terminal system

The system returns the current directory

Screenshot 2024-02-13 at 12 56 51

Data

wget name.extension url

Installs a file from the internet

Installing 2048 looks like this

wget 2048.osl https://raw.githubusercontent.com/Mistium/Origin-OS/main/OSL%20Programs/apps/games/2048.osl

Screenshot 2024-02-13 at 14 08 31

htop

Returns a list of processes and how long they take to render in milliseconds

The system returns an app list

Screenshot 2024-02-13 at 12 57 54

echo

Returns the data you give it back to you

Screenshot 2024-02-13 at 13 05 09

Upload

Allows you to upload files from your computer into originOS

WhoAmI

Returns data about your user (and all ip addresses that have ever logged into your account)

Screenshot 2024-02-13 at 13 10 33

Get

get network

returns an integer of how many network requests are currently in execution
collect the value in osl using the "data" variable

get logs

returns an array of system logs
collect the value in osl using the "data" variable

get filepaths

returns an array of every file path in the system
collect the value in osl using the "data" variable

get windowpositions

returns an array of the window positions
collect the value in osl using the "data" variable

example:
[
  "-1,0", // the window is snapped horizontally left and vertically middle
  "1,1", // the window is snapped horizontally right and vertically top
  "" // the window is not snapped
]

get packetlist

returns an array of all packets sent to and from your device
collect the value in osl using the "data" variable

example:
[
  "{\"timestamp\":1708477125284,\"payload\":\"Upload_Files\",\"recipient\":\"origin.System\",\"network_identifier\":\"Quick_Settings\"}",
  "{\"timestamp\":1708476833098,\"payload\":[160347,25000000,0.00641388],\"source\":\"origin.System\"}", // from origin.System
]

get heapinf

returns the info about the js heap (is not accessible using "data")

get mediadevices

returns an object of your current media devices
collect the value in osl using the "data" variable

example:
{
  "inputDevices": [
    "Default - AirPods",
    "AirPods",
    "Mist's iphoneXS Microphone",
    "MacBook Pro Microphone (Built-in)",
    "Immersed (Virtual)",
    "Meta Quest Remote Desktop Audio (Virtual)",
    "Virtual Desktop Mic (Virtual)",
    "Virtual Desktop Speakers (Virtual)"
  ],
  "outputDevices": [
    "Default - AirPods",
    "AirPods",
    "MacBook Pro Speakers (Built-in)",
    "Immersed (Virtual)",
    "Meta Quest Remote Desktop Audio (Virtual)",
    "Virtual Desktop Mic (Virtual)",
    "Virtual Desktop Speakers (Virtual)"
  ]
}

Flags

Flags donotdisturb

flags donotdisturb set true
flags donotdisturb set false

flags donotdisturb get
(Sets osl variable "data" to the state of donotdisturb)

Flags allowjs

flags allowjs true
flags allowjs false

enables and disables the use of the eval function in all of osl

System

kill app_name

Force closes an application

connect

Reconnects to the networking system

exit

Closes the window

clear

Sets the osl variable "terminal" to []

Info

Gives the user data about their current origin version and runtime

Screenshot 2024-02-13 at 13 03 17

Shutdown

Reboots the OS and uploads your files

Legacy

-get.windows

Returns a list of window names, ids, frame times and errors (in that order)

Use in osl

terminal "-get.windows"

log windows-names
// A variable called windows-names is logged

log windows-ids
// A variable called windows-ids is logged

log windows-drawtimes
// A variable called windows-drawtimes is logged

log windows-errors
// A variable called windows-errors is logged

Screenshot 2024-02-13 at 12 58 32

System Wipefiles

Allows you to delete all of your network files and then logs you out

Screenshot 2024-02-13 at 13 14 45

System wallpapermode

Sets the wallpaper display mode

system wallpapermode stretch
system wallpapermode fill
system wallpapermode fit

System wallpaper

Sets the wallpaper through a url

system wallpaper url

System scrollspeed

Sets the scrolling multiplier (default 1)

// Reset scroll direction
system scrollspeed 1

// Inverted scroll direction
system scrollspeed -1

System uploadfiles

Uploads your files to the origin server

System sound

Sets the wallpaper display mode

system sound get volume
// Set the osl "return" variable to the system volume from 0-100

system sound set volume
// Set the system volume from 0-100

System runtime

system runtime fps_limit 1-250
// Sets the maximum fps of the system

system runtime interpolate true/false
// Sets whether to use interpolation or not

System display

system display reset
// Resets all display effects

system display refresh
// Clears the screen cache

system display pixelated true/false
// Changes the screen mode. Most effective when the render resolution is low

system display get effect
// Sets the variable "return" to the effect data

system display set effect value
// Sets the canvas display effect to a value

Effects list:

blur
constrast
saturation
colour_shift
brightness
invert
sepia
scale_x
scale_y
skew_x
skew_y
offset_x
offset_y
rotation

System windows

system windows close app_name
// force quits an app

system windows add app_name
// opens an app

Font

font viewall

Grabs a list of all installable fonts

Screenshot 2024-02-13 at 14 02 42

font install name

Installs a specific font to your device

Screenshot 2024-02-13 at 14 03 28

font cleardata

clears your loaded character set

font use name

Applies a specific font to your loaded character set

Below I typed "font use cursed"

Terminal returned "Loaded Font Successfully"

Screenshot 2024-02-13 at 14 05 01

font viewinstalled

Returns a list of all the fonts you have installed

Screenshot 2024-02-13 at 14 06 23

originOS Wiki

Wiki Views:
:views

OSL | RSH | ICN

Clone this wiki locally