Bug 107741

Summary: garbage characters fill screen when setterm used in .bashrc
Product: [Fedora] Fedora Reporter: Felix Miata <mrmazda>
Component: bashAssignee: Tim Waugh <twaugh>
Status: CLOSED WORKSFORME QA Contact: Ben Levenson <benl>
Severity: medium Docs Contact:
Priority: medium    
Version: rawhide   
Target Milestone: ---   
Target Release: ---   
Hardware: i386   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2004-07-28 13:05:23 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Felix Miata 2003-10-22 15:49:51 UTC
How reproducible:
100%

Steps to Reproduce:
1.in /boot/grub/grub.conf, remove from kernel line any instance of vga= that may
be present (reboot  to place in effect if necessary)
2.in /root/.bashrc, put "setterm -foreground white -bold -background blue -blank
20 -store"
3.login root on tty[1-6]
4.type some characters
5.hit backspace key
    
Actual results:
1-cursor moves left one character
2-line to right of cursor fills with capital "G" with a diacritical over it

Expected results:
1-cursor moves left one character
2-last typed character is removed from display

Additional info:
1-If I try to use mc or vi after the garbage characters first appear, all
character positions on screen that should be blank turn to the garbage character.

2-This behavior is not new to severn. It is a reason why I wiped shrike off the
machine & installed severn in the space vacated. I never used psyche, but
vahalla and prior never did this.

Comment 1 Bill Nottingham 2003-10-22 16:29:08 UTC
-bold isn't going to work when you're using the unicode font.

Comment 2 Felix Miata 2003-10-22 17:33:58 UTC
1-How does one know unicode is being used?
2-How does one not use unicode in bash if one wants?
3-Why does VGA=788 on the kernel line not result in the same problem?

(bash 2.05b in Mandrake 9.2 doesn't do this, but I don't know how to discover
the charset in use.)

Comment 3 Tim Waugh 2003-10-24 09:56:05 UTC
Use 'locale' to see the encoding in use.

Comment 4 Felix Miata 2004-07-28 13:05:23 UTC
For root on tty[1-6], LC-TIME=en_DK, LE_ALL=, & the rest en_US.UTF-8.

For ordinary user in konsole, LC_ALL= & the rest are en_US.UTF-8.

The reported behavior is not present in FC1.