NcReaderOptions

Type Alias NcReaderOptions 

Source
pub type NcReaderOptions = ncreader_options;
Expand description

Options struct for NcReader

type in C: ncreader_options (struct)

Aliased Type§

#[repr(C)]
pub struct NcReaderOptions { pub tchannels: u64, pub tattrword: u32, pub flags: u64, }

Fields§

§tchannels: u64

channels used for input

§tattrword: u32

attributes used for input

§flags: u64

bitfield of NCREADER_OPTION_*

Implementations§

Source§

impl NcReaderOptions

§NcReaderOptions Constructors

Source

pub const fn new() -> Self

NcReaderOptions simple constructor.

Source§

impl NcReaderOptions

Source

pub const CURSOR: u32 = 8u32

Makes the terminal cursor visible across the lifetime of the ncreader, and have the ncreader manage the cursor’s placement.

Source

pub const HORSCROLL: u32 = 1u32

Enables horizontal scrolling. Virtual lines can then grow arbitrarily long.

Source

pub const NOCMDKEYS: u32 = 4u32

Disables all editing shortcuts. By default, emacs-style keys are available.

Source

pub const VERSCROLL: u32 = 2u32

Enables vertical scrolling. You can then use arbitrarily many virtual lines.