I want to make simple text editor for personal use. What graphics library should I use. I will write it in C++ or C depending on which can be ported easier. I use Linux mainly so I dont care about windows support.
vga programming
Desktop GUI programming https://textboard.org/prog/438
First, I presume this is just for for personal learning, otherwise just use Emacs or Vim.
The next question then is, what do you want to learn? If it's GUI programming, fair enough. Otherwise, curses may be a better way to get characters on screen (especially for ssh access). If it *is* GUI programming you're interested in, I've been revisiting Tk lately, in particular working through the Python examples in https://tkdocs.com/tutorial/ . People may complain, but I think it looks fine.
If on the other hand it's C or C++ you want to learn, I'd actually do a text UI using curses (which would yield a more flexible editor for things like ssh access in the end). But I'm also on a Quixotic crusade to wean everyone off unsafe languages like C or C++. I like D myself.
I'd recommend against trying to learn two things in the same project.
Learn from the Kilo text editor.
https://github.com/antirez/kilo
Build Your Own Text Editor: https://viewsourcecode.org/snaptoken/kilo/