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

Terminal rows are misaligned when using TMUX over SSH #503

Closed
AdamReece-WebBox opened this issue Oct 12, 2018 · 4 comments
Closed

Terminal rows are misaligned when using TMUX over SSH #503

AdamReece-WebBox opened this issue Oct 12, 2018 · 4 comments

Comments

@AdamReece-WebBox
Copy link

I understand that ConsoleZ is a wrapper and not a shell/terminal itself.

Description

A few months ago I posted an issue to Ask Ubuntu that there was an issue with the buffer when using TMUX causing lines to become misaligned.

The original issue including screen shots: https://askubuntu.com/questions/1048497/terminal-rows-are-misaligned-when-using-tmux-over-ssh

Interestingly this only occurred since I updated the Ubuntu build to 18.04 from 16.04, and that it did not happen with any Debian or CentOS installations. I therefore reported the issue to Ask Ubuntu believing it is an issue with Ubuntu 18.04 and not ConsoleZ. (Because I understand that ConsoleZ is not a terminal/shell itself, only a wrapper.)

However today I used Bash via the Cygwin wrapper instead of ConsoleZ, went into TMUX on Ubuntu 18.04 to check a script I had left running overnight, and noticed it displayed fine. I also noticed that in the Cygwin wrapper the scroll bar had become disabled when entering TMUX, presumably because their wrapper had noticed that the buffer size of the Bash shell within has changed to only 43 without any possibility of having a scrollback. It looks like ConsoleZ still thinks the shell's buffer hasn't lost its scrollback though, which could be responsible for the incorrect output.

This is partly still the case with TMUX in Debian, but the TMUX output on that is always clamped to the top of the buffer with the topmost 43 rows being updated only until TMUX is departed.

This could therefore still be a buffering issue with Ubuntu, but I'm not sure who is responsible for this issue as it only occurs with TMUX on Ubuntu 18.04 displayed through ConsoleZ. (Change either factor Ubuntu 18.04, or ConsoleZ, and the issue is resolved.) If you don't believe this is a ConsoleZ issue I can be satisfied with that.

Both Cygwin and ConsoleZ wrappers are configured to have 10000 lines of scrollback.

Expected Behavior

Rows to be correctly aligned as per the shell's buffer.

Actual Behavior

Rows become misaligned.

Steps to reproduce

  1. Open Bash within a ConsoleZ wrapper, or Cygwin wrapper
  2. SSH in to a Ubuntu 18.04 host
  3. Start TMUX
  4. See if it displays correctly (provoke it with CTRL+, to rename the window, type a window name)

Diagnostic Report

I've noticed some immediate inconsistencies with this diagnostic output.

  1. The font I use is Consolas at size 13, not Lucida Console at size 16. (It's taken this from my CMD config, not ConsoleZ. Even for non-CMD shells wrapped.)
  2. The buffer size is 132x43, not 132x63.
ConsoleZ aero amd64 1.18.3.18143
Windows 10 (64 bits) [10.0.17134]
is elevated? no
UAC prefix "Administrator: "
Tab: Cygwin
  View (active): 8. ####### - ~
  is elevated? no
  input code page 850
  output code page 850
  Windows console font
font index: 0
face name: Lucida Console
font familly: 54 MODERN vector true type
font weight: 400
font size: width=10 height=16
max window size: cols=132 rows=63
  ConsoleZ font
GetFontLanguageInfo returns 262144.
The font contains extra glyphs not normally accessible using the code page.

Tab: Cygwin
  View (active): 2. Cygwin - ~
  is elevated? no
  input code page 850
  output code page 850
  Windows console font
font index: 0
face name: Lucida Console
font familly: 54 MODERN vector true type
font weight: 400
font size: width=10 height=16
max window size: cols=132 rows=63
  ConsoleZ font
GetFontLanguageInfo returns 262144.
The font contains extra glyphs not normally accessible using the code page.

Tab (active): CMD
  View (active): 1. CMD
  is elevated? no
  input code page 850
  output code page 850
  Windows console font
font index: 0
face name: Lucida Console
font familly: 54 MODERN vector true type
font weight: 400
font size: width=10 height=16
max window size: cols=132 rows=63
  ConsoleZ font
GetFontLanguageInfo returns 262144.
The font contains extra glyphs not normally accessible using the code page.

Tab: Cygwin
  View (active): 6. #####:W - ~
  is elevated? no
  input code page 850
  output code page 850
  Windows console font
font index: 0
face name: Lucida Console
font familly: 54 MODERN vector true type
font weight: 400
font size: width=10 height=16
max window size: cols=132 rows=63
  ConsoleZ font
GetFontLanguageInfo returns 262144.
The font contains extra glyphs not normally accessible using the code page.

Tab: Cygwin
  View (active): 4. #####:P - ~
  is elevated? no
  input code page 850
  output code page 850
  Windows console font
font index: 0
face name: Lucida Console
font familly: 54 MODERN vector true type
font weight: 400
font size: width=10 height=16
max window size: cols=132 rows=63
  ConsoleZ font
GetFontLanguageInfo returns 262144.
The font contains extra glyphs not normally accessible using the code page.

Tab: Cygwin
  View (active): 3. Adam - ~
  is elevated? no
  input code page 850
  output code page 850
  Windows console font
font index: 0
face name: Lucida Console
font familly: 54 MODERN vector true type
font weight: 400
font size: width=10 height=16
max window size: cols=132 rows=63
  ConsoleZ font
GetFontLanguageInfo returns 262144.
The font contains extra glyphs not normally accessible using the code page.

Tab: Cygwin
  View (active): 7. #####:B - ~
  is elevated? no
  input code page 850
  output code page 850
  Windows console font
font index: 0
face name: Lucida Console
font familly: 54 MODERN vector true type
font weight: 400
font size: width=10 height=16
max window size: cols=132 rows=63
  ConsoleZ font
GetFontLanguageInfo returns 262144.
The font contains extra glyphs not normally accessible using the code page.

Tab: Cygwin
  View (active): 5. #####:F - ~
  is elevated? no
  input code page 850
  output code page 850
  Windows console font
font index: 0
face name: Lucida Console
font familly: 54 MODERN vector true type
font weight: 400
font size: width=10 height=16
max window size: cols=132 rows=63
  ConsoleZ font
GetFontLanguageInfo returns 262144.
The font contains extra glyphs not normally accessible using the code page.

Monitors 2
+ Flags 1  primary
  DeviceID \\?\DISPLAY#GSM583D#4&7e5290e&1&UID198155#{e6f07b5f-ee97-4a90-b076-33f57bf4eaa7}
  DeviceKey \Registry\Machine\System\CurrentControlSet\Control\Class\{4d36e96e-e325-11ce-bfc1-08002be10318}\0001
  DeviceName \\.\DISPLAY2\Monitor0
  DeviceString Generic PnP Monitor
  StateFlags 3
  Rect (0,0)x(1920,1080)
  Work (0,0)x(1920,1040)
  DPI (per monitor: yes) X=96 Y=96
+ Flags 0
  DeviceID \\?\DISPLAY#GSM583D#4&7e5290e&1&UID206355#{e6f07b5f-ee97-4a90-b076-33f57bf4eaa7}
  DeviceKey \Registry\Machine\System\CurrentControlSet\Control\Class\{4d36e96e-e325-11ce-bfc1-08002be10318}\0002
  DeviceName \\.\DISPLAY3\Monitor0
  DeviceString Generic PnP Monitor
  StateFlags 3
  Rect (1920,0)x(3840,1080)
  Work (1920,0)x(3840,1040)
  DPI (per monitor: yes) X=96 Y=96
System dpi 96
System metrics
  SM_CXSMICON        16
  SM_CYSMICON        16
  SM_CXICON          32
  SM_CYICON          32
  SM_CXVIRTUALSCREEN 3840
  SM_CYVIRTUALSCREEN 1080
  SM_CYVIRTUALSCREEN 1080
Settings file C:\Users\Adam Reece\AppData\Roaming\Console\console.xml
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<settings lang="auto" icon_size="0">
	<console shell="%SystemRoot%\System32\cmd.exe" init_dir="%UserProfile%" refresh="100" change_refresh="10" rows="43" columns="132" buffer_rows="10000" buffer_columns="0" start_hidden="0" save_size="0">
		<colors background_text_opacity="255">
			<color id="0" r="0" g="0" b="0"/>
			<color id="1" r="0" g="0" b="128"/>
			<color id="2" r="0" g="150" b="0"/>
			<color id="3" r="0" g="150" b="150"/>
			<color id="4" r="170" g="25" b="25"/>
			<color id="5" r="128" g="0" b="128"/>
			<color id="6" r="128" g="128" b="0"/>
			<color id="7" r="192" g="192" b="192"/>
			<color id="8" r="128" g="128" b="128"/>
			<color id="9" r="0" g="100" b="255"/>
			<color id="10" r="0" g="255" b="0"/>
			<color id="11" r="0" g="255" b="255"/>
			<color id="12" r="255" g="50" b="50"/>
			<color id="13" r="255" g="0" b="255"/>
			<color id="14" r="255" g="255" b="0"/>
			<color id="15" r="255" g="255" b="255"/>
		</colors>
		<cursor style="12" r="255" g="255" b="0"/>
		<background type="0" r="0" g="0" b="0">
			<image file="" relative="0" extend="0" position="0">
				<tint opacity="0" r="0" g="0" b="0"/></image></background></console>
	<appearance>
		<font name="Consolas" size="13" extra_width="0" bold="1" italic="0" smoothing="4" bold_intensified="0" italic_intensified="0" ligature="1">
			<color use="0" r="0" g="0" b="0"/></font>
		<window title="ConsoleZ" icon="" main_title_format="?U([%u] )?N({%u} )%m?s( - %s)" tab_title_format="%n. ?U([%u] )?N({%u} )%t?s( - %s)" use_tab_icon="1" use_tab_title="1" trim_tab_titles="20" trim_tab_titles_right="0"/>
		<fullscreen start_in_fullscreen="0" fullscreen_monitor="0">
			<controls show_menu="1" show_toolbar="1" show_searchbar="1" show_statusbar="1" show_tabs="1" hide_single_tab="1" tabs_on_bottom="0" hide_tab_icons="0" hide_tab_close_button="0" hide_tab_new_button="0" show_scrollbars="1"/>
			<transparency type="0" active_alpha="255" inactive_alpha="255" r="0" g="0" b="0" active="1"/></fullscreen>
		<controls show_menu="1" show_toolbar="1" show_searchbar="1" show_statusbar="1" show_tabs="1" hide_single_tab="0" tabs_on_bottom="0" hide_tab_icons="0" hide_tab_close_button="0" hide_tab_new_button="0" show_scrollbars="1"/>
		<styles caption="1" resizable="0" taskbar_button="1" border="1" inside_border="2" split_bar_size="0" tray_icon="0" quake_like="0" quake_animation_time="300" jumplist="1" integrated_ime="0" hide_when_inactive="0" per_monitor_dpi="0" keep_view_theme="0">
			<selection_color r="255" g="255" b="255"/>
			<highlight_color r="191" g="191" b="191"/></styles>
		<position x="-1" y="-1" save_position="0" w="-1" h="-1" save_size="0" z_order="0" dock="-1" snap="10" save_state="0" state="-1"/>
		<transparency type="0" active_alpha="255" inactive_alpha="255" r="0" g="0" b="0" active="1"/></appearance>
	<behavior>
		<copy_paste copy_on_select="1" clear_on_copy="1" sensitive_copy="1" no_wrap="1" eol_spaces="1" trim_spaces="1" rtf="0" copy_newline_char="0" include_left_delimiter="0" include_right_delimiter="0" left_delimiters=" ([" right_delimiters=" )]"/>
		<scroll page_scroll_rows="6"/>
		<tab_highlight flashes="3" stay_highligted="1"/>
		<environment inherit="1" sync="1"/>
		<focus follow_mouse="0"/>
		<instance allow_multi="1"/>
		<clone use_current_dir="0"/>
		<search match_case="0" match_whole_word="1"/>
		<runas use_credprov="1"/>
		<close allow_closing_last_view="0" exit_on_closing_of_last_tab="1" confirm_closing_multiple_views="1" save_workspace_on_exit="0"/></behavior>
	<hotkeys use_scroll_lock="1">
		<hotkey ctrl="1" shift="0" alt="0" extended="0" code="83" command="settings"/>
		<hotkey ctrl="0" shift="0" alt="0" extended="0" code="112" command="help"/>
		<hotkey ctrl="0" shift="0" alt="1" extended="0" code="115" command="exit"/>
		<hotkey ctrl="1" shift="0" alt="0" extended="0" code="112" command="newtab1"/>
		<hotkey ctrl="1" shift="0" alt="0" extended="0" code="113" command="newtab2"/>
		<hotkey ctrl="1" shift="0" alt="0" extended="0" code="114" command="newtab3"/>
		<hotkey ctrl="1" shift="0" alt="0" extended="0" code="115" command="newtab4"/>
		<hotkey ctrl="1" shift="0" alt="0" extended="0" code="116" command="newtab5"/>
		<hotkey ctrl="1" shift="0" alt="0" extended="0" code="117" command="newtab6"/>
		<hotkey ctrl="1" shift="0" alt="0" extended="0" code="118" command="newtab7"/>
		<hotkey ctrl="1" shift="0" alt="0" extended="0" code="119" command="newtab8"/>
		<hotkey ctrl="1" shift="0" alt="0" extended="0" code="120" command="newtab9"/>
		<hotkey ctrl="1" shift="0" alt="0" extended="0" code="121" command="newtab10"/>
		<hotkey ctrl="1" shift="0" alt="0" extended="0" code="122" command="newtab11"/>
		<hotkey ctrl="1" shift="0" alt="0" extended="0" code="123" command="newtab12"/>
		<hotkey ctrl="1" shift="0" alt="0" extended="0" code="49" command="switchtab1"/>
		<hotkey ctrl="1" shift="0" alt="0" extended="0" code="50" command="switchtab2"/>
		<hotkey ctrl="1" shift="0" alt="0" extended="0" code="51" command="switchtab3"/>
		<hotkey ctrl="1" shift="0" alt="0" extended="0" code="52" command="switchtab4"/>
		<hotkey ctrl="1" shift="0" alt="0" extended="0" code="53" command="switchtab5"/>
		<hotkey ctrl="1" shift="0" alt="0" extended="0" code="54" command="switchtab6"/>
		<hotkey ctrl="1" shift="0" alt="0" extended="0" code="55" command="switchtab7"/>
		<hotkey ctrl="1" shift="0" alt="0" extended="0" code="56" command="switchtab8"/>
		<hotkey ctrl="1" shift="0" alt="0" extended="0" code="57" command="switchtab9"/>
		<hotkey ctrl="1" shift="0" alt="0" extended="0" code="48" command="switchtab10"/>
		<hotkey ctrl="1" shift="0" alt="0" extended="0" code="9" command="nexttab"/>
		<hotkey ctrl="1" shift="1" alt="0" extended="0" code="9" command="prevtab"/>
		<hotkey ctrl="0" shift="0" alt="0" extended="0" code="0" command="movetableft"/>
		<hotkey ctrl="0" shift="0" alt="0" extended="0" code="0" command="movetabright"/>
		<hotkey ctrl="1" shift="0" alt="1" extended="0" code="87" command="closetab"/>
		<hotkey ctrl="1" shift="0" alt="1" extended="0" code="82" command="renametab"/>
		<hotkey ctrl="1" shift="0" alt="0" extended="1" code="34" command="nextview"/>
		<hotkey ctrl="1" shift="0" alt="0" extended="1" code="33" command="prevview"/>
		<hotkey ctrl="0" shift="0" alt="1" extended="1" code="37" command="leftview"/>
		<hotkey ctrl="0" shift="0" alt="1" extended="1" code="39" command="rightview"/>
		<hotkey ctrl="0" shift="0" alt="1" extended="1" code="38" command="topview"/>
		<hotkey ctrl="0" shift="0" alt="1" extended="1" code="40" command="bottomview"/>
		<hotkey ctrl="0" shift="0" alt="0" extended="0" code="0" command="dechsize"/>
		<hotkey ctrl="0" shift="0" alt="0" extended="0" code="0" command="inchsize"/>
		<hotkey ctrl="0" shift="0" alt="0" extended="0" code="0" command="decvsize"/>
		<hotkey ctrl="0" shift="0" alt="0" extended="0" code="0" command="incvsize"/>
		<hotkey ctrl="1" shift="1" alt="0" extended="0" code="87" command="closeview"/>
		<hotkey ctrl="0" shift="0" alt="0" extended="0" code="0" command="detachview"/>
		<hotkey ctrl="0" shift="0" alt="0" extended="0" code="0" command="maximizeview"/>
		<hotkey ctrl="0" shift="0" alt="0" extended="0" code="0" command="restoreview"/>
		<hotkey ctrl="0" shift="0" alt="0" extended="0" code="0" command="attach"/>
		<hotkey ctrl="1" shift="1" alt="0" extended="0" code="79" command="splithoriz"/>
		<hotkey ctrl="1" shift="1" alt="0" extended="0" code="69" command="splitvert"/>
		<hotkey ctrl="0" shift="0" alt="0" extended="0" code="0" command="splitswap"/>
		<hotkey ctrl="0" shift="0" alt="0" extended="0" code="0" command="clone"/>
		<hotkey ctrl="0" shift="0" alt="0" extended="0" code="122" command="fullscreen"/>
		<hotkey ctrl="1" shift="0" alt="0" extended="0" code="96" command="zoom100"/>
		<hotkey ctrl="1" shift="0" alt="0" extended="0" code="107" command="zoominc"/>
		<hotkey ctrl="1" shift="0" alt="0" extended="0" code="109" command="zoomdec"/>
		<hotkey ctrl="1" shift="0" alt="1" extended="0" code="71" command="groupall"/>
		<hotkey ctrl="1" shift="1" alt="0" extended="0" code="71" command="ungroupall"/>
		<hotkey ctrl="1" shift="0" alt="1" extended="0" code="84" command="grouptab"/>
		<hotkey ctrl="1" shift="1" alt="0" extended="0" code="84" command="ungrouptab"/>
		<hotkey ctrl="0" shift="0" alt="0" extended="0" code="0" command="clear"/>
		<hotkey ctrl="1" shift="0" alt="0" extended="1" code="45" command="copy"/>
		<hotkey ctrl="1" shift="0" alt="1" extended="0" code="65" command="selectall"/>
		<hotkey ctrl="1" shift="0" alt="0" extended="1" code="46" command="clear_selection"/>
		<hotkey ctrl="0" shift="1" alt="0" extended="1" code="45" command="paste"/>
		<hotkey ctrl="0" shift="0" alt="0" extended="0" code="0" command="paste_selection"/>
		<hotkey ctrl="0" shift="0" alt="0" extended="0" code="0" command="stopscroll"/>
		<hotkey ctrl="0" shift="0" alt="0" extended="0" code="0" command="resumescroll"/>
		<hotkey ctrl="0" shift="0" alt="0" extended="0" code="0" command="textselleft"/>
		<hotkey ctrl="0" shift="0" alt="0" extended="0" code="0" command="textselright"/>
		<hotkey ctrl="0" shift="0" alt="0" extended="0" code="0" command="textseltop"/>
		<hotkey ctrl="0" shift="0" alt="0" extended="0" code="0" command="textselbottom"/>
		<hotkey ctrl="0" shift="0" alt="0" extended="0" code="0" command="textselhome"/>
		<hotkey ctrl="0" shift="0" alt="0" extended="0" code="0" command="textselend"/>
		<hotkey ctrl="0" shift="0" alt="0" extended="0" code="0" command="textselpageup"/>
		<hotkey ctrl="0" shift="0" alt="0" extended="0" code="0" command="textselpagedown"/>
		<hotkey ctrl="0" shift="0" alt="0" extended="0" code="0" command="colselleft"/>
		<hotkey ctrl="0" shift="0" alt="0" extended="0" code="0" command="colselright"/>
		<hotkey ctrl="0" shift="0" alt="0" extended="0" code="0" command="colseltop"/>
		<hotkey ctrl="0" shift="0" alt="0" extended="0" code="0" command="colselbottom"/>
		<hotkey ctrl="0" shift="0" alt="0" extended="0" code="0" command="colselhome"/>
		<hotkey ctrl="0" shift="0" alt="0" extended="0" code="0" command="colselend"/>
		<hotkey ctrl="0" shift="0" alt="0" extended="0" code="0" command="colselpageup"/>
		<hotkey ctrl="0" shift="0" alt="0" extended="0" code="0" command="colselpagedown"/>
		<hotkey ctrl="0" shift="0" alt="0" extended="0" code="0" command="scrollrowup"/>
		<hotkey ctrl="0" shift="0" alt="0" extended="0" code="0" command="scrollrowdown"/>
		<hotkey ctrl="0" shift="0" alt="0" extended="0" code="0" command="scrollpageup"/>
		<hotkey ctrl="0" shift="0" alt="0" extended="0" code="0" command="scrollpagedown"/>
		<hotkey ctrl="0" shift="0" alt="0" extended="0" code="0" command="scrollcolleft"/>
		<hotkey ctrl="0" shift="0" alt="0" extended="0" code="0" command="scrollcolright"/>
		<hotkey ctrl="0" shift="0" alt="0" extended="0" code="0" command="scrollpageleft"/>
		<hotkey ctrl="0" shift="0" alt="0" extended="0" code="0" command="scrollpageright"/>
		<hotkey ctrl="0" shift="0" alt="0" extended="0" code="0" command="find"/>
		<hotkey ctrl="0" shift="0" alt="0" extended="0" code="0" command="findnext"/>
		<hotkey ctrl="0" shift="0" alt="0" extended="0" code="0" command="findprev"/>
		<hotkey ctrl="0" shift="0" alt="0" extended="0" code="0" command="switchtransparency"/>
		<hotkey ctrl="0" shift="0" alt="0" extended="0" code="0" command="alwaysontop"/>
		<hotkey ctrl="1" shift="1" alt="0" extended="0" code="112" command="dumpbuffer"/>
		<hotkey ctrl="0" shift="0" alt="0" extended="0" code="0" command="cmdMenu1"/>
		<hotkey ctrl="0" shift="0" alt="0" extended="0" code="0" command="cmdMenu2"/>
		<hotkey ctrl="0" shift="0" alt="0" extended="0" code="0" command="cmdMenu3"/>
		<hotkey ctrl="0" shift="0" alt="0" extended="0" code="0" command="cmdSnippets"/>
		<hotkey ctrl="0" shift="0" alt="0" extended="0" code="0" command="ctrlC"/>
		<hotkey ctrl="0" shift="0" alt="0" extended="0" code="0" command="wspload"/>
		<hotkey ctrl="0" shift="0" alt="0" extended="0" code="0" command="wspsave"/>
		<hotkey ctrl="0" shift="0" alt="0" extended="0" code="0" command="fwdmouse"/>
		<hotkey ctrl="0" shift="0" alt="0" extended="0" code="0" command="externalcmd1"/>
		<hotkey ctrl="0" shift="0" alt="0" extended="0" code="0" command="externalcmd2"/>
		<hotkey ctrl="0" shift="0" alt="0" extended="0" code="0" command="externalcmd3"/>
		<hotkey ctrl="0" shift="0" alt="0" extended="0" code="0" command="externalcmd4"/>
		<hotkey ctrl="0" shift="0" alt="0" extended="0" code="0" command="externalcmd5"/>
		<hotkey ctrl="0" shift="0" alt="0" extended="0" code="0" command="externalcmd6"/>
		<hotkey ctrl="0" shift="0" alt="0" extended="0" code="0" command="externalcmd7"/>
		<hotkey ctrl="0" shift="0" alt="0" extended="0" code="0" command="externalcmd8"/>
		<hotkey ctrl="0" shift="0" alt="0" extended="0" code="0" command="externalcmd9"/>
		<hotkey ctrl="0" shift="0" alt="0" extended="0" code="0" command="externalcmd10"/>
		<hotkey ctrl="0" shift="0" alt="0" extended="0" code="0" command="activate" win="0"/>
	</hotkeys>
	<external_commands>
	</external_commands>
	<mouse>
		<actions>
			<action ctrl="0" shift="0" alt="0" button="3" name="copy"/>
			<action ctrl="0" shift="0" alt="0" button="1" name="select"/>
			<action ctrl="0" shift="0" alt="0" button="0" name="select_column"/>
			<action ctrl="0" shift="0" alt="0" button="2" name="paste"/>
			<action ctrl="0" shift="0" alt="0" button="0" name="drag"/>
			<action ctrl="0" shift="0" alt="0" button="0" name="link"/>
			<action ctrl="0" shift="0" alt="0" button="0" name="menu"/>
			<action ctrl="0" shift="0" alt="0" button="5" name="menu2"/>
			<action ctrl="0" shift="0" alt="0" button="4" name="menu3"/>
			<action ctrl="0" shift="0" alt="0" button="0" name="snippets"/>
		</actions></mouse>
	<snippets dir=""/>
	<tabs>
		<tab title="CMD" icon="%SystemRoot%\System32\cmd.exe" use_default_icon="0">
			<console shell="%SystemRoot%\System32\cmd.exe" init_dir="%UserProfile%" priority="2" run_as_user="0" user="" net_only="0" run_as_admin="0"/>
		</tab>
		<tab title="CMD (Administrator)" icon="%SystemRoot%\System32\cmd.exe" use_default_icon="0">
			<console shell="%SystemRoot%\System32\cmd.exe" init_dir="%UserProfile%" priority="2" run_as_user="0" user="" net_only="0" run_as_admin="1"/>
		</tab>
		<tab title="Cygwin" icon="C:\cygwin64\Cygwin-Terminal.ico" use_default_icon="0">
			<console shell="C:\cygwin64\bin\bash.exe --login -i -c &quot;exec /bin/bash&quot;" init_dir="%UserProfile%" priority="2" run_as_user="0" user="" net_only="0" run_as_admin="0"/>
			<cursor style="13" r="255" g="255" b="0"/>
		</tab>
		<tab title="Cygwin (Administrator)" icon="C:\cygwin64\Cygwin-Terminal.ico" use_default_icon="0">
			<console shell="C:\cygwin64\bin\bash.exe --login -i -c &quot;exec /bin/bash&quot;" init_dir="%UserProfile%" priority="2" run_as_user="0" user="" net_only="0" run_as_admin="1"/>
			<cursor style="13" r="255" g="255" b="0"/>
		</tab>
	</tabs></settings>
@cbucher
Copy link
Owner

cbucher commented Oct 19, 2018

Applications get the console screen size by calling WIN32 console API. ConsoleZ is only a WIndows Console wrapper, it cannot modify the application behavior.
So if you have distinct behaviour whithout ConsoleZ, then you have distinct settings in you application.
Verify launching command line and environment variables.
Best canddiate : term variable.

@AdamReece-WebBox
Copy link
Author

AdamReece-WebBox commented Oct 19, 2018

calling WIN32 console API
ConsoleZ is only a WIndows Console wrapper

Yep, I thought as much. Afterall, Cygterm is emulating a Unix console environment to contain Bash, not a Windows console environment, so things like size determination I understand will have their differences. Therefore I agree the blame is not on ConsoleZ's shoulders.

I'm probably not supposed to be running Bash in ConsoleZ, but other than this TMUX issue it works really well, so I'll continue as I am. (I only use Ubuntu in one place anyway, and not by my choice.)

Thanks for your feedback. :)

@cbucher
Copy link
Owner

cbucher commented Oct 19, 2018

I'm probably not supposed to be running Bash in ConsoleZ,

Why ?

Have you tried to fix term variable?
#175

@AdamReece-WebBox
Copy link
Author

Thanks for quoting that issue. $TERM is "cygwin" throughout, and I'm launching Cygwin using the same command as in the batch file.

Looks like encapsulating within screen does make an improvement, which sets $TERM to "screen", though I didn't need to install this locally. Using screen within the Linux VM works just as well.

ConsoleZ -> SSH -> Screen -> TMUX

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

No branches or pull requests

2 participants