Skip to content

merge window and window_24bit together #96

@staxfur

Description

@staxfur

We need to merge the Term::Window and Term::WIndow_24bit classes some day to avoid having the same code twice (and fix things twice too). The first idea of:

struct Color {
    enum { bit24, bit3, bit4 } tag;
    union {
        struct {
            char R, G, B;
        };   
        fg color_fg;
        fgB color_fgB;
    };  
};   

Didn't worked, because of the vectors and forbidden anonymous structures and unions. A different approach is required here.

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Type

No type

Projects

Status

Done

Relationships

None yet

Development

No branches or pull requests

Issue actions