play-with-go icon indicating copy to clipboard operation
play-with-go copied to clipboard

guides: RHS terminal does not send resize event to remote session

Open myitcv opened this issue 5 years ago • 3 comments

As you can see in the screenshot below, at the point of clicking the last command block, the terminal on the RHS was "full". That is to say, we had filled a full screen at this point.

Clicking on the command resulted in the following:

Screen Shot 2020-11-12 at 14 35 58

i.e. the prompt and command rendered as:

[email protected]/ud294cdedd301/public@latest gopher.live/ud294cdedd301/privat

(note the missing prompt, and missing start of the command)

instead of:

$ go get gopher.live/ud294cdedd301/public@latest gopher.live/ud294cdedd301/private@latest

The command does, however, appear to execute correctly.

myitcv avatar Nov 12 '20 14:11 myitcv

Trying to repro this one.

marcosnils avatar Nov 13 '20 03:11 marcosnils

Bit more complex to fix. Moving to "next"

myitcv avatar Nov 13 '20 21:11 myitcv

Ok I think this is actually only related to the length of the command that is executed.

Paste the following into a terminal and you will see a similar issue:

PROMPT_COMMAND="if [ \$? = 0 ]; then DOLLAR_COLOUR=\"\[\033[0m\]\"; else DOLLAR_COLOUR=\"\033[0;31m\"; fi"

Screen Shot 2020-11-27 at 09 02 09

This appears to actually be a resizing issue, because if you load vim then it does not take up the available space:

Screen Shot 2020-11-27 at 09 02 58

So I've adjusted the title accordingly.

myitcv avatar Nov 27 '20 09:11 myitcv