1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18
use libc; pub enum ScreenImpl {} pub enum CellImpl {} pub struct ColorImpl(pub libc::uint32_t); #[repr(C)] pub struct CellAttrs { pub fgcolor: ColorImpl, pub bgcolor: ColorImpl, pub attrs: libc::c_uchar, } #[repr(C)] pub struct Loc { pub row: libc::c_int, pub col: libc::c_int, }