What you want is the library called "ncurses".
There are analogous functions between ncurses and Borland's console interface library. But they are not identical in use and initialization.
You might be able to make your own shim layer (functions called "cprintf" and "gotoxy" and such) which map to ncurses functions.
If I remember correctly, ncurses either includes or has available a C++ wrapper to facilitate using ncurses. You may want to refactor your code to use the C++ wrappers.
See: http://www.gnu.org/software/ncurses/ncurses.html
Good luck, --Eljay