From 660c742902e0f41898e329703a3f0c413b2016cf Mon Sep 17 00:00:00 2001 From: Patrick Walton Date: Thu, 28 Apr 2011 14:53:23 -0700 Subject: stdlib: Add a color_supported() function to Term --- src/lib/GenericOS.rs | 4 ++++ 1 file changed, 4 insertions(+) create mode 100644 src/lib/GenericOS.rs (limited to 'src/lib/GenericOS.rs') diff --git a/src/lib/GenericOS.rs b/src/lib/GenericOS.rs new file mode 100644 index 00000000..2d375652 --- /dev/null +++ b/src/lib/GenericOS.rs @@ -0,0 +1,4 @@ +fn getenv(str n) -> str { + ret _str.str_from_cstr(os.libc.getenv(_str.buf(n))); +} + -- cgit v1.2.3