Questions tagged [blessed]

Blessed is a "curses-like library with a high level terminal interface API for Node.js."

Blessed is a JavaScript library, similar to (n)curses in C/C++. It makes it possible to create CLI (Command Line Interface) applications using Node.js.

The library is organized around widgets which provide a convenient way to build text interfaces:

  • Base Nodes: Node, Screen, Element
  • Boxes: Box, Text, Line, BigText
  • Lists: List, FileManager, ListTable, Listbar
  • Forms: Form, Input, Textarea, Textbox, Button, Checkbox, RadioSet, RadioButton
  • Prompts: Prompt, Question, Message, Loading
  • Data Display: ProgressBar, Log, Table
  • Special Elements: Terminal, Image, ANSIImage, OverlayImage, Video, Layout

This project is available on GitHub and npm.

29 questions
1
vote
1 answer

Alternative debug output for node/vscode, while building a terminal based visualization

i'm developing a terminal based app with Node, and i'm using the terminal as output of a Blessed.js visualization. So, i can't use the terminal to console.log thing for debug. Does node offer an alternative debug output? I'm using VSCode. Thanks!
1
vote
1 answer

Forever can't start blessed-contrib examples

i'm trying out Forever, very popular package, so i decided to try some existents scrips. For example the blessed-contrib examples, the dashboard.js in particular, since i would like to have some always running monitor with terminal interface for a…
piLeoni
  • 59
  • 9
1
vote
2 answers

Perl: Issue with blessed object

I am creating a bot that connects to a Matrix server. For that I use Net::Async::Matrix. The code: #!/usr/bin/perl use strict; use warnings; use Net::Async::Matrix; use Net::Async::Matrix::Utils qw ( parse_formatted_message ); use…
m1ndgames
  • 37
  • 5
0
votes
1 answer

How to extend a non-exported class in TypeScript?

In my TypeScript program I want to extend a class that is declared in a library. The trick is that the library doesn't "export" it so I can not access it directly. Instead, it provides a builder function, like this: export namespace Library { …
Michael D.
  • 13
  • 4
0
votes
1 answer

Python Blessed Library Missing Key Press Events

The blessed Python library looks great for making console apps, but I'm having trouble with the keyboard functionality. In the code below, only every second keypress is detected. Why is this please? I'm on Windows 10 with Python 3.8. from blessed…
Robin Andrews
  • 2,407
  • 4
  • 27
  • 62
0
votes
0 answers

pm2 display blessed contrib diagrams

I am using https://github.com/yaronn/blessed-contrib to display digrams that I build using an API. I wanted to use pm2 to restart the app in case it crashes. I do run pm2 start index.js --no-daemon so that the process would run in foreground, but…
naneri
  • 3,175
  • 2
  • 20
  • 40
0
votes
0 answers

How can I automatically restart console diagram app written with Blessed contrib?

I have a nodejs script that I use to build diagrams in console (using https://github.com/yaronn/blessed-contrib library) with my actual data that I fetch from API. I need a way to automatically restart the script in case it fails (for instance…
naneri
  • 3,175
  • 2
  • 20
  • 40
0
votes
0 answers

Stream stops functioning in onclick callback

const ToneStream = require('tone-stream') const Speaker = require('speaker'); const blessed = require('blessed'); const format = { sampleRate: 8000, bitDepth: 16, channels: 1 } let stream = new ToneStream(format); const speaker = new…
GameKyuubi
  • 591
  • 1
  • 6
  • 17
0
votes
0 answers

ASCII animations with asyncronous node and blessed

Essentially, I'm trying to put an ASCII animation in a box using blessed and before I put my code, I'll talk through how this should work in my head. Essentially, in the gotchi.js file. I have this async function called animate that infinitely…
BlackCoffee
  • 119
  • 1
  • 7
0
votes
2 answers

Blessed / Curses controls don't work with Pyinstaller. Missing vtwin10

I have a very simple Python program that uses 'Blessed'. It works fine with the Win10 Python interpreter, but reports an error when packaged with Pyinstaller, and terminal control codes are ignored. Here's the code: from blessed import Terminal t…
stanely
  • 114
  • 6
0
votes
1 answer

Scroll blessed box with child elements

I have a blessed box that is set with scrollable: true let outerBox = blessed.box({ top: '0%', left: '0%', width: '0%+6', height: '100%', scrollable: true, tags: true, padding: 1, mouse: true, style: { fg: 'white', bg:…
pfg
  • 1,075
  • 9
  • 28
0
votes
0 answers

Submitting text with blessed.js

I'm trying to write a function that would create a textarea element to read a string and remove the element after it's done. Here's what I ended up with: function getText() { let input = blessed.textarea({ parent: screen, top: 'center', …
Paper_Lark
  • 58
  • 9
0
votes
1 answer

How to override javascript library object this.function(arg, function(){

I'm trying to override a function in the blessed-contrib tree module. However I think I'm missing something in the way of object inheritance. Any help would be greatly appreciated. Original code: function Tree(options) { //... this.rows =…
0
votes
1 answer

How to adapt output to changing terminal's width

I'm trying to write a function that would produce a simple widget when run in Python's console. This widget should be terminal-size-aware. After displaying the widget I will wait for user's keyboard input and adjust the content according to what the…
Pasha
  • 5,070
  • 2
  • 18
  • 31
1
2