Article 1926 of comp.sys.amiga: Path: mcdsun!noao!hao!hplabs!sdcrdcf!ucla-cs!rutgers!cbmvax!carolyn From: carolyn@cbmvax.cbm.UUCP (Carolyn Scheppner) Newsgroups: comp.sys.amiga Subject: Re: CURSOR POSITION REPORT Message-ID: <1341@cbmvax.cbmvax.cbm.UUCP> Date: 4 Feb 87 17:40:55 GMT References: <755@crash.CTS.COM> Reply-To: carolyn@cbmvax.UUCP (Carolyn Scheppner) Organization: Commodore Technology, West Chester, PA Lines: 199 In article <755@crash.CTS.COM> billk@pnet01.CTS.COM (Bill Kelly) writes: >... >Does anyone have a working example of how to get the Console device to report >the current cursor position to you? I have tried many times, following >different tidbits of information but have never been successful. >... I've never used the ESC sequence method of getting cursor position reports in the read stream. You don't say if you're in the CLI window or in an Intuition window with a console.device. This example shows (among other things) how to get the pointer to the ConUnit structure of the CLI window using a DiskInfo packet. The ConUnit structure contains lots of neat things, including current and maximum cursor character positions. If you're in an Intuition window with a console device attached, you should be able to find the ConUnit pointer in YourIoRequest->io_Unit. -- =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= Carolyn Scheppner -- CBM >>Amiga Technical Support<< UUCP ...{allegra,caip,ihnp4,seismo}!cbmvax!carolyn PHONE 215-431-9180 =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=