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:
Leroy Hopson 2021-07-23 13:03:43 +07:00
parent 5f399ed46e
commit 8269fc90a2
No known key found for this signature in database
GPG key ID: D2747312A6DB51AA
4 changed files with 39 additions and 8 deletions

View file

@ -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)