#include #define CLS "\e[2J" #define MOVE "\e[%d;%dH" #define BOLD "\e[1m" #define RESET "\e[0m" #define BOTTOM_Y 24 #define BOTTOM_X 1 main() { char title[] = "hello, world"; int x, y = 11; x = 40 - (strlen(title)-1) / 2; printf( CLS ); printf( MOVE, y, x); printf( BOLD ); printf("hello, world"); printf( RESET ); printf( MOVE, BOTTOM_Y, BOTTOM_X ); }