refactor: move background color detection into Lua

This commit is contained in:
Gregory Anders
2023-11-06 15:46:44 -06:00
parent 48bcc7b971
commit ab102f188e
7 changed files with 133 additions and 309 deletions

View File

@@ -348,15 +348,6 @@ static void ui_set_option(UI *ui, bool init, String name, Object value, Error *e
return;
}
if (strequal(name.data, "term_background")) {
VALIDATE_T("term_background", kObjectTypeString, value.type, {
return;
});
set_tty_background(value.data.string.data);
ui->term_background = string_to_cstr(value.data.string);
return;
}
if (strequal(name.data, "stdin_fd")) {
VALIDATE_T("stdin_fd", kObjectTypeInteger, value.type, {
return;