You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
SashaCrofter edited this page Jul 18, 2012
·
2 revisions
The DASH Shell is essential to cubeOS's function. It acts as an interpreter for ASCII commands, which are passed to the package manager in order to directly execute subroutines, and also handles keyboard input.
Usage
At the prompt, the user can use an attached Generic Keyboard to input ASCII and control characters.
Control Characters
Control + Delete
Restarts the DASH Shell by calling s.instance.
Subroutines
s.instance
Prepares a new terminal session at the root directory.
s.takeIn (cursorPointer)
Writes a prompt to the screen using v.sPrompt and enters a loop to take ASCII input from the keyboard and write it to the screen at cursorPointer. It exits when the user presses enter.
returns the cursor location on exit
s.parse
This subroutine isolates the first argument in v.stdin by scanning through, then stopping on null or 0x20. Then, it gets the crp.sum of the string. Then, it calls p.lookup, sets B to the location of stdin, and invokes the subroutine returned by p.lookup.
s.stdin (startPointer)
Performs a C-style copy from startPointer to v.stdin, replacing un-(single)quoted spaces with zeros.
s.stdout (outputPointer)
Does a C-style copy from v.stdout to outputPointer.