include/curses_utils.h
/*!
     * Select the option above the current one
     * and deselect the one below.
     */
Select the option above the current one
and deselect the one below.
Select the option above the current one and deselect the one below .
void up() {
        if (at_option < options.size()) {
            this->options.at(at_option).de_select();
        } else {
            this->options_text_input.at(at_option-options.size()).de_select();
        }
        if (at_option == 0) {
            at_option = (options.size() + options_text_input.size()) - 1;
        } else {
            at_option--;
        }
        if (at_option < options.size()) {
            this->options.at(at_option).select();
        } else {
            this->options_text_input.at(at_option-options.size()).select();
        }
    }
void up ( ) { if ( at_option < options . size ( ) ) { this -> options . at ( at_option ) . de_select ( ) ; } else { this -> options_text_input . at ( at_option - options . size ( ) ) . de_select ( ) ; } if ( at_option == 0 ) { at_option = ( options . size ( ) + options_text_input . size ( ) ) - 1 ; } else { at_option -- ; } if ( at_option < options . size ( ) ) { this -> options . at ( at_option ) . select ( ) ; } else { this -> options_text_input . at ( at_option - options . size ( ) ) . select ( ) ; } }
Select the option above the current one
 and deselect the one below.
Select the option above the current one and deselect the one below .