From: Alan Cox Date: Wed, 7 Oct 2015 20:33:49 +0000 (+0100) Subject: coco3: allow normal tty ioctls on drivewire X-Git-Url: https://git.ndcode.org/public/gitweb.cgi?a=commitdiff_plain;h=1fb1e88b62886f3e47349a0c5198b99d11261637;p=FUZIX.git coco3: allow normal tty ioctls on drivewire I'll leave it to Brett to write graphics mode changing and routines to convert GFX_DRAW and friends into OS/9 escape sequences 8) --- diff --git a/Kernel/platform-coco3/devtty.c b/Kernel/platform-coco3/devtty.c index 3f757c82..074a1ea0 100644 --- a/Kernel/platform-coco3/devtty.c +++ b/Kernel/platform-coco3/devtty.c @@ -497,7 +497,8 @@ unsigned char vt_map(unsigned char c) int gfx_ioctl(uint8_t minor, uarg_t arg, char *ptr) { - if ( minor > 2 ) goto error; /* remove once DW get its own ioctl() */ + if ( minor > 2 ) /* remove once DW get its own ioctl() */ + return tty_ioctl(minor, arg, ptr); if (arg >> 8 != 0x03) return vt_ioctl(minor, arg, ptr); if (arg == GFXIOC_GETINFO)