2021-06-19 15:57:05 +02:00
|
|
|
[gd_scene load_steps=3 format=2]
|
2020-07-11 12:45:21 +02:00
|
|
|
|
2021-07-02 19:27:34 +02:00
|
|
|
[ext_resource path="res://addons/godot_xterm/nodes/pty/unix/pty_unix.gd" type="Script" id=2]
|
|
|
|
[ext_resource path="res://examples/terminal/terminal.gd" type="Script" id=3]
|
2020-07-11 12:45:21 +02:00
|
|
|
|
2020-09-24 12:29:19 +02:00
|
|
|
[node name="Terminal" type="Control"]
|
|
|
|
anchor_right = 1.0
|
|
|
|
anchor_bottom = 1.0
|
2021-07-02 19:27:34 +02:00
|
|
|
focus_mode = 2
|
|
|
|
script = ExtResource( 3 )
|
2020-07-11 12:45:21 +02:00
|
|
|
__meta__ = {
|
|
|
|
"_edit_use_anchors_": false
|
|
|
|
}
|
2021-07-08 15:33:46 +02:00
|
|
|
copy_on_selection = true
|
2020-07-11 12:45:21 +02:00
|
|
|
|
2021-07-02 19:27:34 +02:00
|
|
|
[node name="PTY" type="Node" parent="."]
|
2020-09-24 12:29:19 +02:00
|
|
|
script = ExtResource( 2 )
|
2021-07-02 19:27:34 +02:00
|
|
|
terminal_path = NodePath("..")
|
|
|
|
env = {
|
|
|
|
"COLORTERM": "truecolor",
|
|
|
|
"TERM": "xterm-256color"
|
|
|
|
}
|
2021-07-03 16:57:19 +02:00
|
|
|
|
|
|
|
[node name="Timer" type="Timer" parent="."]
|
|
|
|
wait_time = 0.1
|
|
|
|
autostart = true
|
|
|
|
|
|
|
|
[connection signal="bell" from="." to="." method="_on_Terminal_bell"]
|
|
|
|
[connection signal="timeout" from="Timer" to="." method="_on_Timer_timeout"]
|