clusterssh icon indicating copy to clipboard operation
clusterssh copied to clipboard

.clusterssh/config: terminal_size (esp. number of columns) is ignored

Open harridu opened this issue 8 years ago • 3 comments

Apparently the terminal_size config parameter is ignored. I set it to 80x24 (the default), but "tput cols" reports only 77 colums or less, depending upon the font size. Can anybody reproduce?

harridu avatar Feb 24 '17 10:02 harridu

It isn't ignored, but it probably doesn't work how you would expect.

The 80x24 is a guideline - the actual size is calculated from taking this terminal size, getting the font name and working out it's size, calculating the require terminal size by multiplying those together (as different sizes of fonts require different widths of terminals, and therefore different spacing between them), and then setting the terminal to the resulting figure. This figure is then also used for tiling calculations.

I will revisit this as and when I rewrite the window handling code.

duncs avatar Mar 07 '17 22:03 duncs

I am currently using ClusterSSH 4.16 on Debian and I am also looking for a way to guarantee a terminal width of 80 columns. So, +1. Also, the manpage says: "the number of lines (24) will be decreased when resizing terminals for tiling, not the number of characters (80)."

xrat avatar Sep 20 '22 13:09 xrat

It seems I figured out why my ClusterSSH xterms ended up with less than 80 columns: I am choosing a particular font and font-size by means of terminal_args, so I had removed the config setting terminal_font. Setting an appropriate value gets me 80 columns. The following 2 combinations (one for a slightly larger font) work for me:

terminal_args=-fa DejaVuSansMono -fs 9
terminal_font=7x13
terminal_args=-fa DejaVuSansMono -fs 10
terminal_font=8x13

xrat avatar Mar 13 '23 20:03 xrat