bug-ncurses
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

is there any way to print out unsanitized output?


From: elronnd
Subject: is there any way to print out unsanitized output?
Date: Thu, 29 Sep 2016 10:01:59 -0700 (MST)
User-agent: Alpine 2.20 (BSF 67 2015-01-07)

Not a bug, per se, but a question about how to use ncurses. I understand that ncurses doesn't natively have capabilities to print out using 24-bit colour, but I want to use ncurses in my program, and I want said program to support 24-bit colour. There seems to be a problem, however, in which ncurses will sanitize its output. Consider the following snippet:

#include <ncurses.h>
int main() {
        initscr();
        printw("\033[33mhello\033[0m\n");
        refresh();
        endwin();
        return 0;
}

This simply prints out "^[[33mhello^[[0m", uncoloured. Is there a way to make ncurses not sanitize this output?

--

Elronnd





reply via email to

[Prev in Thread] Current Thread [Next in Thread]