pub mod ui {
    extern crate term;

    pub fn online() {
        let mut t = term::stdout().unwrap();
        t.fg(term::color::GREEN).unwrap();
        writeln!(t, "Online").unwrap();
        t.reset();
    }
    pub fn offline() {
        let mut t = term::stdout().unwrap();
        t.fg(term::color::RED).unwrap();
        writeln!(t, "Offline").unwrap();
        t.reset();
    }
    pub fn clear_screen() {
        println!("\x1b[2J\x1b[1;1H");
    }
}

pub mod net {
    extern crate curl;
    use self::curl::http;

    pub fn is_online() -> bool {
        let resp = http::handle()
            .get("http://localhost:8000")
            .exec();

        match resp {
            Ok(r) => true,
            Err(e) => false
        }
    }


}

pub mod ui {
    extern crate term;

    pub fn online() {
        let mut t = term::stdout().unwrap();
        t.fg(term::color::GREEN).unwrap();
        writeln!(t, "Online").unwrap();

    }
    pub fn offline() {
        let mut t = term::stdout().unwrap();
        t.fg(term::color::RED).unwrap();
        writeln!(t, "Offline").unwrap();

    }
    pub fn clear_screen() {
        println!("\x1b[2J\x1b[1;1H");
    }
}

pub mod net {
    extern crate curl;

    use self::curl::http;

    pub fn is_online() -> bool {
        let resp = http::handle()
            .get("http://localhost:8000")
            .exec();

        match resp {
            Ok(r) => true,
            Err(e) => false
        }
    }


}

--- 
+++ 
@@ -5,13 +5,13 @@
         let mut t = term::stdout().unwrap();
         t.fg(term::color::GREEN).unwrap();
         writeln!(t, "Online").unwrap();
-
+        t.reset();
     }
     pub fn offline() {
         let mut t = term::stdout().unwrap();
         t.fg(term::color::RED).unwrap();
         writeln!(t, "Offline").unwrap();
-
+        t.reset();
     }
     pub fn clear_screen() {
         println!("\x1b[2J\x1b[1;1H");
@@ -20,7 +20,6 @@
 
 pub mod net {
     extern crate curl;
-
     use self::curl::http;
 
     pub fn is_online() -> bool {
Fix up indention & reset terminal
