feat(pty): add initial pty node

This commit is contained in:
Leroy Hopson 2024-02-24 19:47:12 +13:00
parent d223a458cd
commit 1514f42b54
No known key found for this signature in database
GPG key ID: D2747312A6DB51AA
21 changed files with 2819 additions and 71 deletions

View file

@ -28,7 +28,6 @@ func _enter_tree():
match OS.get_name():
"Linux", "FreeBSD", "NetBSD", "OpenBSD", "BSD", "macOS":
pty_script = load("%s/pty.gd" % base_dir)
add_custom_type("PTY", "Node", pty_script, pty_icon)
terminal_panel = preload("./editor_plugins/terminal/terminal_panel.tscn").instantiate()
terminal_panel.editor_plugin = self
terminal_panel.editor_interface = get_editor_interface()
@ -45,6 +44,5 @@ func _exit_tree():
remove_custom_type("Asciicast")
if pty_supported:
remove_custom_type("PTY")
remove_control_from_bottom_panel(terminal_panel)
terminal_panel.free()