Skip to content

Windows 11, escape sequence gibberish in terminal instead of proper initialization. #2914

@Kiri321

Description

@Kiri321

Hello, i've run into an problem, that is the program outputs escape sequence gibberish like:

143;rgb:afaf/afaf/5f5f^[^[]4;144;rgb:afaf/afaf/8787^[^[]4;145;rgb:afaf/afaf/afaf^[^[]4;146;rgb:afaf/afaf/d7d7^[^[]4;147;rgb:afaf/afaf/ffff^[^[]4;148;rgb:afaf/d7d7/0000^[^[]4;149;rgb:afaf/d7d7/5f5f^[^[]4;150;rgb:afaf/d7d7/878761;4;6;7;14;21;22;23;24;28;32;42;52c ... and so on.

sorry for bad post formatting, i am new to github. So anyways, i assume these sequences are to configure the terminal, however, they get printed out as raw escape sequences, for some unknown reason.
I am using notcurses pre-build package from msys UCRT repo. latest versions. same goes with rest of DLL's that i included in project directory, which i will show

12.02.2026 01:13

.
09.02.2026 22:57 ..
04.11.2025 00:00 99 898 libdeflate.dll
17.12.2024 23:10 1 135 869 libiconv-2.dll
01.01.2026 13:21 544 426 libncursesw6.dll
10.11.2025 10:17 595 927 libnotcurses-core-3.dll
31.12.2024 23:10 2 226 871 libunistring-5.dll
05.02.2026 17:29 63 678 libwinpthread-1.dll
12.02.2026 01:08 609 main.d
12.02.2026 01:08 66 456 main.o
12.02.2026 01:08 1 501 makefile
12.02.2026 01:08 110 464 NcursesTesting.exe
09.02.2026 09:35 418 sources.mk
12.02.2026 01:08 871 subdir.mk

the code of the project:

#include <stdio.h>
#include <stdlib.h>
#include <notcurses/notcurses.h>

int main()
{

struct notcurses* nc = notcurses_core_init(NULL, stdout);
if (!nc) {
    fprintf(stderr, "Failed to initialize Notcurses\n");
    return 1;
}
struct ncplane* stdplane = notcurses_stdplane(nc);
ncplane_putstr(stdplane, "hello world");
notcurses_render(nc);
notcurses_stop(nc);

return 0;

}

Terminal used: latest modern windows terminal, not conhost one.

note: even with only notcurses_core_init, it prints out all gibberish. Makes sense, it should send commands to terminal to configure colors, etc.
note 2: did try to "set TERM=xterm-256color", same output.

Metadata

Metadata

Assignees

No one assigned

    Labels

    userquestionnot quite bugs--inquiries from users

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions