Interesting underscore artifact in recent versions of macOS Terminal
a thin horizontal line, somewhere before the current cursor…
it’s apparently a leftover bit of the cursor which (regardless what style cursor you have) displays in the underline format, where a cursor was.
selecting that line (ex: triple-click) clears the artifact.