- Timestamp:
- 2025-10-08T18:09:09Z (3 months ago)
- Branches:
- master
- Children:
- c111da2
- Parents:
- 32ae27bb
- Location:
- uspace
- Files:
-
- 3 edited
-
lib/output/include/io/chargrid.h (modified) (2 diffs)
-
lib/output/src/chargrid.c (modified) (2 diffs)
-
srv/hid/console/console.c (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/output/include/io/chargrid.h
r32ae27bb r1a96db9 1 1 /* 2 * Copyright (c) 2025 Jiri Svoboda 2 3 * Copyright (c) 2011 Martin Decky 3 4 * All rights reserved. … … 81 82 extern sysarg_t chargrid_putuchar(chargrid_t *, char32_t, bool); 82 83 extern sysarg_t chargrid_newline(chargrid_t *); 84 extern sysarg_t chargrid_cr(chargrid_t *); 83 85 extern sysarg_t chargrid_tabstop(chargrid_t *, sysarg_t); 84 86 extern sysarg_t chargrid_backspace(chargrid_t *); -
uspace/lib/output/src/chargrid.c
r32ae27bb r1a96db9 1 1 /* 2 * Copyright (c) 2025 Jiri Svoboda 2 3 * Copyright (c) 2006 Josef Cejka 3 4 * All rights reserved. … … 180 181 } 181 182 183 /** Return cursor to the beginning of the line. 184 * 185 * @param scrbuf Chargrid. 186 * 187 * @return Number of rows which have been affected. In usual 188 * situations this is 1. 189 * 190 */ 191 sysarg_t chargrid_cr(chargrid_t *scrbuf) 192 { 193 assert(scrbuf->col < scrbuf->cols); 194 assert(scrbuf->row < scrbuf->rows); 195 196 scrbuf->col = 0; 197 return 1; 198 } 199 182 200 /** Jump to a new row in chargrid. 183 201 * -
uspace/srv/hid/console/console.c
r32ae27bb r1a96db9 490 490 break; 491 491 case '\r': 492 updated = chargrid_cr(cons->frontbuf); 492 493 break; 493 494 case '\t':
Note:
See TracChangeset
for help on using the changeset viewer.
