xtd - Reference Guide  0.1.1
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 }
console_special_key
Specifies combinations of modifier and console keys that can interrupt the current process.
Definition: console_special_key.h:18
std::string to_string(const value_t &value, const std::string &fmt, const std::locale &loc)
Convert a specified value into a string with specified format and locale.
Definition: to_string.h:37
@ control_z
The console_modifiers::control modifier key plus the console_key Z console key.
@ control_backslash
The console_modifiers::control modifier key plus the console_key \ console key.
@ control_break
The console_modifiers::control modifier key plus the BREAK console key.
@ control_c
The console_modifiers::control modifier key plus the console_key C console key.
The xtd namespace contains all fundamental classes to access Hardware, Os, System,...
Definition: system_report.h:17
Contains xtd::ustring class.