Changes in / [eb0bc90:fccc236] in mainline


Ignore:
Location:
uspace
Files:
1 added
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/app/edit/edit.c

    reb0bc90 rfccc236  
    9898static bool done;
    9999static pane_t pane;
    100 static bool cursor_visible;
    101100
    102101static int scr_rows, scr_columns;
     
    109108/** Maximum filename length that can be entered. */
    110109#define INFNAME_MAX_LEN 128
    111 
    112 static void cursor_show(void);
    113 static void cursor_hide(void);
    114 static void cursor_setvis(bool visible);
    115110
    116111static void key_handle_unmod(console_event_t const *ev);
     
    204199
    205200        /* Initial display */
    206         cursor_visible = true;
    207 
    208         cursor_hide();
    209201        console_clear(con);
    210202        pane_text_display();
     
    213205                status_display("File not found. Starting empty file.");
    214206        pane_caret_display();
    215         cursor_show();
     207
    216208
    217209        done = false;
     
    238230                /* Redraw as necessary. */
    239231
    240                 cursor_hide();
    241 
    242232                if (pane.rflags & REDRAW_TEXT)
    243233                        pane_text_display();
     
    248238                if (pane.rflags & REDRAW_CARET)
    249239                        pane_caret_display();
    250 
    251                 cursor_show();
    252240        }
    253241
     
    255243
    256244        return 0;
    257 }
    258 
    259 static void cursor_show(void)
    260 {
    261         cursor_setvis(true);
    262 }
    263 
    264 static void cursor_hide(void)
    265 {
    266         cursor_setvis(false);
    267 }
    268 
    269 static void cursor_setvis(bool visible)
    270 {
    271         if (cursor_visible != visible) {
    272                 console_cursor_visibility(con, visible);
    273                 cursor_visible = visible;
    274         }
    275245}
    276246
Note: See TracChangeset for help on using the changeset viewer.