Terminal: Ability to disable line wrapping in Windows Terminal

Created on 13 Jul 2020  路  2Comments  路  Source: microsoft/terminal

Description of the new feature/enhancement

Currently Windows Terminal wraps lines by default. It would be great to give an option (in settings json) or a shortcut to toggle line wrapping.

Why? One of the reasons are tables printed in console, like "oc get all" for OpenShift. Table lines get wrapped, sometimes more than once - this makes table unreadable (example from my mini cluster, on normal cluster all the tables would be much longer):
oc get all example
Without line wrapping last table would be perfectly readable.

Another example - Linux messages log. 1 message per line would be perfect, but with line wrapping output becomes a mess.

I saw several closed issues on this, but none of them had clear reason why this feature is requested. Like, #6378 , #1860,

Proposed technical implementation details (optional)

How? I don't know internal structure of Windows terminal, but I suspect it should be possible to make width larger than window width and use something like a viewport with horizontal scrollbar.

From configuration point of view - it could be one of the options in settings (i.e. separate profile with wrapping disabled), or like this is done in VScode - a shortcut:

    VScode line wrapping example

Issue-Feature Resolution-Duplicate

All 2 comments

Thanks for the request! This is one of the things we're absolutely not going to do -- it's been discussed in a couple different places across the repository, but it all comes back to the same problem: we're not going to add a horizontal scroll bar, because no terminal anywhere _has_ a horizontal scroll bar. The windows console host caused so much trouble by allowing the text buffer to be wider than the actual screen.
/dup #1860, with more info at https://bugzilla.gnome.org/show_bug.cgi?id=769440#c1 (for gnome-terminal, one of our peers)

Hi! We've identified this issue as a duplicate of another one that already exists on this Issue Tracker. This specific instance is being closed in favor of tracking the concern over on the referenced thread. Thanks for your report!

Was this page helpful?
0 / 5 - 0 ratings