diff options
Diffstat (limited to 'src/io/cell.nim')
-rw-r--r-- | src/io/cell.nim | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/src/io/cell.nim b/src/io/cell.nim index 9587e5dd..0b991a0a 100644 --- a/src/io/cell.nim +++ b/src/io/cell.nim @@ -194,12 +194,12 @@ proc parseAnsiCode*(formatting: var Formatting, buf: string, fi: int): int = if ip[pi] == 2: inc pi if pi + 2 < ip.len: - let r = uint8(ip[pi]) + let r = ip[pi] inc pi - let g = uint8(ip[pi]) + let g = ip[pi] inc pi - let b = uint8(ip[pi]) - formatting.fgcolor = CellColor(rgb: true, rgbcolor: (r: r, g: g, b: b)) + let b = ip[pi] + formatting.fgcolor = CellColor(rgb: true, rgbcolor: rgb(r, g, b)) else: #TODO inc pi @@ -216,12 +216,12 @@ proc parseAnsiCode*(formatting: var Formatting, buf: string, fi: int): int = if ip[pi] == 2: inc pi if pi + 2 < ip.len: - let r = uint8(ip[pi]) + let r = ip[pi] inc pi - let g = uint8(ip[pi]) + let g = ip[pi] inc pi - let b = uint8(ip[pi]) - formatting.bgcolor = CellColor(rgb: true, rgbcolor: (r: r, g: g, b: b)) + let b = ip[pi] + formatting.bgcolor = CellColor(rgb: true, rgbcolor: rgb(r, g, b)) else: #TODO inc pi |