jeaye/ncurses-rs

keyname can return null

Closed this issue · 0 comments

According to the docs, keyname can return null, but this library currently expects this is not the case and return a String unconditionally. As a result, it segfaults if null is returned.

Could keyname check for null, and maybe return an Option<String> being None when null is returned? Thanks!