mirror of
https://github.com/lihop/godot-xterm.git
synced 2025-05-04 12:14:24 +02:00
Make native library easier to build/use
Makes libtsm a static library rather than dynamic so that it doesn't have to be installed as a system library on the user's operating system. Also updates SConstruct to work on more operating systems other than just NixOS. Adds a number of docker files for building the library on various distributions (NixOS, Arch Linux, Ubuntu). Uses a fork of godot-cpp with an updated godot_headers submodule that includes godotengine/godot_headers#76. We should go back to tracking https://github.com/godotengine/godot-cpp once the submodule has been updated in that repo.
This commit is contained in:
parent
78eeacdc22
commit
d8c8b5b272
30 changed files with 489 additions and 157 deletions
|
@ -15,7 +15,6 @@ onready var viewport = get_viewport()
|
|||
|
||||
func _ready():
|
||||
$Pseudoterminal.connect("data_received", $Terminal, "write")
|
||||
$Pseudoterminal.connect("data_received", self, "_on_data_received")
|
||||
|
||||
viewport.connect("size_changed", self, "_resize")
|
||||
_resize()
|
||||
|
@ -51,10 +50,6 @@ func _input(event):
|
|||
$Pseudoterminal.put_data(data)
|
||||
|
||||
|
||||
func _on_data_received(data: PoolByteArray):
|
||||
print("Got data: %s" % data.get_string_from_utf8())
|
||||
|
||||
|
||||
func _resize():
|
||||
rect_size = viewport.size
|
||||
$Terminal.rect_size = rect_size
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue