mirror of
https://github.com/lihop/godot-xterm.git
synced 2024-11-24 18:20:25 +01:00
12 lines
318 B
GDScript
12 lines
318 B
GDScript
extends "res://addons/godot_xterm/terminal.gd"
|
|
|
|
const Readline = preload("res://addons/godot_xterm/util/readline.gd")
|
|
|
|
var rl: Readline
|
|
|
|
|
|
func _ready():
|
|
rl = Readline.new(self)
|
|
while true:
|
|
var line: String = yield(rl.readline("Enter something (anything): "), "completed")
|
|
write("\r\nYou entered: %s\r\n" % line)
|