Annotation of coherent/g/usr/bin/vi/Changes.mwc, revision 1.1.1.1

1.1       root        1: Changes to elvis for 386 COHERENT, from version 1.5 to date.
                      2: Fri Jul  3 19:17:43 1992 CDT
                      3: 
                      4: 1.  Beep doesn't work if /etc/termcap for the terminal lacks a "vb" entry.
                      5: Change is in tio.c/beep():
                      6: --
                      7:        else if (*o_errorbells)
                      8:        {
                      9: #if COHERENT
                     10:                tputs("\007", 1, faddch);
                     11: #else
                     12:                ttywrite("\007", 1);
                     13: #endif
                     14:        }
                     15: This fix appeared in the 1.6 release of elvis.
                     16: --
                     17: 
                     18: 2.  If /etc/termcap for your terminal has kl=^H, then you can't backspace
                     19: properly in input mode.  Change is in curses.c/starttcap():
                     20: --
                     21:        mayhave(&KL, "kl");             /* left */
                     22: #if COHERENT
                     23:        if (strcmp(KL, "\b")==0)
                     24:                KL = 0;
                     25: #endif
                     26:        mayhave(&KR, "kr");             /* right */
                     27: Something like this appeared in 1.6, but used KR instead of KL.  I changed
                     28: it again.
                     29: -- 
                     30: 
                     31: 3.  I may log in from the system console (which supports color changes)
                     32: or from a monochrome terminal.  My .exrc has a color setting.  To avoid
                     33: a cascade of "set color..." messages when logging in at the terminal,
                     34: I changed curses.c/ansicolor():
                     35: --
                     36:        /* if not ANSI-ish, then fail */
                     37:        if (strcmp(UP, "\033[A") && strcmp(UP, "\033OA"))
                     38:        {
                     39: #if COHERENT
                     40:                return 1;
                     41: #else
                     42:                msg("Don't know how to set colors for this terminal");
                     43:                return 0;
                     44: #endif
                     45:        }
                     46: Changed again in 1.6.
                     47: --
                     48: 
                     49: 4.  In a similar vein to #3, if my terminal doesn't have function keys
                     50: but the console does, I don't want to flip through a batch of error
                     51: messages when logging in on the console, so I changed cmd1.c/cmd_map():
                     52: --
                     53:                        if (FKEY[key])
                     54:                                mapkey(FKEY[key], mapto, bang ? WHEN_VIINP|WHEN_VIREP : WHEN_VICMD, fnames[key]);
                     55: #if !COHERENT
                     56:                        else
                     57:                                msg("This terminal has no %s key", fnames[key]);
                     58: #endif
                     59: Changed again in 1.6 - hws.
                     60: 
                     61: Added in 1.6:
                     62: 
                     63: 5.  config.h - TMPDIR -> /usr/tmp like minix
                     64: 
                     65: 6.  vi.h no longer needs special case for COHERENT on fcntl.h
                     66: 
                     67: 7.  Added printf to ref to display name of file where the symbol is defined.
                     68: 
                     69: 8.  Changed parser in ctags.c - with "-v" on, it was recognizing
                     70:     ^int       foo();$
                     71:     as a variable declaration.
                     72: 
                     73: 9.  Regarding the shift-K command in elvis - if you set "kp" as in
                     74:     coherent.rc, you will get COHERENT on-line help for such things
                     75:     as printf.  Or you can set it to just help (for COHERENT command
                     76:     help), or man (for the lengthier COHERENT manual entries), or to
                     77:     ref for the elvis default.  In this case, it is helpful to set
                     78:     TAGPATH if your sources are spread over several directories.
                     79: 
                     80: 10. Added coherent.rc file with colors for VGA coherent console, kp
                     81:     setting so shift-K gives you COHERENT library help on the word
                     82:     under the cursor.
                     83: 
                     84: 11. To allow work with preliminary X11, add code in curses.c to check
                     85:     the environment for COLUMNS and LINES.
                     86: 
                     87: 12. Now that VMIN/VTIME are working, use the version of ttyread() in
                     88:     unix.c that uses these.  This improves response time to ESC markedly!
                     89: 
                     90: 13. config.h - COH 386 cc now sends error output to stderr, so avoid
                     91:     special REDIRECT.
                     92: --
                     93: -Hal Snyder, M.D.-      Mark Williams Company     (708)-291-6700 (voice)
                     94: [email protected]                Technical Staff          (708)-291-6750 (fax)

unix.superglobalmegacorp.com

This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.