[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

getty not setting stty correctly - sparc serial console?

Please help me solve this problem

I've got openbsd 2.6 generic running on a sparc classic (sun4m).  I've
got this connected back to back via a serial cross-over cable to
another classic running solaris2.7.

When I tip from the solaris to the openBsd, getty (I think) appears to
incorrectly set the stty lines parameter.  (note, I'm getting into the
solaris box via xterm/ssh).

My bsd settings are:

	console "/usr/libexec/getty suncons"    xterm   on  secure
	S|suncons|Sun Console:\

Once logged in over the serial console, on the bsd I show

	... (rest of standard xterm termcap entry removed)

	term    xterm
stty -a
	speed 9600 baud; 34 rows; 80 columns;
	lflags: icanon isig iexten echo echoe -echok echoke -echonl echoctl
		-echoprt -altwerase -noflsh -tostop -flusho -pendin
	iflags: -istrip icrnl -inlcr -igncr ixon -ixoff ixany imaxbel -ignbrk
		brkint -inpck -ignpar -parmrk
	oflags: opost onlcr oxtabs
	cflags: cread cs8 -parenb -parodd hupcl -clocal -cstopb -crtscts
	cchars: discard = ^O; dsusp = ^Y; eof = ^D; eol = <undef>;
		eol2 = <undef>; erase = ^?; intr = ^C; kill = ^U; lnext = ^V;
		min = 1; quit = ^\; reprint = ^R; start = ^Q; status =
		stop = ^S; susp = ^Z; time = 0; werase = ^W;

Please note that the TERMCAP shows 24 lines but stty shows *34*.

top, vi, more/less all seem to obey the stty setting.  Changing the
stty setting allows the utilities to run ok.

stty is not being called from any login/cshrc scripts.

Can anyone explain this behavior.

Thanks in advance

Jack L. Poller
Hutzpah Consulting, Inc.

Visit your host, monkey.org