Overhaul cmake configuration, add console api, fix http code that caused issues with cgi-bin

This commit is contained in:
2026-05-27 03:02:16 -05:00
parent 266ef5f830
commit 8413c67ec6
177 changed files with 20088 additions and 17948 deletions

31
examples/console-list.cpp Normal file
View File

@@ -0,0 +1,31 @@
#include "TessesFramework/TessesFramework.hpp"
int main(int argc, char** argv)
{
using namespace Tesses::Framework;
using namespace Tesses::Framework::TextStreams;
TF_Init();
std::vector<std::string> myList = {
"Demi Lovato",
"The Gremlins",
"Al Gore",
"Steve Ballmer",
"CrossLang",
"Tom Scott",
"Louis Rossmann",
"Mike Nolan",
"Tim Cook"
};
auto res = Console::List(myList);
if(res > myList.size())
{
Console::WriteLine("You must select one");
}
else {
StdOut() << "You selected " << myList[res] << "." << NewLine();
}
return 0;
}