Skip to content
Permalink
master
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Go to file
 
 
Cannot retrieve contributors at this time
//d.jones
void colourText(WINDOW * winName, string text, int colPair, int yCoord, int xCoord) //takes the window, some text, the colour pair initialisation number and the two co-ordinates.
{
wattron(winName, COLOR_PAIR(colPair)); //turns on the colour
mvwprintw(winName, yCoord, xCoord, text.c_str()); //prints the text (coloured)
wattroff(winName, COLOR_PAIR(colPair)); //turns off the colour
}