fix(interactive): set monospace font + stretch on ConPTY terminal
The control derives Cols/Rows from arranged-size / character-cell-size; without an explicit monospace font (as the working spike set) the cell metrics are off and the terminal miscomputes its size, so the child TUI renders into the wrong area. Match the spike's font/BufferSize and stretch to fill the pane.
This commit is contained in:
@@ -11,5 +11,16 @@
|
||||
StartingDirectory to our real target and calls TerminalControl.LaunchProcess() exactly once,
|
||||
once the view model's descriptor is known (see AttachControl/Start).
|
||||
-->
|
||||
<term:TerminalControl x:Name="TerminalHost" Process="" />
|
||||
<!--
|
||||
Font + BufferSize match the working spike. The control derives Cols/Rows from
|
||||
(arranged size / character cell size), so an explicit monospace font is what keeps that
|
||||
calculation correct; without it the terminal miscomputes its size and the child TUI renders
|
||||
into the wrong area. Stretch so the pane's full size reaches the control's Arrange pass.
|
||||
-->
|
||||
<term:TerminalControl x:Name="TerminalHost" Process=""
|
||||
FontFamily="Cascadia Mono,Consolas,monospace"
|
||||
FontSize="14"
|
||||
BufferSize="2000"
|
||||
HorizontalAlignment="Stretch"
|
||||
VerticalAlignment="Stretch" />
|
||||
</UserControl>
|
||||
|
||||
Reference in New Issue
Block a user