Skip to content

Conversation

@orange-guo
Copy link

  • Add check for empty column ranges in display_set_columns
  • Improve cursor rendering by considering character width
  • Adjust cursor redraw area to fit within visible columns
  • Log debug message for empty column ranges

@orange-guo
Copy link
Author

The issue related to this PR is: https://issues.apache.org/jira/projects/GUACAMOLE/issues/GUACAMOLE-2091

Copy link
Contributor

@necouchman necouchman left a comment

Choose a reason for hiding this comment

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

Just one change from me, other than that looks okay. Also @orange-guo, if you could rebase and change the pull request to be against the patch branch instead of main? That way we can get the fix into the 1.6.1 release.

@mike-jumper Any comments from you?

end_column = guac_terminal_fit_to_range(end_column, 0, display->width - 1);

if (start_column > end_column) {
guac_client_log(display->client, GUAC_LOG_DEBUG, "display_set_columns: Adjusted range is empty [%d,%d], returning.", start_column, end_column);
Copy link
Contributor

Choose a reason for hiding this comment

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

This seems like it should be in GUAC_LOG_TRACE rather than DEBUG?

@orange-guo orange-guo changed the base branch from main to patch August 20, 2025 07:05
@orange-guo orange-guo changed the base branch from patch to main August 20, 2025 07:18
@orange-guo orange-guo changed the base branch from main to patch August 20, 2025 07:23
@orange-guo
Copy link
Author

@necouchman all comments have been resolved.

@necouchman necouchman requested a review from mike-jumper August 20, 2025 12:40
- Add check for empty column ranges in display_set_columns
- Improve cursor rendering by considering character width
- Adjust cursor position and size based on the current character
- Optimize cursor redraw in guac_terminal_set_columns
@orange-guo orange-guo changed the base branch from patch to staging/1.6.1 October 16, 2025 08:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants