c++/rust struck #1138

This commit is contained in:
nick black 2020-11-25 19:58:53 -05:00 committed by Nick Black
parent f89ca15640
commit ebc80915a3
3 changed files with 3 additions and 0 deletions

View File

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

View File

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

View File

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