[comp.windows.x] xterm doing "restore cursor" incorrectly

envbvs@epb2.lbl.gov (Brian V. Smith) (05/20/89)

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!