From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-1.3 required=5.0 tests=BAYES_00,INVALID_MSGID autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,b25b20d0724a5ccc X-Google-Attributes: gid103376,public From: Marin David Condic Subject: Re: Ms-dos windows Date: 2000/11/13 Message-ID: <3A0FE66E.DE5073CA@acm.org>#1/1 X-Deja-AN: 693051145 Content-Transfer-Encoding: 7bit References: <8un7b7$msq$1@reader1.fr.uu.net> X-Accept-Language: en X-Server-Date: 13 Nov 2000 13:03:04 GMT Content-Type: text/plain; charset=us-ascii Organization: Quadrus Corporation Mime-Version: 1.0 Newsgroups: comp.lang.ada Date: 2000-11-13T13:03:04+00:00 List-Id: Tom: Did I miss something here? I think the guy is just trying to get a plain-vanilla text_io thing to work from the window that pops up from AdaGide when you run. Is it possible that he has some sort of terminal emulation options set that is preventing the usual Ada.Text_IO stuff from coming out? I don't think its a case of escape sequences. He says he can't get my little "Hello_World" example to display text and I'm doubtful that it relies on anything unusual. MDC tmoran@acm.org wrote: > If you want to position and color text, there are three ways to do it: > 1) If you are using a version of Windows that supports ANSI.SYS, you > can send escape codes and treat the screen as an ANSI terminal. > Look at www.adapower.com to find Mike Feldman's packages. > 2) In a true Windows app, text is not written with Ada.Text_IO, nor > keystrokes gotten with Get_Immediate. It's handled quite differently > with MS Windows API calls. This can be substantially simplified by > using a thick binding such as CLAW (www.rrsoftware.com - I'm one of > the authors). The last time I looked, though, the demo OA version > had limits that prevented it from compiling even the small demo CLAW > version. > 3) If you are really emulating DOS, you can stick character and control > codes wherever you want in screen RAM. jvandyk (sp?) has packages > for that. Take a look in www.adapower.com -- ====================================================================== Marin David Condic - Quadrus Corporation - http://www.quadruscorp.com/ Send Replies To: m c o n d i c @ q u a d r u s c o r p . c o m Visit my web site at: http://www.mcondic.com/ "Giving money and power to Government is like giving whiskey and car keys to teenage boys." -- P. J. O'Rourke ======================================================================