osmanip
Library with useful output stream tools like: color and style manipulators, progress bars and terminal graphics.
windows.hpp
Go to the documentation of this file.
1 //====================================================
2 // File data
3 //====================================================
13 //====================================================
14 // Preprocessor settings
15 //====================================================
16 #pragma once
17 #ifndef OSMANIP_UTILITY_WINDOWS_HPP
18 #define OSMANIP_UTILITY_WINDOWS_HPP
19 
20 //====================================================
21 // Headers
22 //====================================================
23 
24 // STD headers
25 #include <string>
26 
27 namespace osm {
28 
29  //====================================================
30  // Variables
31  //====================================================
32  extern std::string old_chcp;
33 
34  //====================================================
35  // Functions
36  //====================================================
37  extern void enableANSI();
38  extern void disableANSI();
39  extern void enableUNICODE();
40  extern void disableUNICODE();
41 } // namespace osm
42 
43 #endif
Definition: canvas.cpp:30
void disableUNICODE()
Function used to disable UNICODE characters (used for Windows only).
Definition: windows.cpp:125
void enableANSI()
Function used to enable ANSI escape sequences on Windows.
Definition: windows.cpp:59
std::string old_chcp
Definition: windows.cpp:48
void enableUNICODE()
Function used to enable UNICODE characters (used for Windows only).
Definition: windows.cpp:109
void disableANSI()
Function used to disable ANSI escape sequences on Windows.
Definition: windows.cpp:90