[comp.windows.x] vi and xterm

brossard%litsun2.epfl.ch@MITVMA.MIT.EDU (02/16/89)

                [Sent: Thu. 16/Feb./89  Time: 13:26]
>    While I'm at it, there's another minor annoyance.  The xterm window is
>    generally like a vt100, but it doesn't seem to know how to move the text
>    down.  When I give vi a 'o' or 'O' command, no blank line appears, and the
>    bottom part of the screen stays unmoved.

        I encountered the same problem, the fix (reported to xbug) is the
following: (xterm, cursor.c)
*** /tmp/geta400        Thu Feb 16 13:25:06 1989
--- /tmp/getb400        Thu Feb 16 13:25:06 1989
***************
*** 255,259 ****
--- 256,270 ----
        screen->curgr = sc->curgr;
        term->flags &= ~(BOLD|INVERSE|UNDERLINE|ORIGIN);
        term->flags |= sc->flags & (BOLD|INVERSE|UNDERLINE|ORIGIN);
+ #ifdef        LIT
+ /*
+       CursorSet will not take into account top_marg unless the ORIGIN
+    flag is set.  So we have to take that into account.  What is the
+    ORIGIN flag???
+ */
+       CursorSet(screen, (term->flags & ORIGIN) ? sc->row - screen->top_marg :
+                       sc->row, sc->col, term->flags);
+ #else LIT
        CursorSet(screen, sc->row - screen->top_marg, sc->col, term->flags);
+ #endif        LIT
  }

        Fairly simple to fix,

                                        Alain Brossard