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,adb38b4974db5d4b X-Google-Attributes: gid103376,public From: kilgallen@eisner.decus.org (Larry Kilgallen) Subject: Re: Dump screen content into file.... Date: 1996/12/09 Message-ID: <1996Dec9.164917.1@eisner>#1/1 X-Deja-AN: 203207927 x-nntp-posting-host: eisner.decus.org references: <32AC4A25.41C6@cnam.fr> x-nntp-posting-user: KILGALLEN x-trace: 850168164/2778 organization: LJK Software newsgroups: comp.lang.ada Date: 1996-12-09T00:00:00+00:00 List-Id: In article <32AC4A25.41C6@cnam.fr>, BAMBA ISMAEL 19320 writes: > Does anybody knows how to save a rs232 terminal screen( standard output) > into a file and conversely (dump a given file into memory)? > P.S:If Robert Dewar is to answer,please let him be a little bit humble > and stop speculating about what ones in his mind fails to understand or > not.I indeed need some hints.but this in no way makes me stupid.let > M.Dewar know i might not know Ada but i do know some other languages.in > addition to this, i do not feel like arguing about the "turbo" features > of pascal... Regardless of what the other language is with which you might be familiar, the process of reading characters from an RS232 device into memory and writing them to disk will be much the same in Ada. You need a manual for the device to determine whether it is able to answer inquiries regarding the characters on screen (most are not). So you want to send various control functions to the terminal, and you do that using Ada IO capabilities as you would the IO capabilities of the other languages you use. Or perhaps on some operating systems (like VMS) you might want to use OS-specific calls to obtain larger buffers or asynchrouous input from a single read, or read-with-prompt semantics. The process of reading characters from a terminal screen really has much more to do with the model of terminal than with the programming language, so you might consider a hardware-specific newsgroup. Larry Kilgallen