Bug in tset(1)

Steve Zimmerman z at cca.UUCP
Mon Apr 30 04:29:57 AEST 1984


Description:
	tset(1) does not initialize tabs correctly on terminals with
	settable tab stops.  Specifically, it does not set a tab at
	column 0, so that a tab given from column 72 on a terminal with
	auto wrap will incorrectly tab to column 8 on the next line,
	instead of column 0.
Repeat-By:
	Take a terminal with settable tab stops and auto wrap and issue
	the tset(1) command.  Put the terminal in local mode and keep
	hitting the tab key; notice that after column 72 the next tab
	stop is at column 8.
Fix:

*** tset.c~	Tue Apr  3 00:26:01 1984
--- tset.c	Sun Apr 29 14:21:11 1984
***************
*** 1291,1297
  		tputs(clear_tabs, 0, prc);
  	}
  	if (set_tab) {
! 		for (c=8; c<columns; c += 8) {
  			/* get to that column. */
  			tg_out = "OOPS";	/* also returned by tgoto */
  			if (set_column)

--- 1291,1297 -----
  		tputs(clear_tabs, 0, prc);
  	}
  	if (set_tab) {
! 		for (c=0; c<columns; c += 8) {
  			/* get to that column. */
  			tg_out = "OOPS";	/* also returned by tgoto */
  			if (set_column)



More information about the Comp.bugs.4bsd.ucb-fixes mailing list