Bugfixes, tweak colors

This commit is contained in:
2024-10-01 23:01:26 +02:00
parent 9ca53df0ec
commit 53b9ae84a0
2 changed files with 6 additions and 6 deletions

View File

@ -233,11 +233,11 @@ class Editor
$this->term->setCursor(1, $h);
if (!file_exists($readFrom)) {
echo "\e[97;41mFile does not exist\e[K\e[0m";
break;
return;
}
if (!is_readable($readFrom)) {
echo "\e[97;41mFile not readable\e[K\e[0m";
break;
return;
}
$ext = strtolower(pathinfo($readFrom, PATHINFO_EXTENSION));
switch ($ext) {
@ -250,7 +250,7 @@ class Editor
break;
default:
echo "\e[97;41mUnable to read format: {$ext}\e[K\e[0m";
break(2);
return;
}
$this->filename = $readFrom;
@ -478,7 +478,7 @@ class Editor
$node = $this->list->getNodeForIndex($this->currentRow);
$this->term->setCursor(1, $h-1);
echo "\e[44;37m\e[K\e[1m{$this->shortfilename}\e[22m#\e[3m{$path}\e[37;23m";
echo "\e[40;37m\e[K\e[1m{$this->shortfilename}\e[22m#\e[3m{$path}\e[37;23m";
//$this->term->setCursor(1, $h);
echo " = ";