xieite ::term ::canon ()
Defined in header <xieite/io/term.hpp>
Enables or disables canonical input (reading input without waiting for a newline).
Declaration
void canon (bool x )noexcept ;
Example
Possible output:int main () {using namespace std ::literals ;xieite ::term term ;term .canon (false );std ::this_thread ::sleep_for (5 s);std ::puts (term .read_str ().c_str ()); }
Hello, world!