kipnis@janus.Berkeley.EDU (Gary Kipnis) (10/05/89)
Hi everyone, I have an 80x25 array of char, and I am trying to dump it to a file using MSC's write(). The problem occurrs when there are exactly 80 chars in any row, since I have to add CR and LF to the end of the row s.t. I get DOS' return char, the actual line ends up taking 82 char and when I use DOS' 'type' command a line would take up 2 line with second line being blank. If I were to print only 78 char, I could make 79's char == CR and 80's == LF, but how do I go about printing lines with 80 characters and only getting 1 line on the screen per a line of characters. Thank You, gary
davidsen@crdos1.crd.ge.COM (Wm E Davidsen Jr) (10/05/89)
In article <31696@ucbvax.BERKELEY.EDU>, kipnis@janus.Berkeley.EDU (Gary Kipnis) writes: | 80's == LF, but how do I go about printing lines with 80 characters | and only getting 1 line on the screen per a line of characters. I assume you're running ANSI.SYS or something like it. There is an escape sequence to turn off line wrap. I don't have my manual right here, but that's the one you want. It *may* be \e[?7h (where \e means escape), but I'm not sure. -- bill davidsen (davidsen@crdos1.crd.GE.COM -or- uunet!crdgw1!crdos1!davidsen) "The world is filled with fools. They blindly follow their so-called 'reason' in the face of the church and common sense. Any fool can see that the world is flat!" - anon