godot-xterm/test/scenes/basic.gd
2022-11-09 20:57:46 +00:00

10 lines
241 B
GDScript

extends Control
@onready var terminal = $Terminal
func _ready():
print("terminal size; rows %d; cols %d;" % [terminal.get_rows(), terminal.get_cols()])
terminal.write("h")
await get_tree().create_timer(1).timeout
terminal.write(" i")