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,6a5262b0e069cfdf X-Google-Attributes: gid103376,public From: dennison@telepath.com Subject: Re: Terminal Control (or System calls), unix Date: 1999/04/05 Message-ID: <7eaf43$mk2$1@nnrp1.dejanews.com>#1/1 X-Deja-AN: 462854738 References: <3703F011.1DBB143C@cs.und.edu> <7e2rp3$kvf$1@nnrp1.dejanews.com> X-Http-Proxy: 1.0 x5.dejanews.com:80 (Squid/1.1.22) for client 204.48.27.130 Organization: Deja News - The Leader in Internet Discussion X-Article-Creation-Date: Mon Apr 05 13:51:02 1999 GMT Newsgroups: comp.lang.ada X-Http-User-Agent: Mozilla/4.5 [en] (WinNT; I) Date: 1999-04-05T00:00:00+00:00 List-Id: In article , jerry@jvdsys.stuyts.nl (Jerry van Dijk) wrote: > dennison@telepath.com wrote: > > : In article <3703F011.1DBB143C@cs.und.edu>, > : "Sven E. Anderson" wrote: > > (note I careful I am about the attributions :-) Appreciated. :-) > > : If its a system call, you should be able to make it from Ada. However I think > : stty is typically a shell builtin, isn't it? > > That does not matter, on Linux, you could use something like: > > procedure Execute (S : in String) is > procedure System (S : in System.Address); > pragma Import (C, System, "system"); > C_String : constant String := S & ASCII.NUL; > begin > System (C_String'Address); > end Execute; I suppose. But don't you have to worry that the person executing your program might have a default shell on which stty behaves differently (or does not exist)? T.E.D. -----------== Posted via Deja News, The Discussion Network ==---------- http://www.dejanews.com/ Search, Read, Discuss, or Start Your Own