chjj / blessed

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

deno support? #425

Closed andykais closed 1 year ago

andykais commented 1 year ago

More of an open question than a feature request (though the goal is deno support for this lib). How feasible would it be to implement deno support? Are there quirks in this library specific to nodejs, or does it just need a simple stdout pipe?

a simple program like so:

import blessed from 'npm:blessed'

const screen = blessed.screen({})
screen.render()

yields the following error:

error: Uncaught RangeError: Maximum call stack size exceeded
    at Function.[Symbol.hasInstance] (<anonymous>)
    at new Screen (file:///home/andrew/.cache/deno/npm/registry.npmjs.org/blessed/0.1.81/lib/widgets/screen.js:35:14)
    at new Screen (file:///home/andrew/.cache/deno/npm/registry.npmjs.org/blessed/0.1.81/lib/widgets/screen.js:36:12)
    at new Screen (file:///home/andrew/.cache/deno/npm/registry.npmjs.org/blessed/0.1.81/lib/widgets/screen.js:36:12)
    at new Screen (file:///home/andrew/.cache/deno/npm/registry.npmjs.org/blessed/0.1.81/lib/widgets/screen.js:36:12)
    at new Screen (file:///home/andrew/.cache/deno/npm/registry.npmjs.org/blessed/0.1.81/lib/widgets/screen.js:36:12)
    at new Screen (file:///home/andrew/.cache/deno/npm/registry.npmjs.org/blessed/0.1.81/lib/widgets/screen.js:36:12)
    at new Screen (file:///home/andrew/.cache/deno/npm/registry.npmjs.org/blessed/0.1.81/lib/widgets/screen.js:36:12)
    at new Screen (file:///home/andrew/.cache/deno/npm/registry.npmjs.org/blessed/0.1.81/lib/widgets/screen.js:36:12)
    at new Screen (file:///home/andrew/.cache/deno/npm/registry.npmjs.org/blessed/0.1.81/lib/widgets/screen.js:36:12)

I am curious if there is some missing deno api here or something

zach-is-my-name commented 1 year ago

There's nobody minding the shop since 2015

andykais commented 1 year ago

dang 😞

zach-is-my-name commented 1 year ago

I encourage you leave it open however. People pass by sometimes sharing their experience, and even sharing forks where they've implemented features

andykais commented 1 year ago

feel free to re-open. I am closing as I found another lib to do what I wanted https://www.npmjs.com/package/ink

tracker1 commented 1 year ago

I found another lib to do what I wanted https://www.npmjs.com/package/ink

OMG, that looks awesome/amazing...