[Tutor] Finding out if we can use a graphical environment or not

Jorge Godoy godoy@metalab.unc.edu
Wed Jul 16 09:53:01 2003


Hi!


How can I find out if my program is running unde X or Windows instead
of a console / DOS prompt? I'm willing to have two interfaces that are
chosen based on where the user can see graphics or not (I'm
disregarding the use of framebuffer). 


TIA,
-- 
Godoy.     <godoy@metalab.unc.edu>