Skip to content

Commit f8881a1

Browse files
committed
Tiny change
1 parent ff9830e commit f8881a1

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

print.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ void initialize_editor()
2626
//Initialize curses
2727
{
2828
initscr(); //Initialize screen and curses mode
29-
if (has_colors() == FALSE) //Check to see if the console supports colored print, if not, then execute the following segment
29+
if (!has_colors()) //Check to see if the console supports colored print, if not, then execute the following segment
3030
{
3131
endwin(); //Un-initialize the window
3232
fprintf(stderr, "ERROR: This console does not support colored printing\n"); //Provide an error message
@@ -35,7 +35,7 @@ void initialize_editor()
3535
start_color(); //Otherwise, carry on wayward, initialize color and print the outline to the editor
3636
init_pair(EDITOR_SCHEME, COLOR_BLACK, COLOR_WHITE); //Initialize color pair of black text on a white background (for editor)
3737
init_pair(BOUNDARY_SCHEME, COLOR_BLACK, COLOR_CYAN); //Initialize color pair of black text on a cyan background (for top and bottom boundaries)
38-
keypad(stdscr, TRUE);
38+
keypad(stdscr, true);
3939
cbreak();
4040
curs_set(1);
4141
}

0 commit comments

Comments
 (0)