In the command interpreter (shell) the underline character (underline_char) generally but not always echos as a space when actually typed and generally but not always displays as an underline when produced by the system. For example:
(1) $ echo underline_char
(2) underline_char
the underline echos as a space when actually typed on line (1) but then changes to an underline when I hit return and line (2) appears. Line (2) displays properly.

System:
4 processor true-intel CPUs
Fedora-26 with all upgrades
Konsole (KDE) version Version 17.04.1

What's going on? How can it be fixed?

jon