title: curses moving cursor to non blank position
body: <p>I'm writing a simple text editor in C, on cygwin using curses, now I have a screen full of line of text, some line are partial lines, now when I move the cursor up or down one line I want it to move to non blank position if the previous/next line is partial line, how to do it?
  any help will be greatly appreciated. thanks.</p>