Changeset 954 for libcaca/trunk/cucul/import.c
- Timestamp:
- May 12, 2006, 9:33:44 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
libcaca/trunk/cucul/import.c
r946 r954 348 348 case 'f': /* CUP - Cursor Position */ 349 349 case 'H': /* HVP - Character And Line Position */ 350 x = (argc > 1 ) ? argv[1] - 1 : 0;351 y = (argc > 0 ) ? argv[0] - 1 : 0;350 x = (argc > 1 && argv[1] > 0) ? argv[1] - 1 : 0; 351 y = (argc > 0 && argv[0] > 0) ? argv[0] - 1 : 0; 352 352 break; 353 353 case 'A': /* CUU - Cursor Up */ … … 371 371 save_y = y; 372 372 break; 373 case 'u': /* Private (reload cursor positi n) */373 case 'u': /* Private (reload cursor position) */ 374 374 x = save_x; 375 375 y = save_y;
Note: See TracChangeset
for help on using the changeset viewer.