File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff 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}
You can’t perform that action at this time.
0 commit comments