comp.lang.ada
 help / color / mirror / Atom feed
From: "Warren W. Gay VE3WWG" <ve3wwg@cogeco.ca>
Subject: Re: Detecting the OS type before clearing screen
Date: Tue, 25 Mar 2003 12:27:59 -0500
Date: 2003-03-25T12:27:59-05:00	[thread overview]
Message-ID: <3E80919F.7020106@cogeco.ca> (raw)
In-Reply-To: e04419ef.0303241555.4627d1fd@posting.google.com

Redy RAMAMONJISOA wrote:
> hello,
> Do someone now how can i detect on which operating system my binary
> file is executed. I need to write a program in ada and in it, i have
> to write a procedure which clear the screen. But i wish to use the
> same source code for all systems targeted (MS Windows and Linux
> families). I think that this is essential because as far as i know,
> Ada does'nt have any build function which clear the terminal screen.
> Thanks in advance

Apart from the fact (as others have pointed out), you won't have
a single binary, you can use a binding to Curses. Then compile with
curses/ncurses on *NIX platforms, and use PDCurses for Windows.  If
you don't mind making it a CYGWIN executable (under Windows that is),
you can use the ncurses library there as well.

-- 
Warren W. Gay VE3WWG
http://home.cogeco.ca/~ve3wwg




  parent reply	other threads:[~2003-03-25 17:27 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-03-24 23:55 Detecting the OS type before clearing screen Redy RAMAMONJISOA
2003-03-25  0:58 ` sk
2003-03-25 10:24   ` Samuel Tardieu
2003-03-25 11:19     ` sk
2003-03-25 12:47       ` Lutz Donnerhacke
2003-03-25 14:26         ` SIMON Claude
2003-03-25 14:33           ` Lutz Donnerhacke
2003-03-25 21:48             ` Wojtek Narczynski
2003-03-25 12:25   ` Wojtek Narczynski
2003-03-25 17:27 ` Warren W. Gay VE3WWG [this message]
2003-03-25 20:54 ` sk
2003-03-26 18:43   ` Randy Brukardt
2003-03-26 20:36   ` Simon Wright
replies disabled

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