Path: utzoo!utgpu!watserv1!watmath!att!pacbell!pacbell.com!mips!bridge2!jarthur!usc!zaphod.mps.ohio-state.edu!rpi!uupsi!grebyn!ckp From: ckp@grebyn.com (Checkpoint Technologies) Newsgroups: comp.sys.amiga Subject: Re: Difficulty in programming Message-ID: <20103@grebyn.com> Date: 3 Jun 90 20:06:00 GMT References: <2487@zipeecs.umich.edu> <1990Jun2.063414.10292@agate.berkeley.edu> Reply-To: ckp@grebyn.UUCP (Checkpoint Technologies) Organization: Grebyn Timesharing, Vienna, VA, USA Lines: 29 In article <1990Jun2.063414.10292@agate.berkeley.edu> laba-1ei@e260-2f (Joseph Chung) writes: >Try this one on for size: > >In an IBM (no flames please!), if I want to put a character anywhere on the >screen, I just >1. load a segment register with the segment of the screen. >2. write the proper byte to the screen location (using a simple offset) (In >short, is a basic POKE command!) > >How would you accomplish this in an Amiga? >Let's see. >1. Create my own screen, or should it be my window (damn, where did I put > my copy of NewWindow struct ...) You must admit that was not a great example. On both IBM (clone) systems and the Amiga, in C, you can open a file to the console and use ANSI control sequences for input and output; in fact one program can be written which will work equally well on both the IBM and the Amiga. (And further, you can be more sure that the program will work correctly on the Amiga because there's no prerequisite that the user choose to install the ANSI.SYS screen driver.) -- First comes the logo: C H E C K P O I N T T E C H N O L O G I E S / / \\ / / Then, the disclaimer: All expressed opinions are, indeed, opinions. \ / o Now for the witty part: I'm pink, therefore, I'm spam! \/