![]() |
Broken clear, tset, tput
After running Norton Utils, I have had trouble with the 'clear' command. I am returned this error:
Code:
'vt100': unknown terminal type.For tset: Code:
tset: unknown terminal type vt100Thanks, Glenn |
In Terminal.app preferences > Emulation, do you have Strict vt100 emulation checked?
|
nope.
No, but I get the same behavior in either case.
|
does /usr/share/misc/termcap exist?
|
yes
Yes, termcap does exist-- and it is a very large and ugle text file. :)
As I understand termcap is a sort of terminal configuration file?? Also in /usr/share/misc/ is a file called 'termcap.db' |
bump. :(
|
does the command
sudo grep vt100 /usr/share/misc/termcap return anything? |
Yes, it does-- quite a bit actually. I won't post it here though-- I mean, grep takes the lines where vt100 appear out of context.
So what are you supposing is wrong? |
try re-building the termcap db with the command:
cap_mkdb -f /usr/share/misc/termcap.db /usr/share/misc/termcap |
Still no luck.
|
back to the original post, you claim that this problem occurred after running the dreaded norton utils.
answer: which version? from which OS? did it find trouble? if so, what kind and did you let it repair? is there a /lost+found directory in the root dir? have you done a single-user fsck on your install? if so, what were the results? and just for grins, do you have ~/.termcap and ~/.terminfo/ files in your home dir? the answer to these questions could indicate a course of action. |
Groovy. Okay, so I used Norton v6. I believe Symantec *claims* that it is OS X safe... Anyhow, I ran it from an OS 9.1 boot disk. As to what it did... I've been dealing with a broken 'clear' since late January. It's been a long time. As to what I told Norton to do, well... I nievely just told it to fix whatever it thought needed fixing-- never again.
As for lost+found, no folder called lost+found. I haven't done anything with 'fsck' -- at least not in single user mode (I don't think I've ever gone into that either). Isn't the FirstAid utility a GUI front end to some commandline disk util? Is it 'fsck'? Lastly, no ~/termcap stuff. It is also probably worth noting that when I first noticed 'clear' was broken, 'ld' was borken as well-- I couldn't even compile Hello World in c. It took a reinstall of the dev tools to fix this. I think both 'clear' and 'ld' were broken at the same time. Thanks for all your help so far. |
Quote:
could you please provide us with the results of the following command: Code:
% setenv | grep -i term |
No problem:
Code:
TERM=vt100[edit: there were smilies lurking in my terminal... :) ] |
Quote:
i jest can't figger where yer trouble lies. i reckon it's real simple, or terrible hard, to fixify. some file is discombobulated somewheres. |
Forgot to tell you: Yeah, I've run FirstAid off of the OS X install CD. :( Well, thanks for all your help-- far more attention and attempts here at this forum than any other.
|
Maybe this might show something useful:
Code:
% toe | egrep '^vt100' |
ahaha!
stetner--
"echo TERCAP | captoinfo" gives me the same output as you. HOWEVER, "toe | egrep '^vt100'" does not. Rather I am returned the following error message: "toe: couldn't open terminfo file 1178." Could this be a lead to figuring out what is wrong here? |
Well, do the files:
/sw/share/terminfo/v/vt100 /sw/share/terminfo/v/vt100-am /sw/share/terminfo/v/vt100-bm ... ... exist? You are probably calling: /sw/bin/clear Which is looking for the above files (terminfo files) try: /usr/bin/clear I would probably re-install the ncurses software with fink and see how you go..... |
Woohoo!!!
Well that's annoying-- /sw/bin/clear becoming my clear command. I thought the whole point of having an sw directory was to keep things seperate from the rest of OS X.
Anyhow, /usr/bin/clear *did* not work either. Both the usr and sw command exited with a similar error message. Like I said, *did* not work. It does now. stetner had the right solution. I simply did 'fink reinstall ncurses' -- now 'clear' works again (both usr and sw). Awesome. Thanks a whole lot. Here's one last quick question: How do I get clear to default to /usr/bin/clear instead of /sw/bin/clear without having to alias my clear? |
| All times are GMT -5. The time now is 05:32 PM. |
Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.
Site design © IDG Consumer & SMB; individuals retain copyright of their postings
but consent to the possible use of their material in other areas of IDG Consumer & SMB.