#![feature(getpid)] extern crate clap; extern crate console; extern crate regex; extern crate libc; #[macro_use] extern crate lazy_static; mod checkbox; use std::ffi::CStr; use std::process::{self, Command}; use regex::{Regex, Captures}; use checkbox::Checkbox; // $> ps aux: // USER PID %CPU %MEM VSZ RSS TT STAT STARTED TIME COMMAND const PS_PATTERN: &'static str = concat!( r"(?P\S+)\s+", r"(?P\S+)\s+", r"(?P\S+)\s+", r"(?P\S+)\s+", r"(?P\S+)\s+", r"(?P\S+)\s+", r"(?P\S+)\s+", r"(?P\S+)\s+", r"(?P\S+)\s+", r"(?P