marcel_os::cli

Function cli

Source
pub async fn cli()
Expand description

The asynchronous CLI handler that listens for keyboard input and processes commands.

This function:

  • Waits for keypresses from the user via the ScancodeStream.
  • Handles the user input, including backspace and newlines.
  • Parses the entered command and calls the respective handler.

The CLI runs in a loop, continually waiting for and processing commands until a command is processed.