|
CX Framework
Cross-platform C utility framework
|
Console streams, capability detection, and buffered output. More...
#include <cx/cx.h>#include <cx/meta/block.h>#include <cx/string/strbase.h>#include <cx/stype/stvar.h>#include <cx/utils/macros/args.h>Go to the source code of this file.
Data Structures | |
| struct | ConCaps |
Macros | |
| #define | withConLock(con) blkWrap (conLock(con), conUnlock(con)) |
Typedefs | |
| typedef struct ConStream | ConStream |
| typedef enum ConColorDepth | ConColorDepth |
| Color depth a stream is able to render. | |
| typedef struct ConCaps | ConCaps |
Enumerations | |
| enum | ConColorDepth { CON_ColorNone = 0 , CON_Color16 , CON_Color256 , CON_ColorTrue } |
| Color depth a stream is able to render. More... | |
Functions | |
| ConStream * | conOut (void) |
| ConStream * | conErr (void) |
| ConStream * | conIn (void) |
| void | conShutdown (void) |
| ConStream * | conCreateMem (const ConCaps *caps) |
| void | conMemGet (ConStream *con, string *out) |
| void | conDestroy (ConStream **con) |
| void | conGetCaps (ConStream *con, ConCaps *out) |
| uint16 | conWidth (ConStream *con) |
| Current terminal width in columns, re-queried on every call. 0 if unknown or not a tty. | |
| uint16 | conHeight (ConStream *con) |
| Current terminal height in rows, re-queried on every call. 0 if unknown or not a tty. | |
| void | conLock (ConStream *con) |
| void | conUnlock (ConStream *con) |
| bool | conWrite (ConStream *con, const void *buf, size_t sz) |
| bool | conPuts (ConStream *con, strref s) |
| bool | conPutsz (ConStream *con, const char *sz) |
| bool | conPutc (ConStream *con, int32 codepoint) |
| bool | conNL (ConStream *con) |
| bool | conFlush (ConStream *con) |
| bool | _conFmt (ConStream *con, strref fmt, int n, stvar *args) |
Console streams, capability detection, and buffered output.
Definition in file console.h.