mirror of
https://github.com/lihop/godot-xterm.git
synced 2024-11-15 06:40:24 +01:00
3378e6ff8f
Adds process_mode property to PTY which can be set to IDLE or PHYSICS. Determines whether the PTY will be updated in the `_process()` or `_physics_process()` step. Defaults to PHYSICS.
32 lines
607 B
GDScript
32 lines
607 B
GDScript
tool
|
|
extends Node
|
|
|
|
signal data_received(data)
|
|
signal exited(exit_code, signum)
|
|
|
|
|
|
func open(cols: int, rows: int):
|
|
return _not_implemented()
|
|
|
|
|
|
func run_process(delta: float):
|
|
return _not_implemented()
|
|
|
|
|
|
func resize(cols: int, rows: int):
|
|
return _not_implemented()
|
|
|
|
|
|
func get_master():
|
|
return _not_implemented()
|
|
|
|
|
|
func _not_implemented() -> int:
|
|
var method := ""
|
|
|
|
var stack = get_stack()
|
|
if stack.size() >= 2 and "function" in stack[1]:
|
|
method = "%s()" % stack[1].function
|
|
|
|
push_error("Method %s not implemented on the current platform (%s)." % [method, OS.get_name()])
|
|
return ERR_METHOD_NOT_FOUND
|