mirror of
https://github.com/lihop/godot-xterm.git
synced 2025-05-04 20:24:23 +02:00
Further progress towards Godot 4.0 support
- Primary example scenes (menu, terminal, and asciicast) working but still a lot of warning/error messages and some regressions. - Editor integrated terminal works, but still a lot of warning/error messages and some regressions. - Added support for "blink" display attribute. - Removed GDScript terminal code. Terminal node is now purely a GDExtension. So is LibuvUtils. - GUT tests not working yet. - Still a lot of things to fix. - So far, only built for and manually tested on Linux x86_64.
This commit is contained in:
parent
aad8e39dae
commit
ad7f97e493
30 changed files with 1385 additions and 1459 deletions
|
@ -39,8 +39,9 @@ func _import(source_file, save_path, options, r_platform_variant, r_gen_files):
|
|||
return err
|
||||
|
||||
var theme: Theme = XrdbTheme.new()
|
||||
theme.set_font("regular", "Terminal", preload("../themes/fonts/regular.tres"))
|
||||
for font in ["bold", "italic", "bold_italic"]:
|
||||
theme.set_font_size("font_size", "Terminal", 14)
|
||||
theme.set_font("normal_font", "Terminal", preload("../themes/fonts/regular.tres"))
|
||||
for font in ["bold_font", "italic_font", "bold_italic_font"]:
|
||||
theme.set_font(font, "Terminal", null)
|
||||
|
||||
var word_regex = RegEx.new()
|
||||
|
@ -77,37 +78,37 @@ func _import(source_file, save_path, options, r_platform_variant, r_gen_files):
|
|||
|
||||
match name:
|
||||
"color0", "ansi_0_color":
|
||||
theme.set_color("black", "Terminal", color)
|
||||
theme.set_color("ansi_0_color", "Terminal", color)
|
||||
"color1", "ansi_1_color":
|
||||
theme.set_color("red", "Terminal", color)
|
||||
theme.set_color("ansi_1_color", "Terminal", color)
|
||||
"color2", "ansi_2_color":
|
||||
theme.set_color("green", "Terminal", color)
|
||||
theme.set_color("ansi_2_color", "Terminal", color)
|
||||
"color3", "ansi_3_color":
|
||||
theme.set_color("yellow", "Terminal", color)
|
||||
theme.set_color("ansi_3_color", "Terminal", color)
|
||||
"color4", "ansi_4_color":
|
||||
theme.set_color("blue", "Terminal", color)
|
||||
theme.set_color("ansi_4_color", "Terminal", color)
|
||||
"color5", "ansi_5_color":
|
||||
theme.set_color("magenta", "Terminal", color)
|
||||
theme.set_color("ansi_5_color", "Terminal", color)
|
||||
"color6", "ansi_6_color":
|
||||
theme.set_color("cyan", "Terminal", color)
|
||||
theme.set_color("ansi_6_color", "Terminal", color)
|
||||
"color7", "ansi_7_color":
|
||||
theme.set_color("white", "Terminal", color)
|
||||
theme.set_color("ansi_7_color", "Terminal", color)
|
||||
"color8", "ansi_8_color":
|
||||
theme.set_color("bright_black", "Terminal", color)
|
||||
theme.set_color("ansi_8_color", "Terminal", color)
|
||||
"color9", "ansi_9_color":
|
||||
theme.set_color("bright_red", "Terminal", color)
|
||||
theme.set_color("ansi_9_color", "Terminal", color)
|
||||
"color10", "ansi_10_color":
|
||||
theme.set_color("bright_green", "Terminal", color)
|
||||
theme.set_color("ansi_10_color", "Terminal", color)
|
||||
"color11", "ansi_11_color":
|
||||
theme.set_color("bright_yellow", "Terminal", color)
|
||||
theme.set_color("ansi_11_color", "Terminal", color)
|
||||
"color12", "ansi_12_color":
|
||||
theme.set_color("bright_blue", "Terminal", color)
|
||||
theme.set_color("ansi_12_color", "Terminal", color)
|
||||
"color13", "ansi_13_color":
|
||||
theme.set_color("bright_magenta", "Terminal", color)
|
||||
theme.set_color("ansi_13_color", "Terminal", color)
|
||||
"color14", "ansi_14_color":
|
||||
theme.set_color("bright_cyan", "Terminal", color)
|
||||
theme.set_color("ansi_14_color", "Terminal", color)
|
||||
"color15", "ansi_15_color":
|
||||
theme.set_color("bright_white", "Terminal", color)
|
||||
theme.set_color("ansi_15_color", "Terminal", color)
|
||||
"foreground", "foreground_color":
|
||||
theme.set_color("foreground", "Terminal", color)
|
||||
"background", "background_color":
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue