CTLSEQS_READER_CONFIG(3) | ctlseqs | CTLSEQS_READER_CONFIG(3) |
#include <ctlseqs.h>
int ctlseqs_reader_config( struct ctlseqs_reader *reader, struct ctlseqs_reader_options const *options );
The options argument is a pointer to a struct ctlseqs_reader_options, as shown below:
struct ctlseqs_reader_options { union ctlseqs_value *result; size_t maxlen; int fd; unsigned flags; };
Field result is the pointer to the buffer where the values extracted from the matching sequence of ctlseqs_read will be stored.
Field maxlen specifies the maximum possible length (in bytes) of control sequence to be read.
Field fd is the file descriptor to read from.
Field flags is the bit mask of multiple boolean options.
Copying and distribution of this file, with or without modification, are permitted in any medium without royalty, provided the copyright notice and this notice are preserved. This file is offered as-is, without any warranty.
September 1, 2020 | 0.1.0 |