Skip to content

chore: Add unit suffix to ptyReq and windowChangeReq terminal size variable fields#175

Merged
clement0010 merged 1 commit intomasterfrom
chore/rename-ptyreq-and-windowChangeReq
Jan 5, 2026
Merged

chore: Add unit suffix to ptyReq and windowChangeReq terminal size variable fields#175
clement0010 merged 1 commit intomasterfrom
chore/rename-ptyreq-and-windowChangeReq

Conversation

@clement0010
Copy link
Copy Markdown
Contributor

Changes

  • Rename ptyReq and windowChangeReq terminal size variable fields to make units explicit per RFC4254

Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This PR renames the terminal size fields in ptyReq and windowChangeReq structs to include explicit unit suffixes, improving code clarity per RFC4254 specification. The field names now clearly distinguish between character-based dimensions (columns/rows) and pixel-based dimensions.

  • Renamed Columns/Rows to WidthColumns/HeightRows (character-based dimensions)
  • Renamed Width/Height to WidthPixels/HeightPixels (pixel-based dimensions)
  • Updated all references across implementation and test files

Reviewed changes

Copilot reviewed 4 out of 4 changed files in this pull request and generated no comments.

File Description
internal/sshhandler/request_handler.go Updated struct definitions for ptyReq and windowChangeReq with explicit unit suffixes
internal/sshhandler/request_handler_test.go Updated test helper functions and assertions to use new field names
internal/sshhandler/channel_pair.go Updated implementation code to reference new field names when handling pty and window-change requests
internal/sshhandler/channel_pair_test.go Updated test data to use new field names in mock request payloads

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@clement0010 clement0010 merged commit aac20d3 into master Jan 5, 2026
18 checks passed
@clement0010 clement0010 deleted the chore/rename-ptyreq-and-windowChangeReq branch January 5, 2026 03:16
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.

3 participants