Redo the fix for using doset(#optionsfull) to toggle perm_invent under curses. Move it to curses code and let the core be unaware of it. It does the perm_invent update twice when creating the window for that.