node-status icon indicating copy to clipboard operation
node-status copied to clipboard

Does not work in Windows terminal

Open SimonArdrey opened this issue 9 years ago • 25 comments

It only renders after the task is complete. I ran your example and it does not render the increments. It's a great looking UI tool, I'd love to be able to use it in a Windows environment if possible.

Thanks :)

SimonArdrey avatar Mar 09 '15 01:03 SimonArdrey

Hmmmm, possibly. But I don't have access to a windows machine, myself. Gonna rename this issue, and maybe someone else will tackle it. Thanks for bringing it up

derrickpelletier avatar Mar 09 '15 17:03 derrickpelletier

hey @SimonArdrey are you by any chance running NPM > 2.x ? because on my mac i get the same issue when using NPM 2 @derrickpelletier

pilsy avatar Mar 13 '15 08:03 pilsy

Which node version @pilsy?

derrickpelletier avatar Mar 13 '15 17:03 derrickpelletier

$ node -v v0.12.0 $ npm -v 2.5.1

pilsy avatar Mar 13 '15 17:03 pilsy

I am running 1.4.28

SimonArdrey avatar Mar 14 '15 13:03 SimonArdrey

Yeah looks like an issue with node v0.12

derrickpelletier avatar Mar 14 '15 17:03 derrickpelletier

Hey @derrickpelletier, Oddly this started to work for me after clearing my npm cache and doing a fresh npm i for my project https://github.com/CleverStack/cleverstack-cli/

pilsy avatar Mar 16 '15 18:03 pilsy

Yeah i only go to take a real quick look on the weekend, but it's sporadic. At times it works, and sometimes it stalls. Trying to get a reproducible case to state from anyway.

derrickpelletier avatar Mar 16 '15 18:03 derrickpelletier

I've tracked this down to an issue in the charm dependency. I think that the charm.position(callback) function seems to hang or not report data for some reason.

Unfortunately charm seems more or less inactive, so it might need to look into custom solution for getting cursor position.

derrickpelletier avatar May 22 '15 18:05 derrickpelletier

@derrickpelletier is there a github issue for this in https://github.com/substack/node-charm/issues ?

pilsy avatar Jul 21 '15 14:07 pilsy

@pilsy thanks for the nudge.

I just tested this on v0.12.7 and I'm seeing it function perfectly fine. (running the example.js in the repo, anyway)

Rolling back to v0.12.0 i can see that it is still functioning incorrectly on that node version.

I haven't looked into it but i'm assuming there was probably some tty-related issue that got resolved somewhere in between. Can you try a more recent version?

derrickpelletier avatar Jul 22 '15 16:07 derrickpelletier

The issue also exists when using io.js (any version) but specifically i am using

node -v
v2.2.1
npm -v
2.11.0

pilsy avatar Jul 24 '15 11:07 pilsy

I can confirm that the issue exists in iojs v2.2.0 But, it is functioning fine for me in iojs v2.4.0

Can you upgrade and try that out?

derrickpelletier avatar Jul 24 '15 16:07 derrickpelletier

Yep that works - ok so what did you want to do with this ticket?

pilsy avatar Jul 25 '15 16:07 pilsy

Just going to figure out the exact version breakpoints and put a note in the readme, not going to attempt to workaround the problem

derrickpelletier avatar Jul 27 '15 16:07 derrickpelletier

This seems to still be an issue, I tried to get it working on my Windows 7 Machine and it's also only rendering after the task is complete.

node -v
v4.4.7

npm -v
3.10.5

cliffordduke avatar Oct 07 '16 07:10 cliffordduke

Interesting...

Which version of the module? And are you running the provided examples or your own code?

derrickpelletier avatar Oct 07 '16 07:10 derrickpelletier

I'm using the latest version on npm 1.0.0

I initially tried it with my own code, thinking it was something I was doing wrong I then tried running the examples/pattern.js example. Both had the same issue.

cliffordduke avatar Oct 07 '16 07:10 cliffordduke

Alright, thanks

Unsure if/when I'll have a windows machine to debug this problem on though. I'll check and see if there are any related known-issues regarding the console on windows though.

derrickpelletier avatar Oct 07 '16 08:10 derrickpelletier

Running into the same issue on Windows 10. node v4.5.0, npm v2.15.9

zchristopoulos avatar Oct 15 '16 01:10 zchristopoulos

Same issue. Windows 7, running in git-bash mintty

$ node --version v6.9.1 $ npm --version 4.0.3 $ git --version git version 2.10.1.windows.1 $ mintty --version mintty 2.5.0 (x86_64-pc-msys) (C) 2013/2016 Andy Koppe / Thomas Wolff License GPLv3+: GNU GPL version 3 or later There is no warranty, to the extent permitted by law.

twillard avatar Jan 12 '17 05:01 twillard

Experiencing the same issue on Windows 10. node v7.7.2, npm v4.1.2

beth-panx avatar Mar 23 '17 18:03 beth-panx

Just a reminder that I do not have a windows machine, nor access to one, and anyone is free to contribute :)

derrickpelletier avatar Mar 23 '17 19:03 derrickpelletier

There are many problems with this on windows terminals. Probably because you're rerouting the stdout & stdin pipes, and even keyboard doesn't work.

azarus avatar Aug 17 '17 22:08 azarus

On windows machines

var status = require('node-status');
....
status.stop()

Does never stops sometimes.

frankred avatar Dec 20 '17 07:12 frankred