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
1
vote
1 answer

How to create click listener for grid?

I'm trying to create grid (for example 5x5). After creating grid I want to click on an item and pass coordinates into my onClick(i,j) method. How can I do this using blessed and blessed-contrib? This is my code. This is Gomoku game or Five in a…
1
vote
0 answers

importing python's Blessed library causes a regex error?

I wanted to learn about python's Blessed library, maybe make a text-based game or some useful thing. but no matter what code write, whenever I import blessed I get an error report. Ive tried various code, including examples of complete code which…
Drew LR
  • 11
  • 1
1
vote
0 answers

Can't use stream in onclick callback

const ToneStream = require('tone-stream') const Speaker = require('speaker'); const blessed…
GameKyuubi
  • 681
  • 1
  • 10
  • 25
1
vote
1 answer

How to have 2 "areas" in python blessed/blessings/ncurses

I want to be tailing a file and at the same time provide an overlay with keys that can be pressed. How can I make sure that data will be displayed and updated immediately? I hope it wouldn't have to redraw the keys at the bottom all the time. I also…
PascalVKooten
  • 20,643
  • 17
  • 103
  • 160
1
vote
1 answer

How to navigate between forms in Blessed?

I have written code for a terminal UI application using blessed package in NodeJS which contains 2 forms, say form1 and form2 with some widgets like list and checkboxes in each form. So how can I navigate between the forms with keyboard? var…
1
vote
1 answer

How to use the search option in list in Blessed?

I'm building a terminal application using blessed application in NodeJS. Can anyone explain how to use the search option in list? This is the list object I used: var numlist = blessed.List({ top: 23, left: 18, parent: screen, height: 8, …
1
vote
1 answer

How to read STDIN and start blessed terminal app?

I am building a Node.js App. I'm trying to read STDIN buffer, parse it and then start my blessed program, but if I trying to read STDIN my blessed program closed instantly. Also, input doesn't work. Here is an example: // Read stdin into buff const…
Anton Medvedev
  • 3,393
  • 3
  • 28
  • 40
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
  • 131
  • 13
1
vote
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
  • 68
  • 1
  • 11
0
votes
0 answers

How to print to Terminal in two different places with Python?

I'm creating a small little terminal program. I would like to display the changing time, among other things. To display the time, I use the datetime module, along with the blessed module. My code looks like this: import blessed from datetime import…
jmh
  • 43
  • 5
0
votes
0 answers

Blessed listtable page up/down navigation

Does anyone knows if there is a way to enable page up/down navigation in the blessed.listtable()? Cursors up/down work out of the box but navigating a big list without using page up/down is a very tedious task. var table = blessed.listtable({ …
Matthias Hryniszak
  • 3,099
  • 3
  • 36
  • 51
0
votes
1 answer

node.js - blessed textarea give repeat text

i am trying to make a chatroom app with blessed, here is my code: index.js const blessed = require('blessed') const EventEmitter = require('events') // Create a eventemitter var chatroom = new EventEmitter() // Create a screen object. var screen =…
IsaacMak
  • 97
  • 1
  • 10
0
votes
1 answer

Hide cursor on NodeJS blessed

I want to hide the cursor in my blessed application. I've tried using the following options: cursor: { color: "black", blink: false, artificial: true, }, Inside the screen object, it didn't work. So, I've also tried using: var cur =…
noah
  • 312
  • 2
  • 13
0
votes
1 answer

echo input character using blessed and cbreak

Writing a python script, I use blessed module to input a single character without having to press on Enter key. Unfortunately, the character input is not echoed term = Terminal() with term.cbreak(): key= term.inkey() .... Is there a way to get…
0
votes
1 answer

NodeJS blessed no key events

I am new to using the blessed library and so far, I could not get key events to work. I would expect the following piece of code to print q whenever the Q key is pressed and Enter whenever the Enter key is pressed. It should also print keypress…
Lehks
  • 2,582
  • 4
  • 19
  • 50