mirror of
https://github.com/lihop/godot-xterm.git
synced 2025-07-05 13:15:32 +02:00
feat(term): implement copy_selection()
Implements the copy_selection() method, which returns the selected text. Adds a copy_on_selection property. When this property is enabled, the selected text will automatically be copied to the primary clipboard (Linux X11/Wayland only).
This commit is contained in:
parent
7f03761fb2
commit
13cf5ba023
3 changed files with 45 additions and 4 deletions
|
@ -71,6 +71,10 @@ namespace godot
|
|||
void set_blink_off_time(const double p_blink_off_time);
|
||||
double get_blink_off_time() const;
|
||||
|
||||
String copy_selection();
|
||||
void set_copy_on_selection(const bool p_enable);
|
||||
bool get_copy_on_selection() const;
|
||||
|
||||
void set_inverse_mode(const int mode);
|
||||
int get_inverse_mode() const;
|
||||
|
||||
|
@ -89,6 +93,8 @@ namespace godot
|
|||
double blink_on_time;
|
||||
double blink_off_time;
|
||||
|
||||
bool copy_on_selection;
|
||||
|
||||
InverseMode inverse_mode;
|
||||
|
||||
RenderingServer *rs;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue