Path: utzoo!censor!geac!jtsv16!lsuc!canrem![glen.lalonde@canrem.uucp] From: "glen lalonde" Newsgroups: comp.os.minix Subject: macminix. Message-ID: <1991Feb26.1046.1856@canrem.uucp> Date: 26 Feb 91 10:01:37 EST Reply-To: "glen lalonde" Distribution: comp Organization: Canada Remote Systems My first version of this message did not seem to make it to the net, so here we go agin. I posted a patch to kernel/console.c a few weeks back that was to enable linewrap. Later after I noticed how it broke the full screen editors I indicated one should not use the patch. I have a new version that checks the mode of the tty before enabling linewrap. This gets around the problem of one needing to turn off linewrap when in vi. In kernel/console.c put: if (v->ccol >(LINEWRAPPOS-2)) { i = (v==&vduinfo[1]); /* console 0 or 1 */ if ((tty_struct[i].tty_mode & (RAW | CBREAK)) ==0) { if (v->crow ==NROW-1) { for (i=0; icrow,0); } else vdumoveto(v->crow +1,0); } else vdumoveto(v->crow, v->ccol+1); } else vdumoveto(v->crow, v->ccol+1); I think the original code had just vdumoveto(v->crow,v->ccol+1); You will need to #define LINEWRAPPOS 80 at the top of the file. You may also need a 'int i;' at the top of the function, vduput which is where the changes are. There is a bug in that when you are at the top of the screen in elvis and hit 9 uparrow the screen does not get updated correctly. It only updates correctly if you go up one line at a time. Anyone have a fix to that one? -- Canada Remote Systems. Toronto, Ontario NorthAmeriNet Host