Changeset a5603ff in mainline
- Timestamp:
- 2010-01-07T19:41:39Z (15 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- eb0bc90
- Parents:
- eca2435 (diff), 8190e63 (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the(diff)
links above to see all the changes relative to each parent. - File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/app/edit/edit.c
reca2435 ra5603ff 98 98 static bool done; 99 99 static pane_t pane; 100 static bool cursor_visible; 100 101 101 102 static int scr_rows, scr_columns; … … 108 109 /** Maximum filename length that can be entered. */ 109 110 #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); 110 115 111 116 static void key_handle_unmod(console_event_t const *ev); … … 199 204 200 205 /* Initial display */ 206 cursor_visible = true; 207 208 cursor_hide(); 201 209 console_clear(con); 202 210 pane_text_display(); … … 205 213 status_display("File not found. Starting empty file."); 206 214 pane_caret_display(); 207 215 cursor_show(); 208 216 209 217 done = false; … … 230 238 /* Redraw as necessary. */ 231 239 240 cursor_hide(); 241 232 242 if (pane.rflags & REDRAW_TEXT) 233 243 pane_text_display(); … … 238 248 if (pane.rflags & REDRAW_CARET) 239 249 pane_caret_display(); 250 251 cursor_show(); 240 252 } 241 253 … … 243 255 244 256 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 } 245 275 } 246 276
Note:
See TracChangeset
for help on using the changeset viewer.