Make digits red
This commit is contained in:
parent
bb1ee20964
commit
83168301ce
@ -660,7 +660,21 @@ class Editor {
|
|||||||
$len = $this->screenCols;
|
$len = $this->screenCols;
|
||||||
}
|
}
|
||||||
|
|
||||||
$this->ab .= substr($this->rows[$filerow]->render, $this->colOffset, $len);
|
$c = substr($this->rows[$filerow]->render, $this->colOffset, $len);
|
||||||
|
|
||||||
|
for ($i = 0; $i < $len; $i++)
|
||||||
|
{
|
||||||
|
if (isdigit($c[$i]))
|
||||||
|
{
|
||||||
|
$this->ab .= "\x1b[31m";
|
||||||
|
$this->ab .= $c[$i];
|
||||||
|
$this->ab .= "\x1b[39m";
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
$this->ab .= $c[$i];
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
$this->ab .= "\x1b[K"; // Clear the current line
|
$this->ab .= "\x1b[K"; // Clear the current line
|
||||||
|
Loading…
Reference in New Issue
Block a user