chjj / blessed

A high-level terminal interface library for node.js.
Other
11.32k stars 534 forks source link

Moving mouse causes lots of characters to flood terminal #235

Open woverton opened 8 years ago

woverton commented 8 years ago

This must be a duplicate but I cant find anything related...

When I copy the blessed example:

this.screen = blessed.screen({
        fastCSR: true
    })

    this.screen.title = 'my window title';

    // Create a box perfectly centered horizontally and vertically.
    var box = blessed.box({
        top: 'center',
        left: 'center',
        width: '50%',
        height: '50%',
        content: 'Hello {bold}world{/bold}!',
        tags: true,
        border: {
            type: 'line'
        },
        style: {
            fg: 'white',
            bg: 'magenta',
            border: {
                fg: '#f0f0f0'
            },
            hover: {
                bg: 'green'
            }
        }
    });

I get a black screen which when I move my mouse over fills up with this

image

I'm using Ubuntu:

$ cat /etc/os-release 
NAME="Ubuntu"
VERSION="15.10 (Wily Werewolf)"
ID=ubuntu
ID_LIKE=debian
PRETTY_NAME="Ubuntu 15.10"
VERSION_ID="15.10"
$ node --version
v5.4.1

I have tried with Bash & Zsh using two terminals and nothing helps.

Thanks for your help!

eugene-eeo commented 8 years ago

@woverton can you run the other examples as well? Because if you can't or you get similar results maybe your terminal emulator doesn't support ANSI escapes (the things that give you colour on terminals).

woverton commented 8 years ago

My terminal certainly supports colours and other formatting characters. I am now using Ubuntu 16.04 and terminator and no longer get these issues.

Nothing has changed except Ubuntu and Node version.

Thanks anyway!

vially commented 8 years ago

I have the exact same issue on Arch Linux. I've tried several terminals (xterm, termite, terminator) and all are having this issue.

GuskiS commented 6 years ago

Facing the same issue.