mirror of
https://github.com/lihop/godot-xterm.git
synced 2024-11-21 17:20:25 +01:00
Fix some errors preventing running of the main scene
This commit is contained in:
parent
8d56b5659a
commit
c115c34e6c
2 changed files with 4 additions and 3 deletions
|
@ -44,10 +44,10 @@ enum CWDType {
|
|||
@export var bell_sound: AudioStream
|
||||
|
||||
# Exec args.
|
||||
@export var file_type: FileType := FileType.USE_SHELL_ENV
|
||||
@export var file_type := FileType.USE_SHELL_ENV
|
||||
@export var custom_file := "/bin/sh"
|
||||
|
||||
@export var cwd_type: CWDType := CWDType.USE_PROJECT_DIRECTORY
|
||||
@export var cwd_type := CWDType.USE_PROJECT_DIRECTORY
|
||||
@export var custom_cwd := ""
|
||||
|
||||
@export var args := PackedStringArray()
|
||||
|
|
|
@ -146,7 +146,7 @@ func _on_Terminal_key_pressed(data: String, event: InputEventKey) -> void:
|
|||
scene.queue_free()
|
||||
"Terminal":
|
||||
if OS.get_name() == "Windows":
|
||||
return OS.call_deferred(
|
||||
OS.call_deferred(
|
||||
"alert",
|
||||
(
|
||||
"Psuedoterminal node currently"
|
||||
|
@ -155,6 +155,7 @@ func _on_Terminal_key_pressed(data: String, event: InputEventKey) -> void:
|
|||
),
|
||||
"Terminal not Supported on Windows"
|
||||
)
|
||||
return
|
||||
var scene = item.scene.instantiate()
|
||||
var pty = scene if OS.has_feature("JavaScript") else scene.get_node("PTY")
|
||||
add_child(scene)
|
||||
|
|
Loading…
Reference in a new issue