How do I properly read user input using unicurses?
I am using wgetstr
to read in user input, but how would I go about making sure that the input does not flow over to the next line. The input should just stop when the last character reaches the end of the window.
Currently:
import unicurses as uc
def read(window)
st = uc.wgetstr(window)
return st.decode('utf-8')
I'm not really willing to move over to curses or ncurses since I have an almost fully fuctional (minimal) library built around unicurses.