DECTCEM doesn't work in terminal #6162

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

Originally created by @joaobzrr on GitHub (Jan 27, 2020).

Environment

Windows build number: 19041.21
Windows Terminal version: 0.8.10091.0

Steps to reproduce

Run this:

#include <windows.h>
#include <stdio.h>

int main(int argc, char **argv)
{
    HANDLE con_out = CreateFile("CONOUT$", GENERIC_READ | GENERIC_WRITE, FILE_SHARE_WRITE, 0, OPEN_EXISTING, 0, 0);

    DWORD mode;
    GetConsoleMode(con_out, &mode);
    mode |= ENABLE_VIRTUAL_TERMINAL_PROCESSING;
    SetConsoleMode(con_out, mode);

    printf("\x1b[?25l");
    Sleep(2000);
    printf("\x1b[?25h");

    return 0;
}

Expected behavior

Cursor should become invisible.

Actual behavior

Works on conhost, but not on Terminal. Cursor remains visible.

Originally created by @joaobzrr on GitHub (Jan 27, 2020). # Environment ```none Windows build number: 19041.21 Windows Terminal version: 0.8.10091.0 ``` # Steps to reproduce Run this: ```cpp #include <windows.h> #include <stdio.h> int main(int argc, char **argv) { HANDLE con_out = CreateFile("CONOUT$", GENERIC_READ | GENERIC_WRITE, FILE_SHARE_WRITE, 0, OPEN_EXISTING, 0, 0); DWORD mode; GetConsoleMode(con_out, &mode); mode |= ENABLE_VIRTUAL_TERMINAL_PROCESSING; SetConsoleMode(con_out, mode); printf("\x1b[?25l"); Sleep(2000); printf("\x1b[?25h"); return 0; } ``` # Expected behavior Cursor should become invisible. # Actual behavior Works on conhost, but not on Terminal. Cursor remains visible.
claunia added the Resolution-Duplicate label 2026-01-31 00:31:20 +00:00
Author
Owner

@DHowett-MSFT commented on GitHub (Jan 27, 2020):

/dup #3093

@DHowett-MSFT commented on GitHub (Jan 27, 2020): /dup #3093
Author
Owner

@ghost commented on GitHub (Jan 27, 2020):

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!

@ghost commented on GitHub (Jan 27, 2020): 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!
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/terminal#6162