The macosxhints Forums

The macosxhints Forums (http://hintsforums.macworld.com/index.php)
-   UNIX - General (http://hintsforums.macworld.com/forumdisplay.php?f=16)
-   -   Broken clear, tset, tput (http://hintsforums.macworld.com/showthread.php?t=1909)

Arakageeta 03-27-2002 07:20 PM

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.
After reading the man page for clear, I decided to investigate tset and tput (they're "See Also"). It appears those are broken as well.

For tset:
Code:

tset: unknown terminal type vt100
Terminal type? vt100

Anyone know what is broken with my terminal?? This is a real pain!

Thanks,
Glenn

xchanyazy 03-27-2002 07:33 PM

In Terminal.app preferences > Emulation, do you have Strict vt100 emulation checked?

Arakageeta 04-01-2002 01:33 AM

nope.
 
No, but I get the same behavior in either case.

acrollet 04-04-2002 11:54 AM

does /usr/share/misc/termcap exist?

Arakageeta 04-04-2002 02:45 PM

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'

Arakageeta 04-08-2002 02:57 PM

bump. :(

acrollet 04-08-2002 04:42 PM

does the command

sudo grep vt100 /usr/share/misc/termcap

return anything?

Arakageeta 04-08-2002 06:27 PM

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?

acrollet 04-08-2002 06:57 PM

try re-building the termcap db with the command:

cap_mkdb -f /usr/share/misc/termcap.db /usr/share/misc/termcap

Arakageeta 04-09-2002 01:10 PM

Still no luck.

mervTormel 04-09-2002 01:22 PM

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.

Arakageeta 04-11-2002 03:31 PM

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.

mervTormel 04-11-2002 05:17 PM

Quote:

Isn't the FirstAid utility a GUI front end to some commandline disk util? Is it 'fsck'?
yep. but you won't be able to run it on the partition you boot from, right?

could you please provide us with the results of the following command:
Code:

% setenv | grep -i term
TERM_PROGRAM=Apple_Terminal
TERMCAP=d0|vt100|vt100-am|vt100am|dec vt100:    :do=^yada lots of goo here
TERM=vt100
TERM_PROGRAM_VERSION=57


Arakageeta 04-11-2002 06:59 PM

No problem:
Code:

TERM=vt100
TERMCAP=d0|vt100|vt100-am|vt100am|dec vt100:    :do=^J:co#80:li#24:cl=\E[;H\E[2J:sf=2*\ED:      :le=^H:bs:am:cm=5\E[%i%d;%dH:nd=2\E[C:up=2\E[A: :ce=3\E[K:cd=50\E[J:so=2\E[7m:se=2\E[m:us=2\E[4m:ue=2\E[m:      :md=2\E[1m:mr=2\E[7m:mb=2\E[5m:me=2\E[m:        :rf=/usr/share/tabset/vt100:    :rs=\E>\E[?3l\E[?4l\E[?5l\E[?7h\E[?8h\E[;r\E[0m\E(B\E)B\E[2J:  :ks=\E[?1h\E=:ke=\E[?1l\E>:    :ku=\EOA:kd=\EOB:kr=\EOC:kl=\EOD:kb=^H: :ho=\E[H:k1=\EOP:k2=\EOQ:k3=\EOR:k4=\EOS:pt:sr=2*\EM:vt#3:xn:  :sc=\E7:rc=\E8:cs=\E[%i%d;%dr:
TERM_PROGRAM=Apple_Terminal
TERM_PROGRAM_VERSION=57

I notice that my TERM=vt100 is at the top instead of the bottom like your example.

[edit: there were smilies lurking in my terminal... :) ]

mervTormel 04-11-2002 08:01 PM

Quote:

I notice that my TERM=vt100 is at the top instead of the bottom like your example.
mox nix.

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.

Arakageeta 04-11-2002 08:12 PM

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.

stetner 04-14-2002 03:23 AM

Maybe this might show something useful:
Code:

% toe | egrep '^vt100'
vt100          dec vt100 (w/advanced video)
vt100-nav      vt100 without advanced video option
vt100-nav-w    dec vt100 132 cols 14 lines (no advanced video option)
vt100-s        vt100 for use with top sysline
vt100-s-bot    vt100 for use with bottom sysline
vt100-vb        dec vt100 (w/advanced video) & no beep
vt100-w        dec vt100 132 cols (w/advanced video)
vt100-w-nam    dec vt100 132 cols (w/advanced video no automargin)
vt100nam        vt100 no automargins
% echo TERCAP | captoinfo
vt100|vt100-am|vt100am|dec vt100,
        am, xenl,
        cols#168, it#8, lines#35, vt#3,
        bel=^G, blink=\E[5m$<2/>, bold=\E[1m$<2/>,
        clear=\E[;H\E[2J, cr=^M, csr=\E[%i%p1%d;%p2%dr, cub1=^H,
        cud1=^J, cuf1=\E[C$<2/>, cup=\E[%i%p1%d;%p2%dH$<5/>,
        cuu1=\E[A$<2/>, ed=\E[J$<50/>, el=\E[K$<3/>, home=\E[H,
        ht=^I, ind=\ED$<2*/>, kbs=^H, kcub1=\EOD, kcud1=\EOB,
        kcuf1=\EOC, kcuu1=\EOA, kf1=\EOP, kf2=\EOQ, kf3=\EOR,
        kf4=\EOS, nel=\r\ED$<2*/>, rc=\E8, rev=\E[7m$<2/>,
        rf=/usr/share/tabset/vt100, ri=\EM$<2*/>,
        rmkx=\E[?1l\E>, rmso=\E[m$<2/>, rmul=\E[m$<2/>,
        rs2=\E>\E[?3l\E[?4l\E[?5l\E[?7h\E[?8h\E[;r\E[0m\E(B\E)B\E[2J,
        sc=\E7, sgr0=\E[m$<2/>, smkx=\E[?1h\E=, smso=\E[7m$<2/>,
        smul=\E[4m$<2/>,

The only problem is that I think toe and captoinfo are fink utils that come with ncurses

Arakageeta 04-14-2002 06:52 PM

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?

stetner 04-15-2002 09:28 AM

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.....

Arakageeta 04-15-2002 01:36 PM

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.