Add support for VT100 Auto Wrap Mode (DECAWM) #5372

Closed
opened 2026-01-31 00:11:49 +00:00 by claunia · 2 comments
Owner

Originally created by @j4james on GitHub (Dec 3, 2019).

Description of the new feature/enhancement

The DECAWM escape sequence is a DEC private mode which controls whether characters wrap at the end of the line. It corresponds, more or less, with the existing console ENABLE_WRAP_AT_EOL_OUTPUT flag.

I'm not sure how widely it's used, but it's supported by most terminal emulators I've tested, and it's required to pass the Test of screen features in Vttest.

Proposed technical implementation details

Since we already have the ENABLE_WRAP_AT_EOL_OUTPUT flag, it should just be a matter of hooking up the mode change escape sequence to toggle that flag. However, there is one slight catch - disabling the ENABLE_WRAP_AT_EOL_OUTPUT flag doesn't actually work when WC_DELAY_EOL_WRAP is set (which is always the case in VT mode), so that'll need to be fixed first.

Originally created by @j4james on GitHub (Dec 3, 2019). # Description of the new feature/enhancement The [`DECAWM`](https://vt100.net/docs/vt510-rm/DECAWM.html) escape sequence is a DEC private mode which controls whether characters wrap at the end of the line. It corresponds, more or less, with the existing console `ENABLE_WRAP_AT_EOL_OUTPUT` flag. I'm not sure how widely it's used, but it's supported by most terminal emulators I've tested, and it's required to pass the _Test of screen features_ in Vttest. # Proposed technical implementation details Since we already have the `ENABLE_WRAP_AT_EOL_OUTPUT` flag, it should just be a matter of hooking up the mode change escape sequence to toggle that flag. However, there is one slight catch - disabling the `ENABLE_WRAP_AT_EOL_OUTPUT` flag doesn't actually work when `WC_DELAY_EOL_WRAP` is set (which is always the case in VT mode), so that'll need to be fixed first.
claunia added the Product-ConhostResolution-Fix-CommittedIssue-TaskArea-VT labels 2026-01-31 00:11:50 +00:00
Author
Owner

@DHowett-MSFT commented on GitHub (Dec 5, 2019):

Yup, this sounds good to me. I'd be interested to see how it lands with ...EOL as well. 😄

@DHowett-MSFT commented on GitHub (Dec 5, 2019): Yup, this sounds good to me. I'd be interested to see how it lands with `...EOL` as well. :smile:
Author
Owner

@ghost commented on GitHub (Feb 13, 2020):

:tada:This issue was addressed in #3943, which has now been successfully released as Windows Terminal Preview v0.9.433.0.🎉

Handy links:

@ghost commented on GitHub (Feb 13, 2020): :tada:This issue was addressed in #3943, which has now been successfully released as `Windows Terminal Preview v0.9.433.0`.:tada: Handy links: * [Release Notes](https://github.com/microsoft/terminal/releases/tag/v0.9.433.0) * [Store Download](https://www.microsoft.com/store/apps/9n0dx20hk701?cid=storebadge&ocid=badge)
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/terminal#5372