Text Editor – How do I create a menu and submenu with gcc in the Linux console?

I want to create a simple text editor in the Linux console gcc, There is probably another submenu under a menu. The editor I want to create is the following Borland Turbo C / C ++ IDE. I probably also need to use some specific key functions, especially the Fn key. The almost same editor I found on Linux Console is mcedit, but not so complete. I'm asking here is in Linux console, not in X-Window (graphic).

Then my question is, is there a specific command to create it? How do I start with gcc?
Borland Turbo C / C ++ Editor