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: <7eap68$vmq$1@nnrp1.dejanews.com>#1/1 X-Deja-AN: 462901736 References: <3703F011.1DBB143C@cs.und.edu> <7e2rp3$kvf$1@nnrp1.dejanews.com> <7eaf43$mk2$1@nnrp1.dejanews.com> X-Http-Proxy: 1.0 x10.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 16:42:50 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 <7eaf43$mk2$1@nnrp1.dejanews.com>, dennison@telepath.com wrote: > In article , > jerry@jvdsys.stuyts.nl (Jerry van Dijk) wrote: > > dennison@telepath.com wrote: > > > > : 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: > > 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)? OK. I just went and checked. For the two unixes I tried (AIX 4.2 and SunOS 5.3) stty is *not* a shell builtin; it is a command. So Ted, you're an idiot. (Wow, flaming me is fun. No wonder so many do it. :-) Also, it appears stty changes apply to a parent shell when I invoke it from a child shell, so I suspect the "system" call method would do the trick. However, since the original poster seemed to really want "curses" functionality, I'd suggest they go ahead and use curses to aviod frustration on further functionalty during the rest of the implementation process. If they only need a few curses functions, writing a small number of "thick" bindings by hand is really no trouble. If they want a lot, there are thin bindings (and thin binding generators) out there. T.E.D. -----------== Posted via Deja News, The Discussion Network ==---------- http://www.dejanews.com/ Search, Read, Discuss, or Start Your Own