Module read

Module read 

Source
Expand description

A Cross Platform Read Implementation

This module provides functions for reading keys and waiting for key presses until a specified timeout, allowing your console application to handle keyboard events consistently across platforms.

Modules§

unix
Contains Unix-specific implementation details for reading keyboard input. It uses the libc crate to manipulate terminal attributes.

Enums§

Key
Represents different keyboard keys that can be captured by the read_key function.

Functions§

key_pressed_within
Waits for a key press for up to the specified timeout duration.
read_key
Reads a single key event from the console input and returns a Key enum.