ANSI-colored serial output is displayed correctly in the live terminal, but the scrollback view loses the formatting. Previously, ANSI sequences split across serial reads also appeared as visible text such as [1;34m; after stripping them, the scrollback became readable but remained completely unstyled. The scrollback should preserve the same colors and text attributes as the live terminal view.
Live output:
drwxr-xr-x 1 root root 1024 Jan 1 00:00 etc/
drwxr-xr-x 1 root root 4096 Jul 24 2026 lib/
lrwxrwxrwx 1 root root 3 Jun 16 2026 lib64 -> lib/
drwxr-xr-x 2 root root 1024 Jun 16 2026 libexec/
lrwxrwxrwx 1 root root 11 Jun 16 2026 linuxrc -> bin/busybox*
drwx------ 1 root root 16384 Jul 24 2026 lost+found/
drwxr-xr-x 10 root root 1024 Jun 16 2026 media/
drwxr-xr-x 2 root root 1024 Jun 16 2026 mnt/
drwxr-xr-x 1 root root 4096 Jul 24 2026 opt/
dr-xr-xr-x 188 root root 0 Jan 1 00:00 proc/
drwx------ 1 root root 1024 Jan 3 1970 root/
drwxr-xr-x 6 root root 400 Jan 1 00:00 run/
drwxr-xr-x 2 root root 2048 Jun 16 2026 sbin/
dr-xr-xr-x 13 root root 0 Jan 1 00:00 sys/
drwxrwxrwt 3 root root 220 Jan 1 00:00 tmp/
drwxr-xr-x 1 root root 4096 Jul 24 2026 usr/
drwxr-xr-x 1 root root 1024 Jun 16 2026 var/
[root]# ls -la
total 46
drwxr-xr-x 1 root root 1024 Jan 1 00:00 ./
drwxr-xr-x 1 root root 1024 Jan 1 00:00 ../
drwxr-xr-x 21 root root 1024 Jun 16 2026 .oldroot/
drwxr-xr-x 1 root root 4096 Jul 24 2026 bin/
drwxr-xr-x 3 root root 1024 Jun 16 2026 boot/
---------- 1 root root 0 Jan 1 00:00 crond.reboot
drwxr-xr-x 5 root root 1024 Jan 1 00:00 data/
drwxr-xr-x 14 root root 4240 Jan 1 00:00 dev/
drwxr-xr-x 1 root root 1024 Jan 1 00:00 etc/
drwxr-xr-x 1 root root 4096 Jul 24 2026 lib/
lrwxrwxrwx 1 root root 3 Jun 16 2026 lib64 -> lib/
drwxr-xr-x 2 root root 1024 Jun 16 2026 libexec/
lrwxrwxrwx 1 root root 11 Jun 16 2026 linuxrc -> bin/busybox*
drwx------ 1 root root 16384 Jul 24 2026 lost+found/
drwxr-xr-x 10 root root 1024 Jun 16 2026 media/
drwxr-xr-x 2 root root 1024 Jun 16 2026 mnt/
drwxr-xr-x 1 root root 4096 Jul 24 2026 opt/
dr-xr-xr-x 188 root root 0 Jan 1 00:00 proc/
drwx------ 1 root root 1024 Jan 3 1970 root/
drwxr-xr-x 6 root root 400 Jan 1 00:00 run/
drwxr-xr-x 2 root root 2048 Jun 16 2026 sbin/
dr-xr-xr-x 13 root root 0 Jan 1 00:00 sys/
drwxrwxrwt 3 root root 220 Jan 1 00:00 tmp/
drwxr-xr-x 1 root root 4096 Jul 24 2026 usr/
drwxr-xr-x 1 root root 1024 Jun 16 2026 var/
[root]#
```
Scrollback output:
```
drwxr-xr-x 6 root root 400 Jan 1 00:00 [1;34mrun[m/
drwxr-xr-x 2 root root 2048 Jun 16 2026 [1;34msbin[m/
dr-xr-xr-x 13 root root 0 Jan 1 00:00 [1;34msys[m/
drwxrwxrwt 3 root root 220 Jan 1 00:00 [1;34mtmp[m/
drwxr-xr-x 1 root root 4096 Jul 24 2026 [1;34musr[m/
drwxr-xr-x 1 root root 1024 Jun 16 2026 [1;34mvar[m/
[root]# ls-a[J[J -la
total 46
drwxr-xr-x 1 root root 1024 Jan 1 00:00 [1;34m.[m/
drwxr-xr-x 1 root root 1024 Jan 1 00:00 [1;34m..[m/
drwxr-xr-x 21 root root 1024 Jun 16 2026 [1;34m.oldroot[m/
drwxr-xr-x 1 root root 4096 Jul 24 2026 [1;34mbin[m/
drwxr-xr-x 3 root root 1024 Jun 16 2026 [1;34mboot[m/
---------- 1 root root 0 Jan 1 00:00 [0;0mcrond.reboot[m
drwxr-xr-x 5 root root 1024 Jan 1 00:00 [1;34mdata[m/
drwxr-xr-x 14 root root 4240 Jan 1 00:00 [1;34mdev[m/
drwxr-xr-x 1 root root 1024 Jan 1 00:00 [1;34metc[m/
drwxr-xr-x 1 root root 4096 Jul 24 2026 [1;34mlib[m/
lrwxrwxrwx 1 root root 3 Jun 16 2026 [1;36mlib64[m -> [1;34mlib[m/
drwxr-xr-x 2 root root 1024 Jun 16 2026 [1;34mlibexec[m/
lrwxrwxrwx 1 root root 11 Jun 16 2026 [1;36mlinuxrc[m -> [1;32mbin/busybox[m*
drwx------ 1 root root 16384 Jul 24 2026 [1;34mlost+found[m/
drwxr-xr-x 10 root root 1024 Jun 16 2026 [1;34mmedia[m/
drwxr-xr-x 2 root root 1024 Jun 16 2026 [1;34mmnt[m/
drwxr-xr-x 1 root root 4096 Jul 24 2026 [1;34mopt[m/
dr-xr-xr-x 188 root root 0 Jan 1 00:00 [1;34mproc[m/
drwx------ 1 root root 1024 Jan 3 1970 [1;34mroot[m/
drwxr-xr-x 6 root root 400 Jan 1 00:00 [1;34mrun[m/
drwxr-xr-x 2 root root 2048 Jun 16 2026 [1;34msbin[m/
dr-xr-xr-x 13 root root 0 Jan 1 00:00 [1;34msys[m/
drwxrwxrwt 3 root root 220 Jan 1 00:00 [1;34mtmp[m/
drwxr-xr-x 1 root root 4096 Jul 24 2026 [1;34musr[m/
drwxr-xr-x 1 root root 1024 Jun 16 2026 [1;34mvar[m/
[root]# ls -la
total 46
drwxr-xr-x 1 root root 1024 Jan 1 00:00 [1;34m.[m/
drwxr-xr-x 1 root root 1024 Jan 1 00:00 [1;34m..[m/
drwxr-xr-x 21 root root 1024 Jun 16 2026 [1;34m.oldroot[m/
drwxr-xr-x 1 root root 4096 Jul 24 2026 [1;34mbin[m/
drwxr-xr-x 3 root root 1024 Jun 16 2026 [1;34mboot[m/
---------- 1 root root 0 Jan 1 00:00 [0;0mcrond.reboot[m
drwxr-xr-x 5 root root 1024 Jan 1 00:00 [1;34mdata[m/
drwxr-xr-x 14 root root 4240 Jan 1 00:00 [1;34mdev[m/
drwxr-xr-x 1 root root 1024 Jan 1 00:00 [1;34metc[m/
drwxr-xr-x 1 root root 4096 Jul 24 2026 [1;34mlib[m/
```
I already created a fix on my fork and tested it. Love the tool by the way.
ANSI-colored serial output is displayed correctly in the live terminal, but the scrollback view loses the formatting. Previously, ANSI sequences split across serial reads also appeared as visible text such as [1;34m; after stripping them, the scrollback became readable but remained completely unstyled. The scrollback should preserve the same colors and text attributes as the live terminal view.
Live output: