Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

"the only currently maintained fork" - is it tho? #48

Open
voltuer opened this issue May 26, 2020 · 2 comments
Open

"the only currently maintained fork" - is it tho? #48

voltuer opened this issue May 26, 2020 · 2 comments

Comments

@voltuer
Copy link

voltuer commented May 26, 2020

Hi, I'm trying neo-blessed because I read it's allegedly maintained, as opposite to blessed, but I'm getting the same bug and I can't use it. I need some help, please.

I have 2 textboxes and I'm trying to type text on both of them. When I click the first it works fine, but when I click on the second box, the cursor stays on the first one and typing text makes the first box to add every letter twice and the second doesn't add anything.

Code is here:

var blessed = require('blessed')
var screen = blessed.screen({
  smartCSR: true,
  title: 'La Pachala'
});
var form = blessed.form({
  parent: screen,
  width: '90%',
  left: 'center',
  keys: true,
  vi: true
});

var firstName = blessed.textbox({
  parent: form,
  name: 'firstname',
  top: 4,
  left: 5,
  height: 3,
  inputOnFocus: true,
  content: 'first',
  border: {
    type: 'line'
  },
  mouse: true
});

var xd = blessed.textbox({
  parent: form,
  name: 'xd',
  top: 8,
  left: 5,
  height: 3,
  inputOnFocus: true,
  content: 'xd',
  border: {
    type: 'line'
  },
  mouse: true
});

screen.key('q', function () {
  this.destroy();
});
screen.render();

Also, some times when pressing tab the program crashes with

TypeError: done is not a function
@cdaringe
Copy link

cdaringe commented Jun 6, 2020

form cursor logic is pretty complex--i'm seeing this issue as well.

@voltuer
Copy link
Author

voltuer commented Jun 13, 2020

@cdaringe i managed to fix it in my fork so take a look there. It's a fork of blessed because I found more bugs in neo-blessed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants