On 04/19/2010 08:45:39 PM, Cameron Simpson wrote:
On 19Apr2010 16:52, Geoffrey Leach geoff@hughes.net wrote: | On 04/19/2010 03:19:49 PM, Mikkel wrote: | > On 04/19/2010 04:08 PM, Geoffrey Leach wrote: | > > /usr/bin/gnome-terminal has suddenly started rejecting | > "TERM=xterm". | > | > > OK, so that's not true, but its been working since gnome-terminal | > > showed up. Anyone know what the appropriate setting is? | > > | > > Thanks. | > > | > Dumb question - why are you trying to set TERM? On my system, it | > already defaults to xterm. | > | > It would also help to know how you are setting TERM, and what error | > you are getting. | | geoff@mtranch[1]->echo $TERM | xterm | geoff@mtranch[2]->clear | 'xterm': unknown terminal type. | | On further thought, /usr/bin/clear is packaged with ncurses, and so one | would think that it would depend, ultimately, on /usr/share/terminfo/x/ | xterm,which exists and is readable. Hmmmm .... time for a reboot?
These are looked up on the fly, so a reboot should not help.
Try:
strace -e trace=file clear 2>str.out
and then examine str.out. Where is "clear" looking for terminal data?
Rebooting fixed the problem.
The data indeed comes from T/usr/share/terminfo/x/xterm, so I have to conclude that the file check was failing. I've seen this frequently, recently. After installing new rpms, things start failing, and a reboot solves the problem.
Thanks for the suggestion.