* Move the cursor (both as displayed and where drawing goes) * HOWEVER: The cursor is NOT stored in the bitmap! */
| 687 | * HOWEVER: The cursor is NOT stored in the bitmap! |
| 688 | */ |
| 689 | short |
| 690 | move_tty_cursor(WindowPtr window, short x_pos, short y_pos) |
| 691 | { |
| 692 | RECORD_EXISTS(record); |
| 693 | |
| 694 | if (record->x_curs == x_pos && record->y_curs == y_pos) { |
| 695 | return noErr; |
| 696 | } |
| 697 | if (record->x_size <= x_pos || x_pos < 0 || record->y_size <= y_pos |
| 698 | || y_pos < 0) { |
| 699 | return general_failure; |
| 700 | } |
| 701 | curs_pos(record, record->x_curs, record->y_curs, 0); |
| 702 | record->x_curs = x_pos; |
| 703 | record->y_curs = y_pos; |
| 704 | curs_pos(record, x_pos, y_pos, 1); |
| 705 | |
| 706 | return noErr; |
| 707 | } |
| 708 | |
| 709 | /* |
| 710 | * Update the screen to match the current bitmap, after adding stuff |