diff options
author | Todd C. Miller <millert@cvs.openbsd.org> | 2000-02-26 22:53:17 +0000 |
---|---|---|
committer | Todd C. Miller <millert@cvs.openbsd.org> | 2000-02-26 22:53:17 +0000 |
commit | ac2dd1683fd459fc832d940eea325eb1725424bb (patch) | |
tree | 1a5cdc9d6300b1a29ff65c02960159db2bdfb9ad /usr.bin/mg/def.h | |
parent | c198e5bf8d551492a685ce1c4ab327ceac70a790 (diff) |
change WINDOW -> MGWIN to avoid curses type conflict
convert to terminfo in tty*.c
add support for some keypad function keys (arrows, pgup, pgdown)
Diffstat (limited to 'usr.bin/mg/def.h')
-rw-r--r-- | usr.bin/mg/def.h | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/usr.bin/mg/def.h b/usr.bin/mg/def.h index 5fc2cbedc03..bf8acb24b8b 100644 --- a/usr.bin/mg/def.h +++ b/usr.bin/mg/def.h @@ -170,7 +170,7 @@ typedef struct LINE { */ typedef struct LIST { union { - struct WINDOW *l_wp; + struct MGWIN *l_wp; struct BUFFER *x_bp; /* l_bp is used by LINE */ struct LIST *l_nxt; } l_p; @@ -192,7 +192,7 @@ typedef struct LIST { * terms of decoupling, the full blown redisplay is just too * expensive to run for every input character. */ -typedef struct WINDOW { +typedef struct MGWIN { LIST w_list; /* List header */ struct BUFFER *w_bufp; /* Buffer displayed in window */ struct LINE *w_linep; /* Top line in the window */ @@ -204,7 +204,7 @@ typedef struct WINDOW { char w_ntrows; /* # of rows of text in window */ char w_force; /* If NZ, forcing row. */ char w_flag; /* Flags. */ -} WINDOW; +} MGWIN; #define w_wndp w_list.l_p.l_wp #define w_name w_list.l_name @@ -279,14 +279,14 @@ extern int curgoal; extern int epresf; extern int sgarbf; extern int mode; -extern WINDOW *curwp; +extern MGWIN *curwp; extern BUFFER *curbp; -extern WINDOW *wheadp; +extern MGWIN *wheadp; extern BUFFER *bheadp; extern char pat[]; extern BUFFER *bfind(); -extern WINDOW *popbuf(); -extern WINDOW *wpopup(); +extern MGWIN *popbuf(); +extern MGWIN *wpopup(); extern LINE *lalloc(); extern LINE *lallocx(); extern VOID ewprintf(); |