LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 07-15-2020, 01:16 PM   #1
burning
Member
 
Registered: Jan 2020
Location: Canada
Distribution: Slackware
Posts: 273

Rep: Reputation: Disabled
Scrambled text occasionally in CLI and ncurses interfaces


Sometimes the text outputted in my CLI briefly uses a strange character set for a word or two making the text rather impossible to read. And I get a similarly related effect in any ncurses interfaces such as SBopkg where the borders of the text boxes seem to be overflowing with these unusual characters.
I've attached some pictures so you can see just how I mean.

I realize that using TERM=xterm before I run something like sbopkg can temporarily resolve this issue for the session that its active, but I'd like to find a permanent fix. For what it's worth, this problem only started around the time I upgraded from 14.2 to current.

And I'm curious; how does changing the TERM variable from linux to something like xterm fix it?

edit: apparently the images are too large to upload. I'll see if I can upload to a 3rd party image hosting site.

Last edited by burning; 07-15-2020 at 02:36 PM.
 
Old 07-16-2020, 04:29 AM   #2
shruggy
Senior Member
 
Registered: Mar 2020
Posts: 3,670

Rep: Reputation: Disabled
TERM=linux is for linux console/framebuffer. When using a terminal from a graphical DE, usually it will set TERM to a suitable value.

Terminfo database may lack the proper record for your terminal if the terminal you're using is uncommon and not installed on the host (e.g. when logging in over SSH). OTOH, most graphical terminals are compatible to Xterm, so setting TERM=xterm works in many such cases.
 
1 members found this post helpful.
Old 07-19-2020, 02:05 PM   #3
burning
Member
 
Registered: Jan 2020
Location: Canada
Distribution: Slackware
Posts: 273

Original Poster
Rep: Reputation: Disabled
https://imgur.com/a/kE58i3W Sorry it took so long for me to put the images up. Anyway, this is what the effects look like.
 
Old 07-19-2020, 03:14 PM   #4
shruggy
Senior Member
 
Registered: Mar 2020
Posts: 3,670

Rep: Reputation: Disabled
Well, these look like UTF-8 characters in a non-Unicode locale. What does echo $LANG show on your system? Also, have a look at https://docs.slackware.com/slackware:localization
 
1 members found this post helpful.
Old 07-22-2020, 09:14 PM   #5
guzzi
Member
 
Registered: Jun 2004
Location: Lawrence, KS
Distribution: Slackware
Posts: 313

Rep: Reputation: 40
What burning is experiencing is fixed by editing /etc/lilo.conf

In the append line change en_US.YTF-8 to en_US

From what I can see there is no down side to doing this.
 
1 members found this post helpful.
Old 07-28-2020, 12:40 PM   #6
burning
Member
 
Registered: Jan 2020
Location: Canada
Distribution: Slackware
Posts: 273

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by guzzi View Post
What burning is experiencing is fixed by editing /etc/lilo.conf

In the append line change en_US.YTF-8 to en_US

From what I can see there is no down side to doing this.
Looking at /etc/lilo.conf ; the append line read as " vt.default_utf8=0" .
Changing it to " vt.default en_US" and restarting the system has had no effect and the problem still persists.
 
Old 07-28-2020, 12:41 PM   #7
burning
Member
 
Registered: Jan 2020
Location: Canada
Distribution: Slackware
Posts: 273

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by shruggy View Post
Well, these look like UTF-8 characters in a non-Unicode locale. What does echo $LANG show on your system? Also, have a look at https://docs.slackware.com/slackware:localization
echo $LANG outputs en_US.UTF-8
 
Old 07-28-2020, 12:54 PM   #8
Petri Kaukasoina
Senior Member
 
Registered: Mar 2007
Posts: 1,781

Rep: Reputation: 1459Reputation: 1459Reputation: 1459Reputation: 1459Reputation: 1459Reputation: 1459Reputation: 1459Reputation: 1459Reputation: 1459Reputation: 1459
Quote:
Originally Posted by burning View Post
Looking at /etc/lilo.conf ; the append line read as " vt.default_utf8=0" .
Changing it to " vt.default en_US" and restarting the system has had no effect and the problem still persists.
That should have been "vt.default_utf8=1". And then you have to run lilo.
 
2 members found this post helpful.
Old 07-28-2020, 06:18 PM   #9
Gordie
Member
 
Registered: Aug 2007
Location: Nolalu, Ontario, Canada
Distribution: Slackware64-Current
Posts: 871

Rep: Reputation: 364Reputation: 364Reputation: 364Reputation: 364
What I ended up doing was use pkgtool to run liloconfig and in so doing it wrote new lilo.conf. Here is what I found:

Code:
# LILO configuration file
# generated by 'liloconfig'
#
# Start LILO global section
# Append any additional kernel parameters:
append=" "

boot = /dev/sda
Notice append=" "? Well that was a surprise! Oh, problem is now solved and I have no clue how it got changed on me in the first place
 
1 members found this post helpful.
Old 07-29-2020, 11:53 AM   #10
burning
Member
 
Registered: Jan 2020
Location: Canada
Distribution: Slackware
Posts: 273

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by Gordie View Post
What I ended up doing was use pkgtool to run liloconfig and in so doing it wrote new lilo.conf. Here is what I found:

Code:
# LILO configuration file
# generated by 'liloconfig'
#
# Start LILO global section
# Append any additional kernel parameters:
append=" "

boot = /dev/sda
Notice append=" "? Well that was a surprise! Oh, problem is now solved and I have no clue how it got changed on me in the first place
Oh, was the append " " the cause of the problem? or was it what solved it?
 
Old 08-04-2020, 05:47 PM   #11
burning
Member
 
Registered: Jan 2020
Location: Canada
Distribution: Slackware
Posts: 273

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by Petri Kaukasoina View Post
That should have been "vt.default_utf8=1". And then you have to run lilo.
As in it being set to 1 should've been causing the problem? Or I should have set it to 1 in order to solve it? And my bad, I thought lilo ran on startup.
 
Old 08-04-2020, 07:55 PM   #12
Gordie
Member
 
Registered: Aug 2007
Location: Nolalu, Ontario, Canada
Distribution: Slackware64-Current
Posts: 871

Rep: Reputation: 364Reputation: 364Reputation: 364Reputation: 364
Quote:
Originally Posted by burning View Post
Oh, was the append " " the cause of the problem? or was it what solved it?
By now you should have tried it to see what happened and you would know it solved the problem
 
1 members found this post helpful.
Old 08-05-2020, 08:33 AM   #13
burning
Member
 
Registered: Jan 2020
Location: Canada
Distribution: Slackware
Posts: 273

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by Gordie View Post
By now you should have tried it to see what happened and you would know it solved the problem
Sorry, I've been rather busy lately so haven't had much time to do it until now. I changed it to append " " like in your example and I reran LILO and upon rebooting the system, the problem's been solved!
Thanks for your help

Last edited by burning; 08-05-2020 at 08:37 AM.
 
Old 08-05-2020, 09:02 AM   #14
Petri Kaukasoina
Senior Member
 
Registered: Mar 2007
Posts: 1,781

Rep: Reputation: 1459Reputation: 1459Reputation: 1459Reputation: 1459Reputation: 1459Reputation: 1459Reputation: 1459Reputation: 1459Reputation: 1459Reputation: 1459
Quote:
Originally Posted by burning View Post
echo $LANG outputs en_US.UTF-8
That means you are using UTF-8 and not the old 8-bit character set. (It's set in /etc/profile.d/lang.sh)
Quote:
Originally Posted by Petri Kaukasoina View Post
That should have been "vt.default_utf8=1". And then you have to run lilo.
Your kernel command line originally included vt.default_utf8=0, switching off the utf8 mode of the ttys. vt.default_utf8=1 would have switched the utf8 mode on, but it's the default value, so you don't have to add it.
Quote:
Originally Posted by burning View Post
I changed it to append " " like in your example and I reran LILO and upon rebooting the system, the problem's been solved!
That just appends a space character to the kernel command line. OK!
 
1 members found this post helpful.
Old 08-08-2020, 11:13 AM   #15
Gordie
Member
 
Registered: Aug 2007
Location: Nolalu, Ontario, Canada
Distribution: Slackware64-Current
Posts: 871

Rep: Reputation: 364Reputation: 364Reputation: 364Reputation: 364
An unexpected result is that my penguins now have re-appeared when rebooting
 
1 members found this post helpful.
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
cursing ncurses ... reverted to Slackware 14.0 version of ncurses 5.9 aaazen Slackware 3 06-18-2014 11:14 AM
[SOLVED] Ncurses bug or ncurses program error. errigour Programming 2 01-24-2013 08:36 AM
how to print text in color by ncurses without opening a ncurses window Greatrebel Programming 0 12-20-2006 09:15 AM
Text output 'scrambled' in Konsole, ok in other apps tisource Linux - Software 0 08-28-2006 01:18 AM
ncurses-5.2-28 conflicts with file from package ncurses-5.2-12 tubby Linux - Software 4 06-16-2002 12:00 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 06:24 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration