aboutsummaryrefslogtreecommitdiff
path: root/src/lib.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib.rs')
-rw-r--r--src/lib.rs23
1 files changed, 2 insertions, 21 deletions
diff --git a/src/lib.rs b/src/lib.rs
index cd4f382e..9903f591 100644
--- a/src/lib.rs
+++ b/src/lib.rs
@@ -49,7 +49,9 @@ extern crate bitflags;
pub mod macros;
pub mod ansi;
+pub mod cli;
pub mod config;
+pub mod display;
pub mod event;
pub mod event_loop;
pub mod grid;
@@ -63,9 +65,6 @@ pub mod tty;
pub mod util;
pub mod window;
-use std::sync::Arc;
-use std::sync::atomic::{AtomicBool, Ordering};
-
pub use grid::Grid;
pub use term::Term;
@@ -80,21 +79,3 @@ pub mod gl {
#![allow(non_upper_case_globals)]
include!(concat!(env!("OUT_DIR"), "/gl_bindings.rs"));
}
-
-#[derive(Clone)]
-pub struct Flag(pub Arc<AtomicBool>);
-impl Flag {
- pub fn new(initial_value: bool) -> Flag {
- Flag(Arc::new(AtomicBool::new(initial_value)))
- }
-
- #[inline]
- pub fn get(&self) -> bool {
- self.0.load(Ordering::Acquire)
- }
-
- #[inline]
- pub fn set(&self, value: bool) {
- self.0.store(value, Ordering::Release)
- }
-}