Return to homepage

DOSATO

Copyright © 2024 Sebastiaan Heins

3.7 System

Functions

void clear ()

Clears the console.
Same as cls on windows or clear on unix.

void end (int code = 0)

Exits the program with the given exit code.

void pause ()

Waits for the user to press enter.
It simulates the pause command on windows. On unix it acts the same.

int system (string command)

Executes the given command on the system.
It returns the exit code of the command.