Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Text area in characters height and wdith swapped #3457

Closed
kiwichris opened this issue Jan 31, 2023 · 3 comments
Closed

Text area in characters height and wdith swapped #3457

kiwichris opened this issue Jan 31, 2023 · 3 comments

Comments

@kiwichris
Copy link

Terminal query CSI 1 8 t Height and Width Swapped

The set up is:

  1. MacBook running Terminal
  2. SSH to FreeBSD
  3. Tmux session running on FreeBSD
  4. Connection in tmux pane using telnet to ser2net
  5. ser2netconnected to embedded hardware running RTEMS via USB UART connections
  6. Add debug code to print as hex the results of RTEMS sending the CSI 1 8 t request

The MacBook has Terminal sessions to each tmux version in tabs in the same Terminal window so the size is the same. Both machines report the same size using the stty command:

$ stty -a
speed 9600 baud; 99 rows; 586 columns;
  ...

CTL seqs defines the command as:

Ps = 1 8 ⇒ Report the size of the text area in characters.
Result is CSI 8 ; height ; width t

Changing the TERM environment variable did not change the results.

I have reviewed CHANGES and nothing indicated this is a valid issue and has been fixed.

FreeBSD 11 with Tmux 2.7

$ telnet cs-ser-2 30006
Trying 10.10.5.11...
Connected to cs-ser-2
Escape character is '^]'.
rtems [/etc] # cd /etc

1b 5b 38 3b 39 39 3b 35 38 36 74
rtems [/etc] #

The height is 39 39 and the width is 35 38 36

FreeBSD 13 with Tmux 3.2a

$ telnet cs-ser-2 30006
Trying 10.10.5.11...
Connected to cs-ser-2
Escape character is '^]'.
rtems [/etc] # cd /etc        

1b 5b 38 3b 35 38 36 3b 39 39 74 
rtems [/etc] # 

The height is now 35 38 36 and width is 39 39 which looks like it is swapped.

@nicm
Copy link
Member

nicm commented Jan 31, 2023

68dc9af

@kiwichris
Copy link
Author

Thanks for quick response. Good to know it is fixed.

@github-actions
Copy link

github-actions bot commented Mar 3, 2023

This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Mar 3, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Development

No branches or pull requests

2 participants