Compare commits
2 Commits
d6ac23e5ae
...
bf48bc3565
Author | SHA1 | Date | |
---|---|---|---|
bf48bc3565 | |||
aad373a5b5 |
@ -12,7 +12,7 @@ PRODUCT := lib
|
|||||||
|
|
||||||
# Single source of truth for version.
|
# Single source of truth for version.
|
||||||
MAJOR := 1
|
MAJOR := 1
|
||||||
MINOR := 4
|
MINOR := 5
|
||||||
PATCH := 0
|
PATCH := 0
|
||||||
|
|
||||||
# Specify desired C++ standard for this project.
|
# Specify desired C++ standard for this project.
|
||||||
|
@ -46,6 +46,12 @@ std::ostream& sc::io::show_cursor(std::ostream& out) {
|
|||||||
return out;
|
return out;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
std::ostream& sc::io::clear_screen(std::ostream& out) {
|
||||||
|
if (should_color(out))
|
||||||
|
out << "\x1b" << 'c';
|
||||||
|
return out;
|
||||||
|
}
|
||||||
|
|
||||||
std::ostream& sc::io::reset(std::ostream& out) {
|
std::ostream& sc::io::reset(std::ostream& out) {
|
||||||
if (should_color(out))
|
if (should_color(out))
|
||||||
out << "\x1b[m";
|
out << "\x1b[m";
|
||||||
|
@ -11,6 +11,7 @@ namespace sc {
|
|||||||
std::ostream& hide_cursor(std::ostream& out);
|
std::ostream& hide_cursor(std::ostream& out);
|
||||||
std::ostream& show_cursor(std::ostream& out);
|
std::ostream& show_cursor(std::ostream& out);
|
||||||
|
|
||||||
|
std::ostream& clear_screen(std::ostream& out);
|
||||||
std::ostream& reset(std::ostream& out);
|
std::ostream& reset(std::ostream& out);
|
||||||
|
|
||||||
std::ostream& bold(std::ostream& out);
|
std::ostream& bold(std::ostream& out);
|
||||||
|
Reference in New Issue
Block a user