woodruffw / screenfetch-c

A rewrite of screenFetch in C.
MIT License
73 stars 17 forks source link

Support MinGW compiler target #32

Closed darealshinji closed 8 years ago

darealshinji commented 8 years ago

sf-mingw

Top left: command prompt with colors, using ansicon and the following batch script:

@echo off
set SHELL=cmd.exe
echo.
cmd /C ansicon.exe screenfetch-c.exe
echo.
pause

Bottom left: same as top left, but without ansicon and screenfetch-c being compiled with make COLORS=0

Top right: Windows PowerShell, which supports colors by default, using this script:

$env:SHELL = "PowerShell"
Write-Host ""
Invoke-Expression -Command:"cmd /C screenfetch-c.exe"
Write-Host "
Press any key to continue ..."
$x = $host.UI.RawUI.ReadKey("NoEcho,IncludeKeyDown")

Bottom right: running directly in Cygwin.

cmd.exe and PowerShell don't define SHELL and I couldn't find any other way to detect either one so instead I define SHELL in the start-up scripts.

woodruffw commented 8 years ago

This looks good to me; I'll merge it in a few minutes.

By the way, I think you can change the line Ubuntu (tested with Lubuntu) in the README to Ubuntu. I'm using the regular Ubuntu and it works fine for me.

Yep. I've also been testing it on Ubuntu for quite a while - I just forgot to update the README. I'll do that after this merge.