std/console
Writing to the two standard streams. panic is not here but in std/core: half of std/core calls it
(Result.expect, every out-of-bounds index), and a package that everything depends on must not depend on this one.
Modules
std/console/libWriting to the two standard streams.
Everything
- fn
installInterruptHandlerFrom this call on, Ctrl+C sets the flag [interrupted] answers and clears, instead of ending the process. - fn
interruptedWhether Ctrl+C arrived since the last call to this or to [installInterruptHandler], which this also clears. - fn
isTerminalWhether standard output is a live terminal - a console, not a pipe or a file. - fn
printWrites the values to standard output, separated by spaces, followed by a line break. - fn
printErrorThe same for standard error: diagnostics, progress, everything that is not the result of the program. - fn
printErrorRawtextto standard error exactly as given: no join with a later call, no line break.