godot-xterm/test/scenes/basic.gd

11 lines
241 B
GDScript
Raw Permalink Normal View History

extends Control
2022-11-09 21:57:46 +01:00
@onready var terminal = $Terminal
func _ready():
print("terminal size; rows %d; cols %d;" % [terminal.get_rows(), terminal.get_cols()])
terminal.write("h")
2022-11-09 21:57:46 +01:00
await get_tree().create_timer(1).timeout
terminal.write(" i")