2019-06-15 22:22:44 +02:00
|
|
|
#pragma once
|
|
|
|
|
|
|
|
|
|
#include <stdint.h>
|
|
|
|
|
#include <stdbool.h>
|
|
|
|
|
#include <stddef.h>
|
|
|
|
|
|
2019-06-19 10:04:47 +02:00
|
|
|
#include <threads.h>
|
2019-07-29 20:13:26 +02:00
|
|
|
#include <semaphore.h>
|
2019-06-19 10:04:47 +02:00
|
|
|
|
2019-07-05 10:16:56 +02:00
|
|
|
#include <cairo.h>
|
2019-07-09 09:23:32 +02:00
|
|
|
#include <wayland-client.h>
|
2019-07-11 17:02:21 +02:00
|
|
|
#include <primary-selection-unstable-v1.h>
|
2019-06-19 10:04:47 +02:00
|
|
|
#include <xkbcommon/xkbcommon.h>
|
|
|
|
|
#include <xkbcommon/xkbcommon-keysyms.h>
|
|
|
|
|
|
2019-07-30 18:04:28 +02:00
|
|
|
#include "font.h"
|
2019-06-19 14:17:43 +02:00
|
|
|
#include "tllist.h"
|
|
|
|
|
|
2019-07-06 13:25:36 +02:00
|
|
|
#define likely(c) __builtin_expect(!!(c), 1)
|
|
|
|
|
#define unlikely(c) __builtin_expect(!!(c), 0)
|
|
|
|
|
|
2019-07-05 10:16:56 +02:00
|
|
|
struct wayland {
|
|
|
|
|
struct wl_display *display;
|
|
|
|
|
struct wl_registry *registry;
|
|
|
|
|
struct wl_compositor *compositor;
|
|
|
|
|
struct wl_surface *surface;
|
|
|
|
|
struct wl_shm *shm;
|
|
|
|
|
struct wl_seat *seat;
|
2019-07-11 12:16:50 +02:00
|
|
|
struct wl_data_device_manager *data_device_manager;
|
|
|
|
|
struct wl_data_device *data_device;
|
2019-07-11 17:02:21 +02:00
|
|
|
struct zwp_primary_selection_device_manager_v1 *primary_selection_device_manager;
|
|
|
|
|
struct zwp_primary_selection_device_v1 *primary_selection_device;
|
2019-07-05 10:16:56 +02:00
|
|
|
struct wl_keyboard *keyboard;
|
2019-07-05 10:44:09 +02:00
|
|
|
struct {
|
|
|
|
|
struct wl_pointer *pointer;
|
|
|
|
|
uint32_t serial;
|
|
|
|
|
|
|
|
|
|
struct wl_surface *surface;
|
|
|
|
|
struct wl_cursor_theme *theme;
|
|
|
|
|
struct wl_cursor *cursor;
|
|
|
|
|
} pointer;
|
2019-07-05 10:16:56 +02:00
|
|
|
struct xdg_wm_base *shell;
|
|
|
|
|
struct xdg_surface *xdg_surface;
|
|
|
|
|
struct xdg_toplevel *xdg_toplevel;
|
2019-07-08 16:12:02 +02:00
|
|
|
bool have_argb8888;
|
2019-07-05 10:16:56 +02:00
|
|
|
};
|
|
|
|
|
|
2019-07-16 13:19:17 +02:00
|
|
|
struct rgb { float r, g, b; };
|
2019-06-26 20:33:32 +02:00
|
|
|
|
2019-07-10 18:48:46 +02:00
|
|
|
/*
|
|
|
|
|
* Note: we want the cells to be as small as possible. Larger cells
|
|
|
|
|
* means fewer scrollback lines (or performance drops due to cache
|
|
|
|
|
* misses) */
|
2019-06-16 16:44:42 +02:00
|
|
|
struct attributes {
|
2019-07-07 22:03:08 +02:00
|
|
|
uint8_t bold:1;
|
2019-07-16 13:25:45 +02:00
|
|
|
uint8_t dim:1;
|
2019-07-07 22:03:08 +02:00
|
|
|
uint8_t italic:1;
|
|
|
|
|
uint8_t underline:1;
|
|
|
|
|
uint8_t strikethrough:1;
|
2019-07-16 13:17:51 +02:00
|
|
|
uint8_t blink:1;
|
2019-07-07 22:03:08 +02:00
|
|
|
uint8_t conceal:1;
|
|
|
|
|
uint8_t reverse:1;
|
2019-07-10 18:48:46 +02:00
|
|
|
|
2019-07-30 18:03:03 +02:00
|
|
|
uint32_t clean:1;
|
|
|
|
|
uint32_t foreground:31;
|
|
|
|
|
|
|
|
|
|
uint32_t reserved:1;
|
|
|
|
|
uint32_t background:31;
|
2019-07-07 22:03:08 +02:00
|
|
|
} __attribute__((packed));
|
2019-06-16 16:44:42 +02:00
|
|
|
|
|
|
|
|
struct cell {
|
|
|
|
|
struct attributes attrs;
|
2019-07-10 18:47:32 +02:00
|
|
|
char c[4];
|
2019-07-07 22:03:08 +02:00
|
|
|
} __attribute__((packed));
|
2019-06-15 22:22:44 +02:00
|
|
|
|
2019-06-25 20:11:08 +02:00
|
|
|
struct scroll_region {
|
|
|
|
|
int start;
|
|
|
|
|
int end;
|
|
|
|
|
};
|
|
|
|
|
|
2019-07-08 13:57:31 +02:00
|
|
|
struct coord {
|
2019-06-29 21:15:32 +02:00
|
|
|
int col;
|
2019-07-08 13:57:31 +02:00
|
|
|
int row;
|
2019-06-29 21:15:32 +02:00
|
|
|
};
|
|
|
|
|
|
2019-07-09 09:17:24 +02:00
|
|
|
enum damage_type {DAMAGE_SCROLL, DAMAGE_SCROLL_REVERSE};
|
2019-06-19 14:17:43 +02:00
|
|
|
struct damage {
|
|
|
|
|
enum damage_type type;
|
2019-07-09 09:17:24 +02:00
|
|
|
/* DAMAGE_SCROLL, DAMAGE_SCROLL_REVERSE */
|
|
|
|
|
struct {
|
|
|
|
|
struct scroll_region region;
|
|
|
|
|
int lines;
|
|
|
|
|
} scroll;
|
2019-06-19 14:17:43 +02:00
|
|
|
};
|
|
|
|
|
|
2019-07-08 13:57:31 +02:00
|
|
|
struct row {
|
|
|
|
|
struct cell *cells;
|
|
|
|
|
bool dirty;
|
|
|
|
|
};
|
|
|
|
|
|
2019-06-15 22:22:44 +02:00
|
|
|
struct grid {
|
2019-07-08 13:57:31 +02:00
|
|
|
int num_rows;
|
2019-07-10 16:27:55 +02:00
|
|
|
int num_cols;
|
2019-07-01 12:23:38 +02:00
|
|
|
int offset;
|
2019-07-09 16:26:36 +02:00
|
|
|
int view;
|
2019-06-29 21:23:36 +02:00
|
|
|
|
2019-07-08 13:57:31 +02:00
|
|
|
struct row **rows;
|
|
|
|
|
struct row *cur_row;
|
2019-06-15 22:22:44 +02:00
|
|
|
|
2019-06-19 14:17:43 +02:00
|
|
|
tll(struct damage) damage;
|
2019-06-25 20:11:08 +02:00
|
|
|
tll(struct damage) scroll_damage;
|
2019-06-15 22:22:44 +02:00
|
|
|
};
|
|
|
|
|
|
2019-06-23 14:12:20 +02:00
|
|
|
struct vt_subparams {
|
|
|
|
|
unsigned value[16];
|
2019-07-05 09:46:48 +02:00
|
|
|
size_t idx;
|
2019-06-23 14:12:20 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
|
|
struct vt_param {
|
|
|
|
|
unsigned value;
|
|
|
|
|
struct vt_subparams sub;
|
|
|
|
|
};
|
|
|
|
|
|
2019-06-15 22:22:44 +02:00
|
|
|
struct vt {
|
|
|
|
|
int state; /* enum state */
|
|
|
|
|
struct {
|
2019-06-23 14:12:20 +02:00
|
|
|
struct vt_param v[16];
|
2019-07-05 09:46:48 +02:00
|
|
|
size_t idx;
|
2019-06-15 22:22:44 +02:00
|
|
|
} params;
|
2019-07-19 09:56:59 +02:00
|
|
|
char private[2];
|
2019-06-15 22:22:44 +02:00
|
|
|
struct {
|
2019-07-19 08:59:35 +02:00
|
|
|
uint8_t *data;
|
|
|
|
|
size_t size;
|
2019-07-05 09:46:48 +02:00
|
|
|
size_t idx;
|
2019-06-15 22:22:44 +02:00
|
|
|
} osc;
|
|
|
|
|
struct {
|
|
|
|
|
uint8_t data[4];
|
2019-07-05 09:46:48 +02:00
|
|
|
size_t idx;
|
|
|
|
|
size_t left;
|
2019-06-15 22:22:44 +02:00
|
|
|
} utf8;
|
2019-06-16 16:44:42 +02:00
|
|
|
struct attributes attrs;
|
2019-07-04 19:23:25 +02:00
|
|
|
struct attributes saved_attrs;
|
2019-06-15 22:22:44 +02:00
|
|
|
};
|
|
|
|
|
|
2019-06-19 10:04:47 +02:00
|
|
|
struct kbd {
|
|
|
|
|
struct xkb_context *xkb;
|
|
|
|
|
struct xkb_keymap *xkb_keymap;
|
|
|
|
|
struct xkb_state *xkb_state;
|
2019-07-09 10:00:54 +02:00
|
|
|
struct xkb_compose_table *xkb_compose_table;
|
|
|
|
|
struct xkb_compose_state *xkb_compose_state;
|
2019-06-19 10:04:47 +02:00
|
|
|
struct {
|
|
|
|
|
mtx_t mutex;
|
|
|
|
|
cnd_t cond;
|
|
|
|
|
int trigger;
|
|
|
|
|
int pipe_read_fd;
|
|
|
|
|
int pipe_write_fd;
|
|
|
|
|
enum {REPEAT_STOP, REPEAT_START, REPEAT_EXIT} cmd;
|
|
|
|
|
|
|
|
|
|
bool dont_re_repeat;
|
|
|
|
|
int32_t delay;
|
|
|
|
|
int32_t rate;
|
|
|
|
|
uint32_t key;
|
|
|
|
|
} repeat;
|
2019-07-05 15:13:06 +02:00
|
|
|
|
|
|
|
|
xkb_mod_index_t mod_shift;
|
|
|
|
|
xkb_mod_index_t mod_alt;
|
|
|
|
|
xkb_mod_index_t mod_ctrl;
|
|
|
|
|
|
|
|
|
|
/* Enabled modifiers */
|
|
|
|
|
bool shift;
|
|
|
|
|
bool alt;
|
|
|
|
|
bool ctrl;
|
2019-06-19 10:04:47 +02:00
|
|
|
};
|
|
|
|
|
|
2019-07-09 11:07:06 +02:00
|
|
|
enum cursor_keys { CURSOR_KEYS_DONTCARE, CURSOR_KEYS_NORMAL, CURSOR_KEYS_APPLICATION};
|
|
|
|
|
enum keypad_keys { KEYPAD_DONTCARE, KEYPAD_NUMERICAL, KEYPAD_APPLICATION };
|
2019-07-04 19:17:18 +02:00
|
|
|
enum charset { CHARSET_ASCII, CHARSET_GRAPHIC };
|
2019-06-23 14:12:20 +02:00
|
|
|
|
2019-07-05 14:24:51 +02:00
|
|
|
/* *What* to report */
|
|
|
|
|
enum mouse_tracking {
|
|
|
|
|
MOUSE_NONE,
|
|
|
|
|
MOUSE_X10, /* ?9h */
|
|
|
|
|
MOUSE_CLICK, /* ?1000h - report mouse clicks*/
|
|
|
|
|
MOUSE_DRAG, /* ?1002h - report clicks and drag motions */
|
|
|
|
|
MOUSE_MOTION, /* ?1003h - report clicks and motion*/
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
/* *How* to report */
|
|
|
|
|
enum mouse_reporting {
|
|
|
|
|
MOUSE_NORMAL,
|
|
|
|
|
MOUSE_UTF8, /* ?1005h */
|
|
|
|
|
MOUSE_SGR, /* ?1006h */
|
|
|
|
|
MOUSE_URXVT, /* ?1015h */
|
|
|
|
|
};
|
|
|
|
|
|
2019-07-11 12:16:50 +02:00
|
|
|
struct clipboard {
|
|
|
|
|
struct wl_data_source *data_source;
|
|
|
|
|
struct wl_data_offer *data_offer;
|
|
|
|
|
char *text;
|
|
|
|
|
uint32_t serial;
|
|
|
|
|
};
|
|
|
|
|
|
2019-07-11 17:02:21 +02:00
|
|
|
struct primary {
|
|
|
|
|
struct zwp_primary_selection_source_v1 *data_source;
|
|
|
|
|
struct zwp_primary_selection_offer_v1 *data_offer;
|
|
|
|
|
char *text;
|
|
|
|
|
uint32_t serial;
|
|
|
|
|
};
|
|
|
|
|
|
2019-07-22 20:15:14 +02:00
|
|
|
enum cursor_style { CURSOR_BLOCK, CURSOR_UNDERLINE, CURSOR_BAR };
|
|
|
|
|
|
2019-06-15 22:22:44 +02:00
|
|
|
struct terminal {
|
2019-06-19 10:04:47 +02:00
|
|
|
pid_t slave;
|
2019-06-17 18:57:12 +02:00
|
|
|
int ptmx;
|
2019-07-05 10:16:56 +02:00
|
|
|
bool quit;
|
2019-06-29 21:03:28 +02:00
|
|
|
|
2019-07-09 11:07:06 +02:00
|
|
|
enum cursor_keys cursor_keys_mode;
|
|
|
|
|
enum keypad_keys keypad_keys_mode;
|
2019-07-05 20:12:40 +02:00
|
|
|
bool reverse;
|
2019-07-03 21:16:41 +02:00
|
|
|
bool hide_cursor;
|
|
|
|
|
bool auto_margin;
|
|
|
|
|
bool insert_mode;
|
2019-06-22 22:25:50 +02:00
|
|
|
bool bracketed_paste;
|
2019-07-16 10:34:08 +02:00
|
|
|
bool focus_events;
|
2019-07-05 14:24:51 +02:00
|
|
|
enum mouse_tracking mouse_tracking;
|
|
|
|
|
enum mouse_reporting mouse_reporting;
|
2019-06-29 21:03:28 +02:00
|
|
|
|
2019-07-04 19:17:18 +02:00
|
|
|
int selected_charset;
|
|
|
|
|
enum charset charset[4]; /* G0-G3 */
|
2019-07-21 17:35:53 +02:00
|
|
|
char *window_title;
|
2019-07-21 17:48:06 +02:00
|
|
|
tll(char *) window_title_stack;
|
2019-07-04 19:17:18 +02:00
|
|
|
|
2019-07-22 19:15:56 +02:00
|
|
|
struct {
|
|
|
|
|
bool active;
|
|
|
|
|
int fd;
|
|
|
|
|
} flash;
|
2019-07-21 19:14:19 +02:00
|
|
|
|
2019-07-22 19:17:57 +02:00
|
|
|
struct {
|
|
|
|
|
bool active;
|
|
|
|
|
enum { BLINK_ON, BLINK_OFF } state;
|
|
|
|
|
int fd;
|
|
|
|
|
} blink;
|
2019-07-21 20:11:20 +02:00
|
|
|
|
2019-06-15 22:22:44 +02:00
|
|
|
struct vt vt;
|
2019-06-19 10:04:47 +02:00
|
|
|
struct kbd kbd;
|
2019-06-29 21:08:08 +02:00
|
|
|
|
2019-07-05 10:16:56 +02:00
|
|
|
int width; /* pixels */
|
|
|
|
|
int height; /* pixels */
|
|
|
|
|
int cols; /* number of columns */
|
|
|
|
|
int rows; /* number of rows */
|
|
|
|
|
int cell_width; /* pixels per cell, x-wise */
|
|
|
|
|
int cell_height; /* pixels per cell, y-wise */
|
2019-06-29 21:08:08 +02:00
|
|
|
|
2019-06-29 21:16:06 +02:00
|
|
|
bool print_needs_wrap;
|
2019-06-29 21:08:08 +02:00
|
|
|
struct scroll_region scroll_region;
|
|
|
|
|
|
2019-07-21 10:58:09 +02:00
|
|
|
struct {
|
|
|
|
|
uint32_t fg;
|
|
|
|
|
uint32_t bg;
|
|
|
|
|
uint32_t regular[8];
|
|
|
|
|
uint32_t bright[8];
|
|
|
|
|
|
|
|
|
|
uint32_t default_fg;
|
2019-07-21 11:06:28 +02:00
|
|
|
uint32_t default_bg;
|
2019-07-21 10:58:09 +02:00
|
|
|
uint32_t default_regular[8];
|
2019-07-21 11:06:28 +02:00
|
|
|
uint32_t default_bright[8];
|
2019-07-21 10:58:09 +02:00
|
|
|
} colors;
|
2019-06-29 21:15:32 +02:00
|
|
|
|
2019-07-05 10:44:57 +02:00
|
|
|
struct {
|
2019-07-05 15:13:06 +02:00
|
|
|
int col;
|
2019-07-08 13:57:31 +02:00
|
|
|
int row;
|
2019-07-05 15:13:06 +02:00
|
|
|
int button;
|
2019-07-17 21:30:57 +02:00
|
|
|
|
|
|
|
|
int last_button;
|
|
|
|
|
struct timeval last_time;
|
2019-07-26 18:47:56 +02:00
|
|
|
|
|
|
|
|
/* We used a discrete axis event in the current pointer frame */
|
|
|
|
|
bool have_discrete;
|
2019-07-05 10:44:57 +02:00
|
|
|
} mouse;
|
|
|
|
|
|
2019-07-08 13:57:31 +02:00
|
|
|
struct coord cursor;
|
|
|
|
|
struct coord saved_cursor;
|
|
|
|
|
struct coord alt_saved_cursor;
|
2019-07-22 20:19:27 +02:00
|
|
|
enum cursor_style default_cursor_style;
|
2019-07-22 20:15:14 +02:00
|
|
|
enum cursor_style cursor_style;
|
2019-07-22 19:44:21 +02:00
|
|
|
bool cursor_blinking;
|
2019-07-23 18:54:58 +02:00
|
|
|
struct {
|
|
|
|
|
uint32_t text;
|
|
|
|
|
uint32_t cursor;
|
|
|
|
|
} default_cursor_color;
|
|
|
|
|
struct {
|
|
|
|
|
uint32_t text;
|
|
|
|
|
uint32_t cursor;
|
|
|
|
|
} cursor_color;
|
2019-06-29 21:23:36 +02:00
|
|
|
|
2019-07-19 11:11:48 +02:00
|
|
|
uint32_t input_serial;
|
2019-07-10 20:57:09 +02:00
|
|
|
struct {
|
|
|
|
|
struct coord start;
|
|
|
|
|
struct coord end;
|
2019-07-11 12:16:50 +02:00
|
|
|
struct clipboard clipboard;
|
2019-07-11 17:02:21 +02:00
|
|
|
struct primary primary;
|
2019-07-10 20:57:09 +02:00
|
|
|
} selection;
|
|
|
|
|
|
2019-06-29 21:23:36 +02:00
|
|
|
struct grid normal;
|
|
|
|
|
struct grid alt;
|
|
|
|
|
struct grid *grid;
|
2019-07-05 10:16:56 +02:00
|
|
|
|
2019-07-16 14:20:39 +02:00
|
|
|
struct font fonts[4];
|
2019-07-28 12:39:56 +02:00
|
|
|
struct {
|
|
|
|
|
int height;
|
|
|
|
|
int descent;
|
|
|
|
|
int ascent;
|
|
|
|
|
int max_x_advance;
|
|
|
|
|
} fextents;
|
2019-07-05 10:16:56 +02:00
|
|
|
|
|
|
|
|
struct wayland wl;
|
2019-07-24 20:11:49 +02:00
|
|
|
struct {
|
|
|
|
|
struct wl_callback *frame_callback;
|
2019-07-24 20:21:41 +02:00
|
|
|
|
2019-07-29 20:13:26 +02:00
|
|
|
struct {
|
|
|
|
|
size_t count;
|
|
|
|
|
sem_t start;
|
|
|
|
|
sem_t done;
|
|
|
|
|
cnd_t cond;
|
|
|
|
|
mtx_t lock;
|
|
|
|
|
tll(int) queue;
|
|
|
|
|
thrd_t *threads;
|
|
|
|
|
struct buffer *buf;
|
|
|
|
|
} workers;
|
|
|
|
|
|
2019-07-24 20:21:41 +02:00
|
|
|
/* Last rendered cursor position */
|
|
|
|
|
struct {
|
|
|
|
|
struct coord actual; /* Absolute */
|
|
|
|
|
struct coord in_view; /* Offset by view */
|
2019-07-30 20:18:20 +02:00
|
|
|
struct cell *cell; /* For easy access to content */
|
2019-07-24 20:21:41 +02:00
|
|
|
} last_cursor;
|
|
|
|
|
|
|
|
|
|
struct buffer *last_buf; /* Buffer we rendered to last time */
|
|
|
|
|
bool was_flashing; /* Flash was active last time we rendered */
|
2019-07-24 20:11:49 +02:00
|
|
|
} render;
|
2019-06-15 22:22:44 +02:00
|
|
|
};
|
2019-06-29 21:03:28 +02:00
|
|
|
|
2019-07-11 09:51:51 +02:00
|
|
|
void term_damage_rows(struct terminal *term, int start, int end);
|
|
|
|
|
void term_damage_rows_in_view(struct terminal *term, int start, int end);
|
|
|
|
|
|
2019-06-29 21:03:28 +02:00
|
|
|
void term_damage_all(struct terminal *term);
|
2019-07-10 14:32:40 +02:00
|
|
|
void term_damage_view(struct terminal *term);
|
2019-07-11 09:51:51 +02:00
|
|
|
|
2019-06-29 21:03:28 +02:00
|
|
|
void term_damage_scroll(
|
|
|
|
|
struct terminal *term, enum damage_type damage_type,
|
|
|
|
|
struct scroll_region region, int lines);
|
|
|
|
|
|
2019-07-08 13:57:31 +02:00
|
|
|
void term_erase(
|
|
|
|
|
struct terminal *term, const struct coord *start, const struct coord *end);
|
2019-06-29 21:03:28 +02:00
|
|
|
|
|
|
|
|
void term_cursor_to(struct terminal *term, int row, int col);
|
|
|
|
|
void term_cursor_left(struct terminal *term, int count);
|
|
|
|
|
void term_cursor_right(struct terminal *term, int count);
|
|
|
|
|
void term_cursor_up(struct terminal *term, int count);
|
|
|
|
|
void term_cursor_down(struct terminal *term, int count);
|
|
|
|
|
|
|
|
|
|
void term_scroll(struct terminal *term, int rows);
|
|
|
|
|
void term_scroll_reverse(struct terminal *term, int rows);
|
|
|
|
|
|
|
|
|
|
void term_scroll_partial(
|
|
|
|
|
struct terminal *term, struct scroll_region region, int rows);
|
|
|
|
|
void term_scroll_reverse_partial(
|
|
|
|
|
struct terminal *term, struct scroll_region region, int rows);
|
|
|
|
|
|
2019-07-10 16:02:03 +02:00
|
|
|
void term_linefeed(struct terminal *term);
|
|
|
|
|
void term_reverse_index(struct terminal *term);
|
|
|
|
|
|
2019-07-23 17:57:07 +02:00
|
|
|
void term_restore_cursor(struct terminal *term);
|
|
|
|
|
|
2019-07-16 10:34:08 +02:00
|
|
|
void term_focus_in(struct terminal *term);
|
|
|
|
|
void term_focus_out(struct terminal *term);
|
2019-07-05 14:24:51 +02:00
|
|
|
void term_mouse_down(struct terminal *term, int button, int row, int col,
|
|
|
|
|
bool shift, bool alt, bool ctrl);
|
|
|
|
|
void term_mouse_up(struct terminal *term, int button, int row, int col,
|
|
|
|
|
bool shift, bool alt, bool ctrl);
|
2019-07-05 15:13:06 +02:00
|
|
|
void term_mouse_motion(struct terminal *term, int button, int row, int col,
|
|
|
|
|
bool shift, bool alt, bool ctrl);
|
2019-07-21 17:35:53 +02:00
|
|
|
|
|
|
|
|
void term_set_window_title(struct terminal *term, const char *title);
|
2019-07-30 22:06:02 +02:00
|
|
|
void term_flash(struct terminal *term, unsigned duration_ms);
|