Score:0

root$ tput sgr0 0 - unknown terminfo capability '0'

cn flag

After upgrading from Fedora Core 36 to 37 I noticed that tput sgr0 0 has started reporting errors for root, but not for other users.

root$ tput -V
ncurses 6.2.20201017

root$ echo $TERM
xterm-256color

root$ tput sgr0 0
tput: unknown terminfo capability '0'

I realize that I must have added the last 0 in my script by mistake and that it should simply be tput sgr0 - but for some reason this output only shows up when running as root and it didn't show up in FC36 so I got curious about it. It doesn't matter if I use or - same thing.

root has the same TERM as my normal users for whom this output doesn't show up. The characters printed prior to, and after, the sgr0 0 sequence is also the same for all users (including root). It's a ~ before and a space after.

Can someone explain what's going on?

I sit in a Tesla and translated this thread with Ai:

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.