Im-Beast / deno_tui

🦕 Deno module for creating Terminal User Interfaces
https://deno.land/x/tui
MIT License
266 stars 18 forks source link

bug: Label doesnt show text properly #31

Closed DNAScanner closed 1 year ago

DNAScanner commented 1 year ago

Bug description I tried using the label for displaying a 16x16 / 16x32 texture made up of ansi codes and spaces. Only the first column is shown, the rest isnt shown at all.

Expected behavior Show all columns

Reproduction

new Label({
    parent: tui,
    rectangle: {
        column: 0,
        row: 0,
    },
    text: textures.stone,
    theme: {
        base(text) {
            return text;
        },
    },
    zIndex: 1,
});

textures.stone is the same as in the attached file

Screenshots image image

Text: stone.txt / textures.stone

Information (please complete)

Im-Beast commented 1 year ago

Fixed in 2.1.2 (https://github.com/Im-Beast/deno_tui/commit/9ffffad911f3ed3be9a54a9984435f20859140bf)