GNU bug report logs -
#20482
Colour of Terminal changes with some files using cat
Previous Next
To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 20482 in the body.
You can then email your comments to 20482 AT debbugs.gnu.org in the normal way.
Toggle the display of automated, internal messages from the tracker.
Report forwarded
to
bug-coreutils <at> gnu.org
:
bug#20482
; Package
coreutils
.
(Fri, 01 May 2015 15:27:02 GMT)
Full text and
rfc822 format available.
Acknowledgement sent
to
Nikita Yerenkov-Scott <yerenkov.scott <at> gmail.com>
:
New bug report received and forwarded. Copy sent to
bug-coreutils <at> gnu.org
.
(Fri, 01 May 2015 15:27:04 GMT)
Full text and
rfc822 format available.
Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):
[Message part 1 (text/plain, inline)]
I have noticed that when running 'cat' to look at certain files that for
some reason the end of the file is in a different embolden colour, which
then makes all of my Terminal text that colour as well as bold.
An example is when I ran: cat /bin/systemd-ask-password
And this is what happened (Bold_Red_Terminal_Cat_Command.bmp):
And this is the colour that I should be seeing (Terminal_prompt_normal.bmp):
And the only way to get rid of the strange styling change and to return to
normal appears to be to restart Terminal or to view a file which does not
have this very strange effect.
[Message part 2 (text/html, inline)]
[Terminal_prompt_normal.bmp (image/bmp, inline)]
[Bold_Red_Terminal_Cat_Command.bmp (image/bmp, inline)]
[Bold_Red_Terminal_Cat_Command.bmp (image/bmp, attachment)]
[Terminal_prompt_normal.bmp (image/bmp, attachment)]
Reply sent
to
Eric Blake <eblake <at> redhat.com>
:
You have taken responsibility.
(Fri, 01 May 2015 15:40:03 GMT)
Full text and
rfc822 format available.
Notification sent
to
Nikita Yerenkov-Scott <yerenkov.scott <at> gmail.com>
:
bug acknowledged by developer.
(Fri, 01 May 2015 15:40:09 GMT)
Full text and
rfc822 format available.
Message #10 received at 20482-done <at> debbugs.gnu.org (full text, mbox):
[Message part 1 (text/plain, inline)]
tag 20482 notabug
thanks
On 12/31/1969 05:00 PM, wrote:
> I have noticed that when running 'cat' to look at certain files that for
> some reason the end of the file is in a different embolden colour, which
> then makes all of my Terminal text that colour as well as bold.
>
> An example is when I ran: cat /bin/systemd-ask-password
>
> And this is what happened (Bold_Red_Terminal_Cat_Command.bmp):
Please do NOT attach megabytes of screenshots into something that will
be disseminated via mailing list to multiple readers. At a minimum,
compress your image using a sane format like .png (rather than blasting
out an uncompressed .bmp) or further compress it with xz or gzip, even
better is to merely post a URL to a link that is hosting the image for
those that want to see it, without clogging inboxes of all list readers.
That said, this is not a bug in cat, but a problem with you making the
mistake of using 'cat' on a binary file, where the file had embedded
byte sequences that the terminal interpreted as commands to change the
terminal color. It is never a good idea to cat a binary file to the
terminal, but we cannot change the behavior of cat (which is required to
operate on binary files) nor of the terminal (which must operate on
terminal command sequences as requested).
Meanwhile, you can try and reset your terminal back to normal color by
doing things like 'tput reset' or even 'ls -d . --color=always'.
As this is not a bug in coreutils, I'm closing out the bug report;
however, feel free to ask further questions on the topic.
--
Eric Blake eblake redhat com +1-919-301-3266
Libvirt virtualization library http://libvirt.org
[signature.asc (application/pgp-signature, attachment)]
Added tag(s) notabug.
Request was from
Eric Blake <eblake <at> redhat.com>
to
control <at> debbugs.gnu.org
.
(Fri, 01 May 2015 15:46:01 GMT)
Full text and
rfc822 format available.
bug archived.
Request was from
Debbugs Internal Request <help-debbugs <at> gnu.org>
to
internal_control <at> debbugs.gnu.org
.
(Sat, 30 May 2015 11:24:07 GMT)
Full text and
rfc822 format available.
This bug report was last modified 10 years and 25 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.