home *** CD-ROM | disk | FTP | other *** search
- *** 1.12 1992/06/03 15:39:50
- --- Changelo 1992/07/21 15:03:30
- ***************
- *** 154,156 ****
- --- 154,169 ----
- in flush_key_buff()
-
- -------------------------- Patchlevel 13 ---------------------------------
- +
- + clrtobot.c, erase.c, initscr.c, mincl, termcap.h, tputs.c, tstp.c:: ers
- + cleanup, casts etc
- +
- + xconsole.c:: ers
- + approximation for console_set_key functionality for MiNT using
- + ioctl(..., XKEY) (MiNT 0.94 or better required for this).
- +
- + name chances
- + mv id_subwin.c id_subwi.c
- + mv overwrite.c overwrit.c
- + mv toucholap.c touchola.c
- + -------------------------- Patchlevel 14 ---------------------------------
- *** 1.11 1992/06/03 15:39:50
- --- PatchLev.h 1992/07/21 15:03:31
- ***************
- *** 1,5 ****
- /*
- ! * PathLevel: 13
- *
- * the Patch Level above is to identify the version
- * of the all the files in this directory. given the above
- --- 1,5 ----
- /*
- ! * PathLevel: 14
- *
- * the Patch Level above is to identify the version
- * of the all the files in this directory. given the above
- *** 1.2 1989/08/07 00:19:47
- --- clrtobot.c 1992/07/21 15:03:32
- ***************
- *** 44,50 ****
- *sp = ' ';
- }
- if (minx != _NOCHANGE)
- ! touchline(win, y, minx, maxx - &win->_y[y][0]);
- startx = 0;
- }
- }
- --- 44,50 ----
- *sp = ' ';
- }
- if (minx != _NOCHANGE)
- ! touchline(win, y, minx, (int)(maxx - &win->_y[y][0]));
- startx = 0;
- }
- }
- *** 1.2 1989/08/07 00:20:00
- --- erase.c 1992/07/21 15:03:34
- ***************
- *** 47,53 ****
- *sp = ' ';
- }
- if (minx != _NOCHANGE)
- ! touchline(win, y, minx, maxx - win->_y[y]);
- }
- win->_curx = win->_cury = 0;
- }
- --- 47,53 ----
- *sp = ' ';
- }
- if (minx != _NOCHANGE)
- ! touchline(win, y, minx, (int)(maxx - win->_y[y]));
- }
- win->_curx = win->_cury = 0;
- }
- *** 1.4 1991/05/04 18:38:14
- --- initscr.c 1992/07/21 15:03:37
- ***************
- *** 56,62 ****
- _puts(TI);
- _puts(VS);
- # if defined(SIGTSTP) && defined(__MINT__)
- ! signal(SIGTSTP, tstp);
- # endif
- if (curscr != NULL) {
- # ifdef DEBUG
- --- 56,62 ----
- _puts(TI);
- _puts(VS);
- # if defined(SIGTSTP) && defined(__MINT__)
- ! signal(SIGTSTP, (__Sigfunc) tstp);
- # endif
- if (curscr != NULL) {
- # ifdef DEBUG
- *** 1.2 1991/05/04 18:38:14
- --- mincl 1992/07/21 15:03:38
- ***************
- *** 1,9 ****
- CURSEOBJ = addbytes.o addch.o addstr.o box.o clear.o clrtobot.o clrtoeol.o \
- cr_put.o cr_tty.o curses.o delch.o deleteln.o delwin.o endwin.o \
- ! erase.o fullname.o getch.o getstr.o id_subwin.o idlok.o \
- initscr.o insch.o insertln.o longname.o move.o mvprintw.o \
- ! mvscanw.o mvwin.o newwin.o overlay.o overwrite.o printw.o \
- ! putchar.o refresh.o scanw.o scroll.o standout.o toucholap.o \
- touchwin.o tstp.o unctrl.o
-
- TERMOBJ = tgetent.o tgetflag.o tgetnum.o tgetstr.o tgoto.o \
- --- 1,9 ----
- CURSEOBJ = addbytes.o addch.o addstr.o box.o clear.o clrtobot.o clrtoeol.o \
- cr_put.o cr_tty.o curses.o delch.o deleteln.o delwin.o endwin.o \
- ! erase.o fullname.o getch.o getstr.o id_subwi.o idlok.o \
- initscr.o insch.o insertln.o longname.o move.o mvprintw.o \
- ! mvscanw.o mvwin.o newwin.o overlay.o overwrit.o printw.o \
- ! putchar.o refresh.o scanw.o scroll.o standout.o touchola.o \
- touchwin.o tstp.o unctrl.o
-
- TERMOBJ = tgetent.o tgetflag.o tgetnum.o tgetstr.o tgoto.o \
- *** 1.3 1992/06/03 15:39:50
- --- termcap.h 1992/07/21 15:03:40
- ***************
- *** 28,34 ****
- __EXTERN void tputs __PROTO((char *cp, int affcnt, int (*outc)(int )));
-
- #ifdef __cplusplus
- ! extern "C" {
- #endif
-
- #endif /* _TERMCAP_H */
- --- 28,34 ----
- __EXTERN void tputs __PROTO((char *cp, int affcnt, int (*outc)(int )));
-
- #ifdef __cplusplus
- ! }
- #endif
-
- #endif /* _TERMCAP_H */
- *** 1.3 1991/05/04 18:38:14
- --- tputs.c 1992/07/21 15:03:41
- ***************
- *** 146,152 ****
- ptime *= 10;
- ptime += (*cp - '0');
- }
- ! ptime *= 10;
- if (*cp == '.') {
- cp++;
- if (isdigit(*cp)) {
- --- 146,153 ----
- ptime *= 10;
- ptime += (*cp - '0');
- }
- ! if (ptime)
- ! ptime *= 10;
- if (*cp == '.') {
- cp++;
- if (isdigit(*cp)) {
- *** 1.5 1991/05/04 18:38:14
- --- tstp.c 1992/07/21 15:03:41
- ***************
- *** 54,60 ****
- omask = sigsetmask(sigblock(0) &~ mask(SIGTSTP));
- kill(0, SIGTSTP);
- sigblock(mask(SIGTSTP));
- ! signal(SIGTSTP, tstp);
- _tty = tty;
- stty(_tty_ch, &_tty);
- wrefresh(curscr);
- --- 54,60 ----
- omask = sigsetmask(sigblock(0) &~ mask(SIGTSTP));
- kill(0, SIGTSTP);
- sigblock(mask(SIGTSTP));
- ! signal(SIGTSTP, (__Sigfunc)tstp);
- _tty = tty;
- stty(_tty_ch, &_tty);
- wrefresh(curscr);
- *** 1.9 1992/06/03 15:39:50
- --- xconsole.c 1992/07/21 15:03:42
- ***************
- *** 11,16 ****
- --- 11,18 ----
- */
-
- #include <osbind.h>
- +
- + #ifndef __MINT__
- #include <support.h>
- #include <stdlib.h>
- #include <ioctl.h>
- ***************
- *** 276,278 ****
- --- 278,348 ----
- }
- }
- }
- +
- + #else /* __MINT__ */
- +
- + /* a rough approximation for console_set_key using MiNT's
- + * XKEY ioctl
- + */
- +
- + #include <ioctl.h>
- + #include <keycodes.h>
- + #include <string.h>
- +
- + static struct DEFS {
- + int kcode, reg, shift;
- + } codes[] = {
- + { CURS_UP, 20, 28 },
- + { CURS_DN, 21, 29 },
- + { CURS_RT, 22, 30 },
- + { CURS_LF, 23, 31 },
- + { K_HELP, 24, 0 },
- + { K_UNDO, 25, 0 },
- + { K_INS, 26, 0 },
- + { K_HOME, 27, 0 },
- + { 0, 0, 0 }
- + };
- +
- + void
- + console_set_key(keycode, regular, shifted, alted)
- + int keycode;
- + char *regular, *shifted, *alted;
- + {
- + struct Xkey {
- + short xk_num;
- + char xk_def[8];
- + } xk;
- + int i;
- +
- + xk.xk_def[7] = 0;
- + if (keycode >= F_1 && keycode <= F_10) {
- + if (regular) {
- + xk.xk_num = keycode - F_1;
- + strncpy(xk.xk_def, regular, 7);
- + ioctl(0, TIOCSXKEY, &xk);
- + }
- + if (shifted) {
- + xk.xk_num = keycode - F_1 + 10;
- + strncpy(xk.xk_def, regular, 7);
- + ioctl(0, TIOCSXKEY, &xk);
- + }
- + return;
- + }
- + for (i = 0; codes[i].kcode; i++) {
- + if(keycode == codes[i].kcode) {
- + if (regular) {
- + xk.xk_num = codes[i].reg;
- + strncpy(xk.xk_def, regular, 7);
- + ioctl(0, TIOCSXKEY, &xk);
- + }
- + if (shifted && codes[i].shift) {
- + xk.xk_num = codes[i].shift;
- + strncpy(xk.xk_def, shifted, 7);
- + ioctl(0, TIOCSXKEY, &xk);
- + }
- + return;
- + }
- + }
- + }
- +
- + #endif /* __MINT__ */
-