microsoft / terminal

The new Windows Terminal and the original Windows console host, all in the same place!
MIT License
95.79k stars 8.33k forks source link

Bug Report: Unintended text updating #2060

Closed RosalesJ closed 5 years ago

RosalesJ commented 5 years ago

Environment

Windows build number: 18362.239
Windows Terminal version: Latest from the microsoft store

Steps to reproduce

Open an application like ranger and browse around.

Expected behavior

Only the intended text updates.

Actual behavior

The intended area updates, but other areas update too garbling the UI.

Ranger:

Emacs:

zadjii-msft commented 5 years ago

What distro are you running, and could you share the output of infocmp?

EDIT: Also, does this repro with just the terminal, or does it also repro when you launch wsl directly (in conhost.exe)?

RosalesJ commented 5 years ago

I'm running Debian. Here's the ouptut of infocmp: output.txt. At the time the issue was with the terminal only, it worked fine on both wsl.exe and conhost.exe. However when I tried to replicate the issue again today I'm no longer able to replicate it on windows temrinal. Maybe a restart had something to do with it.

ghost commented 5 years ago

I've had some issues with emacs in the last 24 hours. I had three erc buffers open and my terminal rendering was way off. It printed a newline character but jumped to the beginning of the terminal emulator on the left side and not to the middle of the buffer.

My guess is that terminal/conhost2 has a special case in which a newline will always jump to the beginning of the terminal emmulator line and not to the beginning of the multiplexed terminal line.

In terms of newline windows terminal should always default to the ansi compliant way of moving the cursor and printing.

Furthermore, some programs have different issues with ansi-compliance. It is important to prioritize them from most used to least.

Vim and emacs are some of these. They need the terminal to be rendered absolutely properly because of the insane style of text editing they both do.

The best program to look to in terms of ansi compliant terminals is probably tmux. tmux it not a terminal emmulator per se but it gets everything right in terms of how it renders things.

miniksa commented 5 years ago

The OP issue is no longer reproducing. Closing.

zadjii-msft commented 5 years ago

For the record, there is another issue tracking the emacs issue - #1474 is probably the issue you're describing.