buckaroo install boost/asio
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <iostream> | |
int main() { | |
std::cout << "\e[31m" << "Hello" << "\e[0m" << World" << std::endl; | |
return 0; | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
unsigned const terminalWidth = 80; | |
int main() { | |
VirtualTerminal vt; | |
auto const fancyCounter = [](auto start, auto end, auto i) -> FlowLayout<> { | |
return { | |
Text("counting from "), Text({ Font::Bold }, start), | |
Text(" to "), Text({ Font::Bold }, end), | |
Text(": i="), Text({ FgColor::Red, Font::Underline }, i) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
counting from 1 to 10: i=1 [#_________] | |
counting from 1 to 10: i=2 [##________] | |
counting from 1 to 10: i=3 [###_______] | |
counting from 1 to 10: i=4 [####______] | |
counting from 1 to 10: i=5 [#####_____] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Pseudo-code | |
function updateProgressBar() { | |
print (eraseCharEscapeCode * lastProgressBarLength); | |
print (‘#’ * progressBarLength); | |
lastProgressBarLength = progressBarLength; | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
curl http://www.openss7.org/repos/tarballs/strx25-0.9.2.1.tar.bz2 > /dev/null |
A requires B
A requires C
B requires D
C requires D
A v1
B v1
C v2
A v1 requires B v1
A v1 requires C v2
B v1 requires C v1–3