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

cursor is buggy on nodeos #14

Open
max-mapper opened this issue Dec 8, 2013 · 7 comments
Open

cursor is buggy on nodeos #14

max-mapper opened this issue Dec 8, 2013 · 7 comments

Comments

@max-mapper
Copy link
Contributor

on NodeOS hipster is the only available text editor (to my knowledge). It almost works perfectly except for the cursor:

hipster mov

it shows up initially but moves to the bottom right corner as soon as it gets updated

any ideas on whats causing this?

cc @jacobgroundwater

@maks
Copy link
Contributor

maks commented Dec 8, 2013

@maxogden I'd be happy to take a look at this but whats the easiest way to grab NodeOS to test this? I see on its site its using docket but apart from that can't find much in the way of instructions on how to install and get up and running ? cc @jacobgroundwater

@groundwater
Copy link

Hey guys! this is cool.

I will say first off, this is very likely a problem with something on NodeOS, but perhaps there is an easy fix in hipster.

NodeOS uses https://github.com/jacobgroundwater/node-bin-nsh as its default shell, a very very simple shell. @maxogden try running hipster through an nsh process running in Ubuntu and see if there are any problems. If not, it's likely we need to setup some TERMINFO stuff on the NodeOS side.

@maks if you have a linux VM with Docker, it's just sudo docker run -i -t groundwater/nodeos-get-involved to get into NodeOS and npkg install hipster. If not, there is also npm i -g bin-nsh to try using the shell used by the Docker instance.

A great deal of this project involves me hacking in the dark, so if you know someone who has mastered the dark arts of tty/terminal hacking I will listen dutifully.

@dominictarr
Copy link
Owner

Hey!

funny you should mention this, because I was just on the bus and had an idea about a simple way to make this much better!

for now, though, there is an escape sequence to position the cursor, which you can access via charm.position(x, y)

I would put something in to reposition the cursor to the correct location after updating the line number.
This is strange, anyway, because this works fine for me on xterm and iterm2.

It could also be that something about the tty stuff on nodeos doesn't handle the repositioning escape characters correctly.

I'd probably try running through the examples on substack/charm and see if they work. there could be a bigger problem with nodeos.

@maks
Copy link
Contributor

maks commented Dec 9, 2013

Looking at nsh.js it looks like it doesn't interfere with stdin/out so I think this is more likely the terminal that NodeOS via docker is running inside of. From the screen cast I can't make out what it is but it would be an idea to test using hipster directly on osx using the same terminal to see if you get the same issue.

@dominictarr
Copy link
Owner

I've just made a few improvements to hipster, can you try this again with hipster@0.15.2?

@dominictarr
Copy link
Owner

make that hipster@0.15.5

@piranna
Copy link

piranna commented Nov 16, 2015

For the record, slap now works on NodeOS :-)

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

5 participants