Path: utzoo!utgpu!news-server.csri.toronto.edu!rutgers!usc!rpi!clarkson!elmo From: elmo@clarkson.edu (Paul B. Davidson) Newsgroups: comp.os.minix Subject: 1.5.10 Console driver problem Summary: I've noticed a problem with the console's treatment of \n and \r Keywords: console.c 1.5.10 Message-ID: Date: 13 Mar 91 01:35:05 GMT Sender: usenet@grape.ecs.clarkson.edu Organization: Clarkson University Lines: 36 Hello, all First off, apologies if you see this twice. I've been having posting problems, and I don't think my first attempt made it offsite. The problem I have noticed is that \n and \r give "wrong" results on the console. Specifically, I have a test program that prints 80 characters, starting at col 0, and then prints a \n to force to the next line. Expected response is a continuous block of text, but the actual response is that every other line of output is blank. Carriage return (\r) has a similar misfeature, in that a solid block of text is produced, and no output is overwritten. When I looked deep into the source, and poked around with my test program, I seemed to have tracked the actual problem, although I've not found the actual bug. Essentially, when the \n or \r is output, the console first treats it as a regular character, and outputs it to the screen, which effectively rolls the current cursor pos around to the left side of the screen. Then, the special character function is performed, either moving the cursor down one line to pos 0, or simply returning the cursor to position 0. I've noticed this problem having an effect on mainframe communications using term, and occasionally with elvis's treatment of lines longer than 80 characters. The hardware I'm running minix on is a Zenith 80286 AT Clone, with 1.5M memory, and a monochrome EGA. If anyone has seen this behavior, and has solved the problem, please let me know. I'm more than willing to hack the kernel to fix it myself, but I don't want to reinvent the patch. :-) -Paul B. Davidson, elmo@sun.soe.clarkson.edu -- Paul B. Davidson, elmo@sun.soe.clarkson.edu ELMO@CLVM : BITNET ..!dumb!dumb!smart!sun.soe.clarkson.edu!elmo :Old-Style UUCP