From ebc80915a3ade2c4155c9076b899136a3f6f835d Mon Sep 17 00:00:00 2001 From: nick black Date: Wed, 25 Nov 2020 19:58:53 -0500 Subject: [PATCH] c++/rust struck #1138 --- include/ncpp/CellStyle.hh | 1 + rust/src/bindings.rs | 1 + src/lib/terminfo.c | 1 + 3 files changed, 3 insertions(+) diff --git a/include/ncpp/CellStyle.hh b/include/ncpp/CellStyle.hh index 86d927c8d..2d28ca81e 100644 --- a/include/ncpp/CellStyle.hh +++ b/include/ncpp/CellStyle.hh @@ -21,6 +21,7 @@ namespace ncpp Invis = NCSTYLE_INVIS, Protect = NCSTYLE_PROTECT, Italic = NCSTYLE_ITALIC, + Struck = NCSTYLE_STRUCK, }; DECLARE_ENUM_FLAG_OPERATORS (CellStyle) diff --git a/rust/src/bindings.rs b/rust/src/bindings.rs index d8bf47f92..5c9fe7298 100644 --- a/rust/src/bindings.rs +++ b/rust/src/bindings.rs @@ -581,6 +581,7 @@ pub use bindgen::{ NCSTYLE_PROTECT, NCSTYLE_REVERSE, NCSTYLE_STANDOUT, + NCSTYLE_STRUCK, NCSTYLE_UNDERLINE, }; diff --git a/src/lib/terminfo.c b/src/lib/terminfo.c index 42df9727f..df3485aa9 100644 --- a/src/lib/terminfo.c +++ b/src/lib/terminfo.c @@ -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