I have a curses app which is designed to run on a standard 80x25 console. By that I mean the output has a width of 80 characters and a height of 25 characters. When running this app in a terminal emulator I'm trying to figure out how to center my output. Can someone help me figure out how to calculate the beginning x,y coordinates?