Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!tut.cis.ohio-state.edu!ucbvax!pasteur!helios.ee.lbl.gov!epb2.lbl.gov!envbvs From: envbvs@epb2.lbl.gov (Brian V. Smith) Newsgroups: comp.windows.x Subject: xterm doing "restore cursor" incorrectly Keywords: DECRC Message-ID: <2686@helios.ee.lbl.gov> Date: 20 May 89 00:21:19 GMT Sender: usenet@helios.ee.lbl.gov Lines: 25 xterm is restoring the cursor to the wrong row position with the ESC 8 restore cursor (DECRC) sequence. It was subtracting the value of the top margin from the row. Here is a patch to fix that bug. *** cursor.c.orig Fri Oct 7 11:17:28 1988 --- cursor.c Fri May 19 17:14:34 1989 *************** *** 255,259 screen->curgr = sc->curgr; term->flags &= ~(BOLD|INVERSE|UNDERLINE|ORIGIN); term->flags |= sc->flags & (BOLD|INVERSE|UNDERLINE|ORIGIN); ! CursorSet(screen, sc->row - screen->top_marg, sc->col, term->flags); } --- 255,259 ----- screen->curgr = sc->curgr; term->flags &= ~(BOLD|INVERSE|UNDERLINE|ORIGIN); term->flags |= sc->flags & (BOLD|INVERSE|UNDERLINE|ORIGIN); ! CursorSet(screen, sc->row, sc->col, term->flags); } _____________________________________ Brian V. Smith (bvsmith@lbl.gov) Lawrence Berkeley Laboratory We don't need no signatures!