I am planning on writing a command line text editor in C for a *nix system similar to nano or vim but I am stuck on how I would go about getting access to the entire terminal window so the user can move around the text editor freely, do I need to use a 3rd party library to achieve this result if so what libraries are required, or am I able to achieve this result with the standard C libraries and if so what libraries should I use.
Asked
Active
Viewed 57 times
2
-
4You probably want [ncurses](https://en.wikipedia.org/wiki/Ncurses). – Steve Summit Aug 13 '21 at 01:36
-
1"do I need to use a 3rd party library". No you don't have to if you want to do everything from first principles. But that's going to be a lot of work. Generally people use a terminal lib like [ncurses](https://invisible-island.net/ncurses/announce.html). – kaylum Aug 13 '21 at 01:37
1 Answers
0
The ncurses library is the simplest way of gaining access to a full terminal window although it can also be achieved with the libc libraries.

HiddenSquid123
- 47
- 7