1
0
Fork 0
mirror of https://github.com/lihop/godot-xterm.git synced 2025-03-01 17:13:58 +01:00
godot-xterm/test/scenes/basic.gd

11 lines
244 B
GDScript
Raw Normal View History

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