Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion src/libc/posix/termios/tmwrite.c
Original file line number Diff line number Diff line change
Expand Up @@ -737,6 +737,10 @@ set_cursor_shape(int shape)
{
new_cursor = 0x2000;
}
else if (shape == NORMAL_CURSOR)
{
new_cursor = __tty_screen.init_cursor_shape;
}
else
{
max_line = _farpeekw(_dos_ds, 0x0485) - 1;
Expand All @@ -757,7 +761,7 @@ set_cursor_shape(int shape)
if (shape == ENHANCED_CURSOR)
top_line = 0;
else
top_line = bot_line + 1;
top_line = bot_line - 1;

Copy link
Copy Markdown
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Lets CC @jwt27 as this looks like
a genuine djgpp bug.
But given that we ended up needing
also the change above, this point is moot.


new_cursor = ((top_line & 0x1f) << 8) | (bot_line & 0x1f);
}
Expand Down
Loading