mirror of
https://github.com/lihop/godot-xterm.git
synced 2025-05-08 05:15:30 +02:00
Add example of using GodotXterm with socat
Uses OS.execute to start socat with a tcp server on one end and shell on te other. Connects to the socat server using StreamPeerTCP. Doesn't support reszing and inherits 'dumb' for the TERM env var so doesn't work too well without updating TERM and resizing with stty.
This commit is contained in:
parent
0c43776619
commit
c262ea8113
2 changed files with 66 additions and 0 deletions
14
examples/socat_terminal/socat_terminal.tscn
Normal file
14
examples/socat_terminal/socat_terminal.tscn
Normal file
|
@ -0,0 +1,14 @@
|
|||
[gd_scene load_steps=2 format=2]
|
||||
|
||||
[ext_resource path="res://examples/socat_terminal/socat_terminal.gd" type="Script" id=1]
|
||||
|
||||
[node name="Terminal" type="Control"]
|
||||
anchor_right = 1.0
|
||||
anchor_bottom = 1.0
|
||||
focus_mode = 2
|
||||
script = ExtResource( 1 )
|
||||
__meta__ = {
|
||||
"_edit_use_anchors_": false
|
||||
}
|
||||
|
||||
[connection signal="data_sent" from="." to="." method="_on_Terminal_data_sent"]
|
Loading…
Add table
Add a link
Reference in a new issue