mirror of
https://github.com/lihop/godot-xterm.git
synced 2024-11-14 14:30:24 +01:00
6cd5facb98
As cols and rows are read only (i.e. automatically determined by rect and font size) there is no need for the properties to be exposed. Instead, users can get the calculated cols and rows using the get_cols() and get_rows() methods.
10 lines
244 B
GDScript
10 lines
244 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")
|
|
yield(get_tree().create_timer(1), "timeout")
|
|
terminal.write(" i")
|