I rarely post a question because I tend to get obsessed with trying to figure things out on my own, but today I am really stuck.... and I've had a long week and my brain is dead...
anyways, I am trying to load a var that draws a horizontal straight line the length of my console.
I've tried drawing the line a couple of ways:
The '⎼' is not an underscore, the char sits a little higher than the underscore ie: ⎼_
printf '⎼%.s' $(seq 1 $COLUMNS)
python3 -c "print('⎼' * $COLUMNS)"
both commands draws the line, and when I assign it to a var like: HORZLINE=$(printf '⎼%.s' $(seq 1 $COLUMNS)
and then call $HORZLINE, it also draws the line.
I run into problems when I try to add that line (HORZLINE=$(printf '⎼%.s' $(seq 1 $COLUMNS)) to .bashrc and try to load it on start up.
The var loads, but the whole line doesn't load. Only one char is loaded. So when I try:
$: echo -e "$HORZLINE" ⎼
AFTER the terminal boots, if I source the .bashrc file again, the variable loads properly and draws the whole line.
Anyone have any ideas as to what I am doing wrong, or what is going on?
UPDATE - SOLVED
I just wanted to give you guys a heads up and update this for anyone out there experiencing the same problem..
All I had to do to fix the problem was to enable force_color_prompt (uncomment it in .bashrc)
I feel so stupid. I spent so long trying all these different things, when I should have just looked at the bashrc.
But just so you know, I didn't even think about the force_color_prompt because the terminal was doing some wierd things, like: 1. if I launched mate-terminal, the prompt loaded correctly 2. I re-launch xterm, and NOTHING 3. Messed around with the preferences in xterm, changed the font, launch the terminal again, and it stopped working. BUT if I changed the font back to systems default, it would work again.
So I was messing around with xterm's setting, which if you've had experience with, isn't so easy.
Anyways.. thats it.
Thanks for all your help.