mirror of
https://github.com/lihop/godot-xterm.git
synced 2025-07-05 13:15:32 +02:00
Re-add bell support
This commit is contained in:
parent
07687e2cd8
commit
fd2c33c486
2 changed files with 63 additions and 0 deletions
|
@ -9,6 +9,7 @@
|
|||
#include <godot_cpp/classes/image_texture.hpp>
|
||||
#include <godot_cpp/classes/rendering_server.hpp>
|
||||
#include <godot_cpp/classes/shader_material.hpp>
|
||||
#include <godot_cpp/classes/timer.hpp>
|
||||
#include <libtsm.h>
|
||||
|
||||
namespace godot
|
||||
|
@ -62,6 +63,12 @@ namespace godot
|
|||
void set_max_scrollback(const int p_max_scrollback);
|
||||
int get_max_scrollback() const;
|
||||
|
||||
void set_bell_muted(const bool p_bell_muted);
|
||||
bool get_bell_muted() const;
|
||||
|
||||
void set_bell_cooldown(const double p_bell_cooldown);
|
||||
double get_bell_cooldown() const;
|
||||
|
||||
void set_blink_on_time(const float p_blink_on_time);
|
||||
float get_blink_on_time() const;
|
||||
|
||||
|
@ -97,6 +104,11 @@ namespace godot
|
|||
static void _write_cb(struct tsm_vte *vte, const char *u8, size_t len,
|
||||
void *data);
|
||||
|
||||
bool bell_muted;
|
||||
double bell_cooldown;
|
||||
Timer* bell_timer;
|
||||
static void _bell_cb(struct tsm_vte *vte, void *data);
|
||||
|
||||
static int _draw_cb(struct tsm_screen *con, uint64_t id, const uint32_t *ch,
|
||||
size_t len, unsigned int width, unsigned int posx,
|
||||
unsigned int posy, const struct tsm_screen_attr *attr,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue