mirror of
https://github.com/dankamongmen/notcurses
synced 2025-03-10 01:29:05 -04:00
rust: update for new notcurses_options
This commit is contained in:
parent
64c4a4be53
commit
bea281d120
@ -48,18 +48,14 @@ mod tests {
|
|||||||
unsafe {
|
unsafe {
|
||||||
let _ = libc::setlocale(libc::LC_ALL, std::ffi::CString::new("").unwrap().as_ptr());
|
let _ = libc::setlocale(libc::LC_ALL, std::ffi::CString::new("").unwrap().as_ptr());
|
||||||
let opts: ffi::notcurses_options = ffi::notcurses_options {
|
let opts: ffi::notcurses_options = ffi::notcurses_options {
|
||||||
inhibit_alternate_screen: false,
|
|
||||||
loglevel: 0,
|
loglevel: 0,
|
||||||
termtype: std::ptr::null(),
|
termtype: std::ptr::null(),
|
||||||
retain_cursor: false,
|
|
||||||
suppress_banner: false,
|
|
||||||
no_winch_sighandler: false,
|
|
||||||
no_quit_sighandlers: false,
|
|
||||||
renderfp: std::ptr::null_mut(),
|
renderfp: std::ptr::null_mut(),
|
||||||
margin_t: 0,
|
margin_t: 0,
|
||||||
margin_r: 0,
|
margin_r: 0,
|
||||||
margin_b: 0,
|
margin_b: 0,
|
||||||
margin_l: 0,
|
margin_l: 0,
|
||||||
|
flags: ffi::NCOPTION_NO_ALTERNATE_SCREEN as u64,
|
||||||
};
|
};
|
||||||
let nc = ffi::notcurses_init(&opts, stdout);
|
let nc = ffi::notcurses_init(&opts, stdout);
|
||||||
assert_ne!(std::ptr::null(), nc);
|
assert_ne!(std::ptr::null(), nc);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user