Shows how to use xtd::console::key_available and xtd::console::read_key methods.
#include <xtd/threading/thread>
#include <xtd/console>
auto main() -> int {
do {
}
Specifies the standard keys on a console.
Definition console_key_info.hpp:24
static console_key_info read_key()
Obtains the next character or function key pressed by the user. The pressed key is displayed in the c...
static bool key_available()
Gets a value indicating whether a key press is available in the input stream.
static void write_line()
Writes the current line terminator to the standard output stream using the specified format informati...
static void sleep(int32 milliseconds_timeout)
Suspends the current thread for a specified time.
@ x
The X key.
Definition console_key.hpp:134
The xtd::threading namespace provides classes and interfaces that enable multithreaded programming....
Definition abandoned_mutex_exception.hpp:10
The xtd namespace contains all fundamental classes to access Hardware, Os, System,...
Definition abstract_object.hpp:8