Changes in / [a5603ff:eca2435] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/app/edit/edit.c
ra5603ff reca2435 98 98 static bool done; 99 99 static pane_t pane; 100 static bool cursor_visible;101 100 102 101 static int scr_rows, scr_columns; … … 109 108 /** Maximum filename length that can be entered. */ 110 109 #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);115 110 116 111 static void key_handle_unmod(console_event_t const *ev); … … 204 199 205 200 /* Initial display */ 206 cursor_visible = true;207 208 cursor_hide();209 201 console_clear(con); 210 202 pane_text_display(); … … 213 205 status_display("File not found. Starting empty file."); 214 206 pane_caret_display(); 215 cursor_show(); 207 216 208 217 209 done = false; … … 238 230 /* Redraw as necessary. */ 239 231 240 cursor_hide();241 242 232 if (pane.rflags & REDRAW_TEXT) 243 233 pane_text_display(); … … 248 238 if (pane.rflags & REDRAW_CARET) 249 239 pane_caret_display(); 250 251 cursor_show();252 240 } 253 241 … … 255 243 256 244 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 }275 245 } 276 246
Note:
See TracChangeset
for help on using the changeset viewer.