TUI on windows?
remoe opened this issue · 17 comments
Does anyone know how to run TUI on windows? The default console (cmd.exe) doesn't support it.
cmd.exe can't render ansi codes. It has its own weird system, which node doesn't provide an api for (although node does convert ansi color codes to their windows equivalents automatically as far as I know, and the other way around for keypress events).
There are multiple ways you could still use lev on windows: cygwin, for example, but you'll have to install a whole unix system. tty.js if you don't mind it running in the browser. winpty by itself might somehow be able to make it possible to render ansi escape sequences on the windows console. I would look into those.
@juliangruber, I don't need a ssh-shell. I use putty for it on windows. But I need a shell on a local windows system that supports TUI ansi codes. I use leveldb locally on a windows system for a cache.
@remoe the thing @juliangruber is suggesting will give you that, its actually really nice. for a long time, chrome was the shell to my os x kernel!
Yeah, for mac osx. But on windows you don't have an ssh server. You only have this "really nice" cmd.exe 😷
I believe it uses the appropriate thing for windows; did you try it?
On Friday, May 9, 2014, Remo E notifications@github.com wrote:
Yeah, for mac osx. But on windows you don't have an ssh server. You only
have this "really nice" cmd.exe [image: 😷]—
Reply to this email directly or view it on GitHubhttps://github.com//issues/37#issuecomment-42662661
.
Paolo Fragomeni
Founder, Here is How
http://hereishow.to
github.com/hij1nx
twitter.com/hij1nx
Yes, I've tried. It is only an SSH-client.
Too bad. I'd love to find out what the best solution for this is. Since occasionally there are people use windows and it would be nice to have a solution for them. Is it quite challenging to set up an SSH server on Windows?
No, but it is annoying :)
I've tried now cygwin. But then the app crashes here:
$ lev
node_modules\lev\lev:72
throw err
^
Error: EINVAL, invalid argument
at new Socket (net.js:156:18)
at process.stdin (node.js:664:19)
at new Program (node_modules\lev\node_modules\blessed\lib\program.js:41:40)
at Function.Program (node_modules\lev\node_modules\blessed\lib\program.js:28:12)
at Object.<anonymous> (node_modules\lev\lib\ui\output.js:2:23)
at Module._compile (module.js:456:26)
at Object.Module._extensions..js (module.js:474:10)
at Module.load (module.js:356:32)
at Function.Module._load (module.js:312:12)
at Module.require (module.js:364:17)
Ok, when I give a path then I see:
$ cd /path
$ lev . --keys
lev version 2.1.2
To create a database use -c
But on cmd.exe I see all keys of this db. So lev don't find the leveldb on cygwin ?! That is what I mean with "annoying". Cygwin is not a real solution!
But I think @chjj can help ;)
Also, the person who I know who knows the most about using node with Windows is probably @domenic
"lev ./ --keys" runs on cygwin. But no TUI :/
yeah, but "get" with a key that has for example an underscore in it cannot get it. But i don't know the details.
cygwin isn't a supported node platform...
there is a branch with the TUI code in it in case anyone is still interested. this just simply wasn't valuable enough for people to learn or care about.