display/source/CursesDisplay.cpp
// If the cursor mode has been set in the properties, use that.
// Otherwise, use the default.
If the cursor mode has been set in the properties, use that.
Otherwise, use the default.
If the cursor mode has been set in the properties use that . Otherwise use the default .
int CursesDisplay::get_cursor_mode(const CursorSettings cs) const
{
  int mode = cursor_mode;
  if (cs == CursorSettings::CURSOR_SETTINGS_SHOW_CURSOR)
  {
    mode = 1; 
  }
  else
  {
    auto p_it = display_properties.find(CursesProperties::CURSES_PROPERTIES_CURSOR_MODE);
    if (p_it != display_properties.end())
    {
      mode = String::to_int(p_it->second);
    }
  }
  return mode;
}
int CursesDisplay :: get_cursor_mode ( const CursorSettings cs ) const { int mode = cursor_mode ; if ( cs == CursorSettings :: CURSOR_SETTINGS_SHOW_CURSOR ) { mode = 1 ; } else { auto p_it = display_properties . find ( CursesProperties :: CURSES_PROPERTIES_CURSOR_MODE ) ; if ( p_it != display_properties . end ( ) ) { mode = String :: to_int ( p_it -> second ) ; } } return mode ; }
If the cursor mode has been set in the properties, use that.
If the cursor mode has been set in the properties use that .
/* show cursor */