santinic / how2

AI for the Command Line
https://how2terminal.com
MIT License
5.72k stars 156 forks source link

How come Windows never gets any love? #28

Closed pauldotknopf closed 2 months ago

santinic commented 8 years ago

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

Hammster commented 8 years ago

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

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

cannap commented 8 years ago

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

Hammster commented 8 years ago

@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

danielkop commented 8 years ago

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);

danyshaanan commented 8 years ago

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).

danielkop commented 8 years ago

@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.

Kachilero commented 8 years ago

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

zQueal commented 8 years ago

@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

Hammster commented 8 years ago

@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.

tildebyte commented 8 years ago

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

dubiouscript commented 5 years ago

:jack_o_lantern: :scroll: