Changeset 3481 for libcaca/trunk/examples/input.c
- Timestamp:
- May 19, 2009, 10:42:22 PM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
libcaca/trunk/examples/input.c
r2821 r3481 60 60 entries[i].size = 0; 61 61 entries[i].cursor = 0; 62 caca_printf(cv, 3, 3 * i + 4, "[entry %i]", i + 1); 62 63 } 63 64 … … 71 72 72 73 caca_set_color_ansi(cv, CACA_BLACK, CACA_LIGHTGRAY); 73 caca_fill_box(cv, 2, 3 * i + 4, 2 + BUFFER_SIZE, 3 * i + 4, ' ');74 caca_fill_box(cv, 2, 3 * i + 5, BUFFER_SIZE + 1, 1, ' '); 74 75 75 76 start = 0; … … 78 79 for(j = 0; j < size; j++) 79 80 { 80 caca_put_char(cv, 2 + j, 3 * i + 4,81 caca_put_char(cv, 2 + j, 3 * i + 5, 81 82 entries[i].buffer[start + j]); 82 83 } … … 84 85 85 86 /* Put the cursor on the active textentry */ 86 caca_gotoxy(cv, 2 + entries[e].cursor, 3 * e + 4);87 caca_gotoxy(cv, 2 + entries[e].cursor, 3 * e + 5); 87 88 88 89 caca_refresh_display(dp);
Note: See TracChangeset
for help on using the changeset viewer.