From: bj@cbmvax.commodore.com (Brian Jackson - Amiga Networking)
Newsgroups: comp.sys.amiga.programmer
Subject: Re: Console Device problems
Message-ID: <34946@cbmvax.commodore.com>
Date: 9 Sep 92 04:01:52 GMT
References: <1992Sep8.113732.3126@ucc.su.OZ.AU>
Reply-To: bj@cbmvax.commodore.com (Brian Jackson - Amiga Networking)
Organization: Commodore, West Chester, PA
Lines: 26
In article <1992Sep8.113732.3126@ucc.su.OZ.AU> willw@extro.ucc.su.OZ.AU (William Waring) writes:
>Hi,
> I have been having a major problem with the console device in my program. I need some serious help on this!.
>
>I open the console.device for output on my main window. I output to it using CMD_WRITE, and I read keypressed using IDCMP_RAWKEY events (That is using the IDCMP Port of the window, not using RAW events from console). I am trying to open the console.device with charcter mapping and copy/pasyte support. The problem is, I can open the device alright and cursor appears fine, but as soon as I go to drag the mouse over some text and copy it, nothing happens.
>
> I have tried fiddling with IDCMP events, messages etc. I have tried sendoing off a fake read request to see if that is it, I have tried turning off the cursor etc, but I can't figure out why it won't let me snap charcters from the window.
>
> Does anyone have experience with opening console.device with copy/paste support. If you do could you PLEASE help. It's very important. Thanx in advance.
>
I'll assume that you are using V37 (2.04). You need to specify a unit
number of '1' if you want character mapped display or a unit number of
'3' if you want both character mapped display and cut&paste.
OpenDevice("console.device", 3L, IOStdReq, flags)
^^
Brian
+ + + + + + + + + + + + + + + + + + + + +
Brian Jackson Amiga Networking Group, Commodore-Amiga Inc.
bj@cbmvax.commodore.com
{uunet|rutgers}!cbmvax!bj or networking@cbmvax.commodore.com
"Pennsylvania - Land of (really) Bad Drivers." Uva uvam vivendo varia fit