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.

37 questions
0
votes
1 answer

How to properly import blessed?

I've just started studying python and I really liked blessed looked like and wanted to give it a try. I installed it using pip install blessed on the console and then I copied the following code from their site: import os import sys print('Test…
ElPanda
  • 1
  • 2
0
votes
1 answer

How to listen to key command on a list using Blessed/NodeJS

I'm writing a simple task manager in blessed (the JS version). I use a list widget to display my current tasks. I can select the item using enter, however I want to use different commands with the "hovered" item, e.g., hover over a item and press d…
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
  • 3,514
  • 11
  • 43
  • 111
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
  • 342
  • 1
  • 8
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
  • 2,348
  • 1
  • 16
  • 37
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
  • 6,298
  • 2
  • 22
  • 34
1 2
3