Building a terminal text-editor in C++

I am quite experienced with C++(programming for over 1 year already).
But I cannot Wrap my mind around how to make text editor(e.g get input in console which is more than one line),can anyone advice me what algorithm or tool to use?
Libraries such as PDcurses and ncurses (collectively called just curses) let you treat the console as a proper console and to get input from the user as raw key strokes.
Topic archived. No new replies allowed.