Mercurial > octave
diff liboctave/oct-env.cc @ 5489:250917610b55
[project @ 2005-10-12 23:53:36 by jwe]
author | jwe |
---|---|
date | Wed, 12 Oct 2005 23:53:38 +0000 |
parents | a921c9c17ba5 |
children | ace8d8d26933 |
line wrap: on
line diff
--- a/liboctave/oct-env.cc Wed Oct 12 21:23:50 2005 +0000 +++ b/liboctave/oct-env.cc Wed Oct 12 23:53:38 2005 +0000 @@ -191,6 +191,14 @@ } bool +octave_env::have_x11_display (void) +{ + std::string display = getenv ("DISPLAY"); + + return ! display.empty (); +} + +bool octave_env::chdir (const std::string& newdir) { return (instance_ok ())