colour changing in command prompt

currently i m writing a c++ code gfor a game.My screen(50X20) is black when the game is running.Now i wan there is a small box(10x10,red colour)comes out in the middle of my screen when the player is lose.can anyone tell me how to do?i only wan the small area to become red.but now my code make the whole screen become red.
Topic archived. No new replies allowed.