xtd - Reference Guide  0.2.0
Modern c++17/20 framework to create console, GUI and unit test applications on Windows, macOS, Linux, iOS and android.
console_special_key.h
Go to the documentation of this file.
1 #pragma once
5 #include <sstream>
6 #include "ustring.h"
7 
9 namespace xtd {
18  enum class console_special_key {
22  control_c,
26  control_z,
27  };
28 
30  inline std::ostream& operator<<(std::ostream& os, console_special_key value) {return os << to_string(value, {{console_special_key::control_break, "control_break"}, {console_special_key::control_c, "control_c"}, {console_special_key::control_backslash, "control_backslash"}, {console_special_key::control_z, "control_z"}});}
31  inline std::wostream& operator<<(std::wostream& os, console_special_key value) {return os << to_string(value, {{console_special_key::control_break, L"control_break"}, {console_special_key::control_c, L"control_c"}, {console_special_key::control_backslash, L"control_backslash"}, {console_special_key::control_z, L"control_z"}});}
33 }
The xtd namespace contains all fundamental classes to access Hardware, Os, System, and more.
Definition: system_report.h:17
std::string to_string(const date_time &value, const std::string &fmt, const std::locale &loc)
Convert a specified value into a string with specified format and locale.
Definition: date_time.h:1110
console_special_key
Specifies combinations of modifier and console keys that can interrupt the current process...
Definition: console_special_key.h:18
The console_modifiers::control modifier key plus the console_key C console key.
The console_modifiers::control modifier key plus the console_key Z console key.
Contains xtd::ustring class.
The console_modifiers::control modifier key plus the console_key \ console key.
The console_modifiers::control modifier key plus the BREAK console key.