The link in OP post refers to Windows.
First you need to obtain a handle for your console window:
https://support.microsoft.com/kb/124103
Or even better and modern: GetConsoleWindow way to get that console handle.
Then you need to do quite a simple trick:
::SetWindowPos(hwndMyWnd, HWND_TOPMOST, 0, 0, 0, 0, SWP_DRAWFRAME | SWP_NOMOVE | SWP_NOSIZE | SWP_SHOWWINDOW);
::ShowWindow(hwndMyWnd, SW_NORMAL);