mirror of
https://github.com/lihop/godot-xterm.git
synced 2025-05-04 12:14:24 +02:00
Move terminal.gd and pty.gd to godot_xterm directory
Makes for pretty paths when extending scripts: `extends "res://addons/godot_xterm/terminal.gd"` vs. `extends "res://addons/godot_xterm/nodes/terminal/terminal.gd"` Currently "res://addons/godot_xterm/pty.gd" is acutally `pty_unix.gd`. This is okay for now as the PTY node is only supported on Unix platforms. However, we will need to sort it out when adding Windows support as part of #25. Also remove the GDXterm namespace.
This commit is contained in:
parent
e6db81615e
commit
9d15420df3
22 changed files with 46 additions and 43 deletions
|
@ -8,6 +8,8 @@ extends Control
|
|||
# - https://tldp.org/HOWTO/Bash-Prompt-HOWTO/x361.html
|
||||
# - https://www.youtube.com/watch?v=jTSQlIK_92w
|
||||
|
||||
const TPut = preload("res://addons/godot_xterm/util/tput.gd")
|
||||
|
||||
# Title generated using command: toilet -f pagga GODOT XTERM
|
||||
const TITLE = """
|
||||
░█▀▀░█▀█░█▀▄░█▀█░▀█▀░░░█░█░▀█▀░█▀▀░█▀▄░█▄█\r
|
||||
|
@ -36,10 +38,12 @@ var row: int
|
|||
var menu_start_row: int
|
||||
var offset: int
|
||||
|
||||
onready var tput = GDXterm.TPut.new($Terminal)
|
||||
onready var tput = TPut.new($Terminal)
|
||||
|
||||
|
||||
func _ready():
|
||||
if not $Terminal.is_connected("key_pressed", self, "_on_Terminal_key_pressed"):
|
||||
$Terminal.connect("key_pressed", self, "_on_Terminal_key_pressed")
|
||||
# warning-ignore:return_value_discarded
|
||||
$Terminal.connect("size_changed", self, "draw_all")
|
||||
$Terminal.grab_focus()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue