mirror of
https://github.com/lihop/godot-xterm.git
synced 2025-06-28 18:25:31 +02:00
Reverse most obvious mistakes from Godot 4 automatic changes
This commit is contained in:
parent
cdbf3f2adc
commit
099100d3e0
27 changed files with 122 additions and 122 deletions
|
@ -25,7 +25,7 @@ func _ready():
|
|||
|
||||
# Get colors from TextEdit theme. Created using the default (Adaptive) theme
|
||||
# for reference, but will probably cause strange results if using another theme
|
||||
# better to use a dedicated terminal theme, rather than relying checked this.
|
||||
# better to use a dedicated terminal theme, rather than relying on this.
|
||||
_set_terminal_colors(
|
||||
{
|
||||
"black": "caret_background_color",
|
||||
|
|
|
@ -23,7 +23,7 @@ enum TerminalPopupMenuOptions {
|
|||
}
|
||||
|
||||
# Has access to the EditorSettings singleton so it can dynamically generate the
|
||||
# terminal color scheme based checked editor theme settings.
|
||||
# terminal color scheme based on editor theme settings.
|
||||
var editor_plugin: EditorPlugin
|
||||
var editor_interface: EditorInterface
|
||||
|
||||
|
@ -108,7 +108,7 @@ func _update_terminal_tabs():
|
|||
await get_tree().idle_frame
|
||||
|
||||
if tabs.get_offset_buttons_visible():
|
||||
# Move add button to fixed position checked the tabbar.
|
||||
# Move add button to fixed position on the tabbar.
|
||||
if add_button.get_parent() == tabs:
|
||||
add_button.position = Vector2.ZERO
|
||||
tabs.remove_child(add_button)
|
||||
|
|
|
@ -20,5 +20,5 @@ func _not_implemented() -> int:
|
|||
if stack.size() >= 2 and "function" in stack[1]:
|
||||
method = "%s()" % stack[1].function
|
||||
|
||||
push_error("Method %s not implemented checked the current platform (%s)." % [method, OS.get_name()])
|
||||
push_error("Method %s not implemented on the current platform (%s)." % [method, OS.get_name()])
|
||||
return ERR_METHOD_NOT_FOUND
|
||||
|
|
|
@ -18,7 +18,7 @@ const DEFAULT_ENV := {TERM = DEFAULT_NAME, COLORTERM = "truecolor"}
|
|||
const FALLBACK_FILE = "sh"
|
||||
|
||||
## Default messages to indicate PAUSE/RESUME for automatic flow control.
|
||||
## To avoid conflicts with rebound XON/XOFF control codes (such as checked-my-zsh),
|
||||
## To avoid conflicts with rebound XON/XOFF control codes (such as on-my-zsh),
|
||||
## the sequences can be customized in IPtyForkOptions.
|
||||
#const FLOW_CONTROL_PAUSE = char(0x13) # defaults to XOFF
|
||||
#const FLOW_CONTROL_RESUME = char(0x11) # defaults to XON
|
||||
|
@ -35,7 +35,7 @@ enum Signal {
|
|||
SIGFPE = 8, # Erroneous arithmetic operation
|
||||
SIGKILL = 9, # Kill (cannot be caught or ignored)
|
||||
SIGSEGV = 11, # Invalid memory reference
|
||||
SIGPIPE = 13, # Write checked a pipe with no one to read it
|
||||
SIGPIPE = 13, # Write on a pipe with no one to read it
|
||||
SIGALRM = 14, # Alarm clock
|
||||
SIGTERM = 15, # Termination signal
|
||||
}
|
||||
|
@ -126,7 +126,7 @@ func fork(
|
|||
file = FALLBACK_FILE
|
||||
|
||||
# Environment variables.
|
||||
# If we are using OS env vars, sanitize them to remove_at variables that might confuse our terminal.
|
||||
# If we are using OS env vars, sanitize them to remove variables that might confuse our terminal.
|
||||
var final_env := _sanitize_env(LibuvUtils.get_os_environ()) if use_os_env else {}
|
||||
for key in env.keys():
|
||||
final_env[key] = env[key]
|
||||
|
|
|
@ -25,13 +25,13 @@ signal exited(exit_code, signum)
|
|||
|
||||
@export var terminal_path: NodePath := NodePath() :
|
||||
get:
|
||||
return terminal_path # TODOConverter40 Non existent get function
|
||||
return terminal_path # TODOConverter40 Non existent get function
|
||||
set(mod_value):
|
||||
mod_value # TODOConverter40 Copy here content of set_terminal_path
|
||||
|
||||
var _terminal: _Terminal = null :
|
||||
get:
|
||||
return _terminal # TODOConverter40 Non existent get function
|
||||
return _terminal # TODOConverter40 Non existent get function
|
||||
set(mod_value):
|
||||
mod_value # TODOConverter40 Copy here content of _set_terminal
|
||||
|
||||
|
@ -68,7 +68,7 @@ func _init():
|
|||
"X11", "Server", "OSX":
|
||||
_pty_native = _PTYUnix.new()
|
||||
_:
|
||||
push_error("PTY is not support checked current platform (%s)." % os_name)
|
||||
push_error("PTY is not support on current platform (%s)." % os_name)
|
||||
|
||||
_pty_native.connect("data_received",Callable(self,"_on_pty_native_data_received"))
|
||||
_pty_native.connect("exited",Callable(self,"_on_pty_native_exited"))
|
||||
|
@ -154,7 +154,7 @@ func resizev(size: Vector2) -> void:
|
|||
|
||||
# Kill the pty.
|
||||
# sigint: The signal to send. By default this is SIGHUP.
|
||||
# This is not supported checked Windows.
|
||||
# This is not supported on Windows.
|
||||
func kill(signum: int = Signal.SIGHUP) -> void:
|
||||
_pty_native.kill(signum)
|
||||
|
||||
|
|
|
@ -62,7 +62,7 @@ func write_string(string: String, color: Color = Color.WHITE) -> void:
|
|||
terminal.write("\u001b[0m".to_utf8_buffer())
|
||||
|
||||
|
||||
# tput_* functions based checked the tput command.
|
||||
# tput_* functions based on the tput command.
|
||||
# See: https://man7.org/linux/man-pages/man1/tput.1.html for more info.
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue