mirror of
https://github.com/lihop/godot-xterm.git
synced 2024-11-21 17:20:25 +01:00
Don't register TPut util as a global unique class
This commit is contained in:
parent
ca7def60e8
commit
3759d3a0b9
5 changed files with 6 additions and 12 deletions
|
@ -15,6 +15,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|||
- Supported Godot version -> 3.3.2.
|
||||
- Set a default theme if no theme property has been set.
|
||||
- Changed default font from Cousine to Hack, which is the same as Godot's script editor, and reduced size from 16 to 14.
|
||||
- TPut no longer registered as a unique global class (i.e. removed `class_name TPut`).
|
||||
|
||||
### Fixed
|
||||
- Don't swap red and blue channels of theme colors.
|
||||
|
|
|
@ -1,5 +1,4 @@
|
|||
extends Reference
|
||||
class_name TPut
|
||||
|
||||
# Control Sequence Introducer
|
||||
const CSI = "\u001b["
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -1,9 +1,11 @@
|
|||
extends Node
|
||||
|
||||
const TPut := preload("res://addons/godot_xterm/util/tput.gd")
|
||||
|
||||
signal exited(status)
|
||||
|
||||
var line := ""
|
||||
var _tput: TPut
|
||||
var _tput
|
||||
|
||||
onready var terminal = $Terminal
|
||||
onready var _has_js: bool = OS.has_feature("JavaScript")
|
||||
|
|
|
@ -8,16 +8,6 @@
|
|||
|
||||
config_version=4
|
||||
|
||||
_global_script_classes=[ {
|
||||
"base": "Reference",
|
||||
"class": "TPut",
|
||||
"language": "GDScript",
|
||||
"path": "res://addons/godot_xterm/util/tput.gd"
|
||||
} ]
|
||||
_global_script_class_icons={
|
||||
"TPut": ""
|
||||
}
|
||||
|
||||
[application]
|
||||
|
||||
config/name="Godot Xterm"
|
||||
|
|
Loading…
Reference in a new issue