comp.lang.ada
 help / color / mirror / Atom feed
From: dennison@telepath.com
Subject: Re: Terminal Control (or System calls), unix
Date: 1999/04/05
Date: 1999-04-05T00:00:00+00:00	[thread overview]
Message-ID: <7eaf43$mk2$1@nnrp1.dejanews.com> (raw)
In-Reply-To: F9LA0u.4w@jvdsys.stuyts.nl

In article <F9LA0u.4w@jvdsys.stuyts.nl>,
  jerry@jvdsys.stuyts.nl (Jerry van Dijk) wrote:
> dennison@telepath.com wrote:
>
> : In article <3703F011.1DBB143C@cs.und.edu>,
> :   "Sven E. Anderson" <anderson@cs.und.edu> 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    




  reply	other threads:[~1999-04-05  0:00 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1999-04-01  0:00 Terminal Control (or System calls), unix Sven E. Anderson
1999-04-02  0:00 ` Thomas Handler
1999-04-02  0:00 ` dennison
1999-04-03  0:00   ` Jerry van Dijk
1999-04-05  0:00     ` dennison [this message]
1999-04-05  0:00       ` dennison
1999-04-05  0:00         ` Tarjei Tj�stheim Jensen
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox