🧩Console Wrappers
Make your console more powerful
Nitrocid KS currently provides you with a console wrapper that allows you to wrap the console functions to the console driver. That driver is itself a delegate to the actual console driver functions, which you can learn more about by clicking on the below page:
🔌Kernel DriversThe console wrappers allow you to call compatible console functions to simplify the syntax of calling the console driver functions, which are available below:
CursorLeftThe cursor left position
CursorTopThe cursor top position
WindowWidthThe console window width (columns)
WindowHeightThe console window height (rows)
WindowTopThe console window topmost position
BufferWidthThe console buffer width (columns)
BufferHeightThe console buffer height (rows)
CursorVisibleThe console cursor visibility
OutputEncodingThe console output encoding (Windows only)
InputEncodingThe console input encoding (Windows only)
TreatCtrlCAsInputWhether to treat CTRL + C as input or not
KeyAvailableWhether a key is pressed or not
Clear()Clears the console screen, optionally filling it with the selected background
SetCursorPosition()Sets the cursor position
ResetColor()Resets the console colors
OpenStandardInput()Opens the standard input stream
OpenStandardOutput()Opens the standard output stream
OpenStandardError()Opens the standard error stream
SetOut()Sets the console output stream
Beep()Beeps the console
ReadKey()Reads a key if it is not available or gets a key if it is available
Write()Writes text to the console
WriteLine()Writes text to the console with a trailing newline
More information about console wrappers can be found in the Terminaux manual.
Console WrapperHow do I wrap the console?Last updated