Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!mnetor!uunet!ukma!nrl-cmf!ames!necntc!dandelion!ulowell!page From: page@ulowell.cs.ulowell.edu (Bob Page) Newsgroups: comp.sys.amiga Subject: Re: cli <-> console.device query Message-ID: <2048@ulowell.cs.ulowell.edu> Date: Tue, 24-Nov-87 18:54:14 EST Article-I.D.: ulowell.2048 Posted: Tue Nov 24 18:54:14 1987 Date-Received: Sat, 28-Nov-87 08:06:33 EST References: <8711231609.AA20634@jade.berkeley.edu> Reply-To: page@swan.ulowell.edu (Bob Page) Organization: University of Lowell, Computer Science Dept. Lines: 38 G35@DHDURZ1.BITNET wrote: >I tried to 'RUN' my shell-program and to 'transmit' the command line to the >CLI process. RUNning a program is the same as having it in the foreground, except that you don't have a console window and you don't have a CLI struct. Granted, they can be pretty major differences... > Browsing through memory I found a buffer where the console.device >(that's what I suppose) stores keyboard entries. This buffer can be >found with >buffer=(((struct FileHandle*)BADDR(CliProcess->pr_CIS))->fh_Type)+136; Holy private data space, Batman! [I suspect it is CON: and not console.device you are looking at] >The buffer holds 256 characters and is followed by an LONG pointer, >pointing at the last byte entered. Around October '85 Eric Lavitsky made the same conclusion. I don't know if he worked it out as well as you did, however. >Does anyone have an INCLUDE - File for that buffer ? Don't ever expect to see one, as you are looking into somebody's private buffer. >I'm shure that this is a totally wrong approach to the problem. That's a real good bet. :-) Expect this to break in the next KS/WB rev. I admire your hack, though. Maybe you should talk to Jim Goodnow :-) ..Bob -- Bob Page, U of Lowell CS Dept. page@ulowell.edu ulowell!page "I've never liked reality all that much, but I haven't found a better solution." --Dave Haynie, Commodore-Amiga