termcap use in more

Lyle McElhaney lmc at denelcor.UUCP
Fri Nov 16 04:19:29 AEST 1984


I was incorporating the bug fixes from the net in more.c and noticed
something that seemed to me to be somewhat odd. It is perhaps not a bug
but more a question of why.

Setting the variable hardtab is done by:

	hardtabs = !(otty.sg_flags & XTABS);

Now, most everyone's tty flags are set by getty (the ht declaration in
gettytab). Getty doesn't know whether or not the terminal has hardware tabs;
It is just set (or reset) willy-nilly. The pt termcap variable, on the other
hand, presumably is correct about that feature. Why is not the termcap
consulted, rather than the tty structure? Am I missing something?
-- 
		Lyle McElhaney
		(hao,brl-bmd,nbires,csu-cs,scgvaxd)!denelcor!lmc



More information about the Comp.unix mailing list