Fast and reasonably complete (framebuffer) terminal emulator (Zig fork)

Add get/set_oob_output()

mintsuki 14db72d3 1bf4fbe5

Changed files
+10
+8
flanterm.c
···
void flanterm_set_callback(struct flanterm_context *ctx, void (*callback)(struct flanterm_context *, uint64_t, uint64_t, uint64_t, uint64_t)) {
ctx->callback = callback;
+
+
uint64_t flanterm_get_oob_output(struct flanterm_context *ctx) {
+
return ctx->oob_output;
+
}
+
+
void flanterm_set_oob_output(struct flanterm_context *ctx, uint64_t oob_output) {
+
ctx->oob_output = oob_output;
+
}
+2
flanterm.h
···
void flanterm_get_dimensions(struct flanterm_context *ctx, size_t *rows, size_t *cols);
void flanterm_set_autoflush(struct flanterm_context *ctx, bool state);
void flanterm_set_callback(struct flanterm_context *ctx, void (*callback)(struct flanterm_context *, uint64_t, uint64_t, uint64_t, uint64_t));
+
uint64_t flanterm_get_oob_output(struct flanterm_context *ctx);
+
void flanterm_set_oob_output(struct flanterm_context *ctx, uint64_t oob_output);
#ifdef __cplusplus
}