diff options
| author | Eli Zaretskii | 2004-09-10 17:07:47 +0000 |
|---|---|---|
| committer | Eli Zaretskii | 2004-09-10 17:07:47 +0000 |
| commit | b106731c46f622c5cdfaf0ed3c31ab3436cf5510 (patch) | |
| tree | fafe9e783dbca32f109980920a2fdc734c8ad4f4 /src | |
| parent | 9f6b5597da9ad5360dc943ea06566fa28bc441c3 (diff) | |
| download | emacs-b106731c46f622c5cdfaf0ed3c31ab3436cf5510.tar.gz emacs-b106731c46f622c5cdfaf0ed3c31ab3436cf5510.zip | |
(msdos_set_cursor_shape): Add debugging print-out to termscript.
Diffstat (limited to 'src')
| -rw-r--r-- | src/ChangeLog | 5 | ||||
| -rw-r--r-- | src/msdos.c | 15 |
2 files changed, 16 insertions, 4 deletions
diff --git a/src/ChangeLog b/src/ChangeLog index bdc2d2d7e20..dee383a888f 100644 --- a/src/ChangeLog +++ b/src/ChangeLog | |||
| @@ -1,3 +1,8 @@ | |||
| 1 | 2004-09-10 Eli Zaretskii <eliz@gnu.org> | ||
| 2 | |||
| 3 | * msdos.c (msdos_set_cursor_shape): Add debugging print-out to | ||
| 4 | termscript. | ||
| 5 | |||
| 1 | 2004-09-09 Richard M. Stallman <rms@gnu.org> | 6 | 2004-09-09 Richard M. Stallman <rms@gnu.org> |
| 2 | 7 | ||
| 3 | * xdisp.c (decode_mode_spec): Use current buffer for most purposes. | 8 | * xdisp.c (decode_mode_spec): Use current buffer for most purposes. |
diff --git a/src/msdos.c b/src/msdos.c index f2d1dc66a69..e0f4527e5ae 100644 --- a/src/msdos.c +++ b/src/msdos.c | |||
| @@ -752,6 +752,9 @@ msdos_set_cursor_shape (struct frame *f, int start_line, int width) | |||
| 752 | if (f && f != SELECTED_FRAME()) | 752 | if (f && f != SELECTED_FRAME()) |
| 753 | return; | 753 | return; |
| 754 | 754 | ||
| 755 | if (termscript) | ||
| 756 | fprintf (termscript, "\nCURSOR SHAPE=(%d,%d)", start_line, width); | ||
| 757 | |||
| 755 | /* The character cell size in scan lines is stored at 40:85 in the | 758 | /* The character cell size in scan lines is stored at 40:85 in the |
| 756 | BIOS data area. */ | 759 | BIOS data area. */ |
| 757 | max_line = _farpeekw (_dos_ds, 0x485) - 1; | 760 | max_line = _farpeekw (_dos_ds, 0x485) - 1; |
| @@ -851,10 +854,12 @@ IT_set_cursor_type (struct frame *f, Lisp_Object cursor_type) | |||
| 851 | } | 854 | } |
| 852 | } | 855 | } |
| 853 | else | 856 | else |
| 854 | /* Treat anything unknown as "box cursor". This includes nil, so | 857 | { |
| 855 | that a frame which doesn't specify a cursor type gets a box, | 858 | /* Treat anything unknown as "box cursor". This includes nil, so |
| 856 | which is the default in Emacs. */ | 859 | that a frame which doesn't specify a cursor type gets a box, |
| 857 | msdos_set_cursor_shape (f, 0, BOX_CURSOR_WIDTH); | 860 | which is the default in Emacs. */ |
| 861 | msdos_set_cursor_shape (f, 0, BOX_CURSOR_WIDTH); | ||
| 862 | } | ||
| 858 | } | 863 | } |
| 859 | 864 | ||
| 860 | static void | 865 | static void |
| @@ -1826,6 +1831,8 @@ static int cursor_cleared; | |||
| 1826 | static void | 1831 | static void |
| 1827 | IT_display_cursor (int on) | 1832 | IT_display_cursor (int on) |
| 1828 | { | 1833 | { |
| 1834 | if (termscript) | ||
| 1835 | fprintf (termscript, "\nCURSOR %s", on ? "ON" : "OFF"); | ||
| 1829 | if (on && cursor_cleared) | 1836 | if (on && cursor_cleared) |
| 1830 | { | 1837 | { |
| 1831 | ScreenSetCursor (current_pos_Y, current_pos_X); | 1838 | ScreenSetCursor (current_pos_Y, current_pos_X); |