Bugfixes, tweak colors
This commit is contained in:
		@@ -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 " = ";
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user