how2 icon indicating copy to clipboard operation
how2 copied to clipboard

How come Windows never gets any love?

Open pauldotknopf opened this issue 8 years ago • 12 comments

pauldotknopf avatar Feb 23 '16 14:02 pauldotknopf

@pauldotknopf it's not intentional, I dont have windows :( if you want to take care of some porting issues please do

santinic avatar Feb 23 '16 14:02 santinic

I've run it on windows 10 from cmd and powershell, you have to use return after pressen SPACE though.

  • CMD seams ok
  • Powershell is missing the control info bar at the bottom.
  • Msys2 has a problem with process.stdin.setRawMode(true) also some issues on returning the main function when the spacebar is pressed.

Or is there any other issue that i simply didn't encountered?

Hammster avatar Feb 23 '16 21:02 Hammster

Hi, works fine for me in "cmd" but when i try in cmder it looks like so 49adf5ac21f274fda0f92bda1528ab4e

thanks for this usefull tool! i like it

cannap avatar Feb 24 '16 01:02 cannap

@cannap the issue here is that the unicode range is not sufficent or a offset is shifted.

either way its a problem with https://github.com/chjj/blessed or directly related to cmder i fiddled with the font settings and got it to display the characters right.

unbenannt

Hammster avatar Feb 24 '16 05:02 Hammster

Another windows issue is that by default searches go to
site = 'site:unix.stackexchange.com'; When running on windows, perhaps it's better to search superuser.com

can use this to determine the OS: var isWin = /^win/.test(process.platform);

danielkop avatar Feb 24 '16 13:02 danielkop

I think that require('os').type() might return a more standard value that will not require a regexp. (but this should be tested and I don't have a windows machine around).

danyshaanan avatar Feb 24 '16 13:02 danyshaanan

@danyshaanan from the 'os' module's docs: os.platform() Returns the operating system platform. Possible values are 'darwin', 'freebsd', 'linux', 'sunos' or 'win32'. Returns the value of process.platform. the regex is just to avoid checking for both win32 and win64.

danielkop avatar Feb 24 '16 14:02 danielkop

Would just like to comment that MINGW64 also throws an error: TypeError: process.stdin.setRawMode is not a function as mentioned above. Although it works just fine in Windows PowerShell

Kachilero avatar Feb 28 '16 19:02 Kachilero

@Hammster Could you go into more detail as to what font settings you changed in Cmder to fix the font issues? I'm having this problem now.

9zzhaxk

zQueal avatar Mar 01 '16 19:03 zQueal

@zQueal i really just clicked through everything. The quick solution is to reset the settings and save them, then restart the program. I try to find the values i changed to get a more precise answer.

Hammster avatar Mar 04 '16 22:03 Hammster

Almost works in Gnome Terminal 3.18 running on latest Cyg/X x64 (Windows 7). First result is retrieved as expected, then I also get TypeError: process.stdin.setRawMode is not a function. I'm not so hung up on terminal magic (colors etc.) but the list of results would be nice to have. Thx, btw. This has really nice features compared to e.g. howdoi

tildebyte avatar Mar 18 '16 19:03 tildebyte

:jack_o_lantern: :scroll:

dubiouscript avatar Jul 21 '19 17:07 dubiouscript