Hello,
I can design and create a text interface using (n)curses library, but I would prefer not to edit configuration files, or use commands which are distro-specific.
I'd recommend to use D-Bus to communicate with Network Manager, which is now standard used in many modern Linux distributions.
With regards,
Jakub