mirror of
https://github.com/lihop/godot-xterm.git
synced 2025-05-03 12:04:24 +02:00
parent
a55a05d3a4
commit
9bd17ec8dc
31 changed files with 5058 additions and 1031 deletions
7
examples/terminal/Node.gd
Normal file
7
examples/terminal/Node.gd
Normal file
|
@ -0,0 +1,7 @@
|
|||
extends Node
|
||||
|
||||
|
||||
|
||||
func _on_Terminal_key_pressed(event: InputEventKey, data: PoolByteArray):
|
||||
print(data as Array)
|
||||
print(event.scancode)
|
|
@ -8,15 +8,16 @@
|
|||
anchor_right = 1.0
|
||||
anchor_bottom = 1.0
|
||||
focus_mode = 2
|
||||
size_flags_horizontal = 3
|
||||
size_flags_vertical = 3
|
||||
theme = ExtResource( 4 )
|
||||
script = ExtResource( 1 )
|
||||
__meta__ = {
|
||||
"_edit_use_anchors_": false
|
||||
}
|
||||
rows = 31
|
||||
cols = 102
|
||||
|
||||
[node name="Pseudoterminal" type="Node" parent="."]
|
||||
script = ExtResource( 2 )
|
||||
[connection signal="data_read" from="." to="Pseudoterminal" method="put_data"]
|
||||
[connection signal="data_received" from="Pseudoterminal" to="." method="write"]
|
||||
[connection signal="data_sent" from="." to="Pseudoterminal" method="write"]
|
||||
[connection signal="size_changed" from="." to="Pseudoterminal" method="resize"]
|
||||
[connection signal="data_sent" from="Pseudoterminal" to="." method="write"]
|
Loading…
Add table
Add a link
Reference in a new issue