Repository: jeaye/ncurses-rs (language: rust)

Issue:
Add `A_ITALIC`
Apparently supported since ncurses 5.10.


Discussion / hints:
Thanks for reporting this. I'll leave it open, awaiting a hero with a PR.

Fix patch:
diff --git a/src/ncurses.rs b/src/ncurses.rs
index 07212097..b8a376e1 100644
--- a/src/ncurses.rs
+++ b/src/ncurses.rs
@@ -1743,6 +1743,9 @@ pub fn A_TOP() -> attr_t
 pub fn A_VERTICAL() -> attr_t
 { NCURSES_BITS(1u32, 22u32) as attr_t }
 
+pub fn A_ITALIC() -> attr_t
+{ NCURSES_BITS(1u32, 23u32) as attr_t }
+
 /* Colors. */
 pub fn COLOR_PAIR(n: i16) -> attr_t
 { NCURSES_BITS(n as u32, 0u32) as attr_t }


Test patch: