c++/rust struck #1138

pull/1145/head
nick black 4 years ago committed by Nick Black
parent f89ca15640
commit ebc80915a3

@ -21,6 +21,7 @@ namespace ncpp
Invis = NCSTYLE_INVIS, Invis = NCSTYLE_INVIS,
Protect = NCSTYLE_PROTECT, Protect = NCSTYLE_PROTECT,
Italic = NCSTYLE_ITALIC, Italic = NCSTYLE_ITALIC,
Struck = NCSTYLE_STRUCK,
}; };
DECLARE_ENUM_FLAG_OPERATORS (CellStyle) DECLARE_ENUM_FLAG_OPERATORS (CellStyle)

@ -581,6 +581,7 @@ pub use bindgen::{
NCSTYLE_PROTECT, NCSTYLE_PROTECT,
NCSTYLE_REVERSE, NCSTYLE_REVERSE,
NCSTYLE_STANDOUT, NCSTYLE_STANDOUT,
NCSTYLE_STRUCK,
NCSTYLE_UNDERLINE, NCSTYLE_UNDERLINE,
}; };

@ -130,6 +130,7 @@ int interrogate_terminfo(tinfo* ti){
if(nocolor_stylemask & WA_ITALIC){ if(nocolor_stylemask & WA_ITALIC){
ti->italics = NULL; ti->italics = NULL;
} }
// can't do anything about struck! :/
} }
terminfostr(&ti->getm, "getm"); // get mouse events terminfostr(&ti->getm, "getm"); // get mouse events
// Not all terminals support setting the fore/background independently // Not all terminals support setting the fore/background independently

Loading…
Cancel
Save