Hi friends! I am developing a editor using ncurses. I know how to implement the scrolling, but I lose the characters when scrolling.

Do you know how to implement it so that I don't lose characters when scrolling?? thank you very much!!!