mirror of
https://git.tesses.org/tesses50/tessesframework.git
synced 2026-06-01 18:15:31 +00:00
Overhaul cmake configuration, add console api, fix http code that caused issues with cgi-bin
This commit is contained in:
20
examples/console-raw.cpp
Normal file
20
examples/console-raw.cpp
Normal file
@@ -0,0 +1,20 @@
|
||||
#include "TessesFramework/TessesFramework.hpp"
|
||||
|
||||
int main(int argc, char** argv)
|
||||
{
|
||||
using namespace Tesses::Framework;
|
||||
TF_Init();
|
||||
Console::WriteLine("Press q to quit");
|
||||
Console::SetEcho(false);
|
||||
Console::SetCanonical(false);
|
||||
while(int r = Console::Read())
|
||||
{
|
||||
if(r == 'q')
|
||||
{
|
||||
break;
|
||||
}
|
||||
Console::WriteLine(std::to_string(r));
|
||||
}
|
||||
Console::SetCanonical(true);
|
||||
Console::SetEcho(true);
|
||||
}
|
||||
Reference in New Issue
Block a user