mirror of
https://github.com/lihop/godot-xterm.git
synced 2025-05-14 15:25:32 +02:00
Mouse tracking [wip]
Works with TERM=linux, does not work with TERM=xterm-256color. Will need to update libtsm to handle mouse events as there is an escape sequence to turn tracking on/off. Probably something similar to tsm_vte_handle_keyboard().
This commit is contained in:
parent
5f399ed46e
commit
8269fc90a2
4 changed files with 39 additions and 8 deletions
|
@ -174,7 +174,9 @@ func write(data) -> void:
|
|||
_write(data)
|
||||
|
||||
|
||||
func _write(data: String) -> void:
|
||||
func _write(data) -> void:
|
||||
assert(data is PoolByteArray or data is String)
|
||||
data = data if data is PoolByteArray else data.to_utf8()
|
||||
if _pipe:
|
||||
_pipe.write(data)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue