mirror of
https://github.com/lihop/godot-xterm.git
synced 2024-11-21 17:20:25 +01:00
fix socat_terminal example
* Godot 4.x seems to require call StreamPeerTCP.poll * add missing signal connection (data from terminal to network)
This commit is contained in:
parent
9569c9e489
commit
e830db667c
2 changed files with 3 additions and 0 deletions
|
@ -19,6 +19,7 @@ func _ready():
|
||||||
|
|
||||||
|
|
||||||
func _process(delta):
|
func _process(delta):
|
||||||
|
_stream.poll()
|
||||||
match _stream.get_status():
|
match _stream.get_status():
|
||||||
StreamPeerTCP.STATUS_NONE, StreamPeerTCP.STATUS_CONNECTING:
|
StreamPeerTCP.STATUS_NONE, StreamPeerTCP.STATUS_CONNECTING:
|
||||||
_timeout -= 1
|
_timeout -= 1
|
||||||
|
|
|
@ -11,3 +11,5 @@ grow_horizontal = 2
|
||||||
grow_vertical = 2
|
grow_vertical = 2
|
||||||
theme = ExtResource("1_rw2ub")
|
theme = ExtResource("1_rw2ub")
|
||||||
script = ExtResource("1")
|
script = ExtResource("1")
|
||||||
|
|
||||||
|
[connection signal="data_sent" from="." to="." method="_on_Terminal_data_sent"]
|
||||||
|
|
Loading…
Reference in a new issue