infoterm 0.1.1

ncurses-compatible terminfo parsing library
Documentation
impl_enum! {
    /// Integer capabilities.
    #[derive(Copy, Clone, Debug, Eq, PartialEq, Hash, Ord, PartialOrd)]
    #[repr(usize)]
    #[non_exhaustive]
    pub enum Integer {
        /// `cols`: Number of columns in a line
        Columns => ("cols", "columns"),
        /// `it`: Initial number of columns between tab positions
        InitTabs => ("it", "init_tabs"),
        /// `lines`: Number of lines on a screen or a page
        Lines => ("lines"),
        /// `lm`: Lines of memory if > `lines`; 0 means varies
        LinesOfMemory => ("lm", "lines_of_memory"),
        /// `xmc`: Number of \<blank\> characters left by `smso` or `rmso`
        MagicCookieGlitch => ("xmc", "magic_cookie_glitch"),
        /// `pb`: Lowest baud rate where padding needed
        PaddingBaudRate => ("pb", "padding_baud_rate"),
        /// `vt`: Virtual terminal number
        VirtualTerminal => ("vt", "virtual_terminal"),
        /// `wsl`: Number of columns in status line
        WidthStatusLine => ("wsl", "width_status_line"),
        /// `nlab`: Number of labels on screen (start at 1)
        NumLabels => ("nlab", "num_labels"),
        /// `lh`: Number of rows in each label
        LabelHeight => ("lh", "label_height"),
        /// `lw`: Number of columns in each label
        LabelWidth => ("lw", "label_width"),
        /// `ma`: Maxmimum combined video attributes terminal can display
        MaxAttributes => ("ma", "max_attributes"),
        /// `wnum`: Maximum number of definable windows
        MaximumWindows => ("wnum", "maximum_windows"),
        /// `colors`: Maximum number of colors on the screen
        MaxColors => ("colors", "max_colors"),
        /// `pairs`: Maximum number of color-pairs on the screen
        MaxPairs => ("pairs", "max_pairs"),
        /// `ncv`: Video attributes that can't be used with colors
        NoColorVideo => ("ncv", "no_color_video"),
        /// `bufsz`: Number of bytes buffered before printing
        BufferCapacity => ("bufsz", "buffer_capacity"),
        /// `spinv`: Spacing of pins vertically in pins per inch
        DotVertSpacing => ("spinv", "dot_vert_spacing"),
        /// `spinh`: Spacing of dots horizontally in dots per inch
        DotHorzSpacing => ("spinh", "dot_horz_spacing"),
        /// `maddr`: Maximum value in `micro_..._address`
        MaxMicroAddress => ("maddr", "max_micro_address"),
        /// `mjump`: Maximum value in `parm_..._micro`
        MaxMicroJump => ("mjump", "max_micro_jump"),
        /// `mcs`: Character step size when in micro mode
        MicroColSize => ("mcs", "micro_col_size"),
        /// `mls`: Line step size when in micro mode
        MicroLineSize => ("mls", "micro_line_size"),
        /// `npins`: Number of pins in print-head
        NumberOfPins => ("npins", "number_of_pins"),
        /// `orc`: Horizontal resolution in units per character
        OutputResChar => ("orc", "output_res_char"),
        /// `orl`: Vertical resolution in units per line
        OutputResLine => ("orl", "output_res_line"),
        /// `orhi`: Horizontal resolution in units per inch
        OutputResHorzInch => ("orhi", "output_res_horz_inch"),
        /// `orvi`: Vertical resolution in units per inch
        OutputResVertInch => ("orvi", "output_res_vert_inch"),
        /// `cps`: Print rate in characters per second
        PrintRate => ("cps", "print_rate"),
        /// `widcs`: Character step size when in double-wide mode
        WideCharSize => ("widcs", "wide_char_size"),
        /// `btns`: Number of buttons on the mouse
        Buttons => ("btns", "buttons"),
        /// `bitwin`: Number of passes for each bit-map row
        BitImageEntwining => ("bitwin", "bit_image_entwining"),
        /// `bitype`: Type of bit image device
        BitImageType => ("bitype", "bit_image_type"),
    }
}