TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

Ask HN: Is it possible to get Blessed to render to the DOM?

1 点作者 elliotbnvl超过 5 年前
I&#x27;d love to be able to take advantage of Blessed&#x27;s (https:&#x2F;&#x2F;github.com&#x2F;chjj&#x2F;blessed) terminal capabilities in the browser, perhaps with Xterm.js (https:&#x2F;&#x2F;xtermjs.org&#x2F;) or something.<p>Has anybody made this happen yet?<p>Thanks!

1 comment

elliotbnvl超过 5 年前
Context: I&#x27;m building a roguelike (<a href="https:&#x2F;&#x2F;en.wikipedia.org&#x2F;wiki&#x2F;Roguelike" rel="nofollow">https:&#x2F;&#x2F;en.wikipedia.org&#x2F;wiki&#x2F;Roguelike</a>) and would love to be able to take advantage of Blessed with react-blessed (<a href="https:&#x2F;&#x2F;github.com&#x2F;Yomguithereal&#x2F;react-blessed" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;Yomguithereal&#x2F;react-blessed</a>) to render everything.<p>If I can get Blessed to render to the browser, perhaps I can use that as a renderer for react-blessed. That way I can build an entire terminal interface in React. And even if that didn&#x27;t go through, I&#x27;d at least be able to write a custom React renderer to take advantage of Blessed&#x27;s window functionality and stuff.<p>If all that fails I&#x27;ll just have to write a Blessed-lite layer for XTerm and then write a custom React renderer for that.