Console and Windows
thehawk970 opened this issue · 7 comments
Hi guys :-D
I am here to explain my problem on windows with use Hoa\Console.
In introduction I use two console application, the basic cmd.exe and cmder and i run same script on each console application.
Cmd
In addition the command
C:\www\launchee-cli>C:\cmder\php\php.exe vendor\hoa\core\Bin\hoa console:termcap --count max_color
0
Cmder
for avoid this error I need to use this code unset($_SERVER['TERM'])
In addition the command (with unset $_SERVER['term'] ofc)
λ php vendor\hoa\core\Bin\hoa console:termcap --count max_color
0
IMHO forget console windows are not an good idea 👍 and other do this (like composer, or sf2) => and its not an troll unleashing 💃
We start by supporting standards, when we try to support other platforms, that how the world runs.
So. Could you give us the $TERM
value please? Do you export it to sub-processes?
Cmd
C:\www\launchee-cli>C:\cmder\php\php.exe -r "print_r($_SERVER);"
Array
(
[ALLUSERSPROFILE] => C:\ProgramData
[APPDATA] => C:\Users\Utilisateur\AppData\Roaming
[BIN_TARGET] => C:\www\launchee-cli\vendor\bin\/../hoa/core/Bin/hoa
[CLASSPATH] => .;C:\Program Files (x86)\Java\jre6\lib\ext\QTJava.zip
[CM2015DIR] => C:\Program Files (x86)\Common Files\Autodesk Shared\Materials
\
[CommonProgramFiles] => C:\Program Files (x86)\Common Files
[CommonProgramFiles(x86)] => C:\Program Files (x86)\Common Files
[CommonProgramW6432] => C:\Program Files\Common Files
[COMPUTERNAME] => JULIEN
[ComSpec] => C:\Windows\system32\cmd.exe
[ESET_OPTIONS] =>
[FP_NO_HOST_CHECK] => NO
[HOMEDRIVE] => C:
[HOMEPATH] => \Users\Utilisateur
[LOCALAPPDATA] => C:\Users\Utilisateur\AppData\Local
[LOGONSERVER] => \\JULIEN
[NUMBER_OF_PROCESSORS] => 8
[OS] => Windows_NT
[Path] => C:\Program Files (x86)\NVIDIA Corporation\PhysX\Common;C:\Program
Files (x86)\Intel\iCLS Client\;C:\Program Files\Intel\iCLS Client\;C:\Windows\sy
stem32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell
\v1.0\;C:\Program Files\Intel\Intel(R) Management Engine Components\DAL;C:\Progr
am Files (x86)\Intel\Intel(R) Management Engine Components\DAL;C:\Program Files\
Intel\Intel(R) Management Engine Components\IPT;C:\Program Files (x86)\Intel\Int
el(R) Management Engine Components\IPT;C:\Program Files (x86)\QuickTime\QTSystem
\
[PATHEXT] => .COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH;.MSC
[PROCESSOR_ARCHITECTURE] => x86
[PROCESSOR_ARCHITEW6432] => AMD64
[PROCESSOR_IDENTIFIER] => Intel64 Family 6 Model 60 Stepping 3, GenuineIntel
[PROCESSOR_LEVEL] => 6
[PROCESSOR_REVISION] => 3c03
[ProgramData] => C:\ProgramData
[ProgramFiles] => C:\Program Files (x86)
[ProgramFiles(x86)] => C:\Program Files (x86)
[ProgramW6432] => C:\Program Files
[PROMPT] => $P$G
[PSModulePath] => C:\Windows\system32\WindowsPowerShell\v1.0\Modules\;C:\Pro
gram Files\Intel\
[PUBLIC] => C:\Users\Public
[QTJAVA] => C:\Program Files (x86)\Java\jre6\lib\ext\QTJava.zip
[SESSIONNAME] => Console
[SystemDrive] => C:
[SystemRoot] => C:\Windows
[TEMP] => C:\Users\UTILIS~1\AppData\Local\Temp
[TMP] => C:\Users\UTILIS~1\AppData\Local\Temp
[USERDOMAIN] => JULIEN
[USERDOMAIN_ROAMINGPROFILE] => JULIEN
[USERNAME] => Utilisateur
[USERPROFILE] => C:\Users\Utilisateur
[windir] => C:\Windows
[PHP_SELF] => -
[SCRIPT_NAME] => -
[SCRIPT_FILENAME] =>
[PATH_TRANSLATED] =>
[DOCUMENT_ROOT] =>
[REQUEST_TIME_FLOAT] => 1423218303.6647
[REQUEST_TIME] => 1423218303
[argv] => Array
(
[0] => -
)
[argc] => 1
)
C:\www\launchee-cli>
Cmder
C:\Users\Utilisateur
λ php -r "print_r($_SERVER);"
Array
(
[ALLUSERSPROFILE] => C:\ProgramData
[APPDATA] => C:\Users\Utilisateur\AppData\Roaming
[architecture] => 64
[CLASSPATH] => .;C:\Program Files (x86)\Java\jre6\lib\ext\QTJava.zip
[CM2015DIR] => C:\Program Files (x86)\Common Files\Autodesk Shared\Materials\
[CMDER_ROOT] => C:\cmder
[CMDER_START] =>
[CommonProgramFiles] => C:\Program Files (x86)\Common Files
[CommonProgramFiles(x86)] => C:\Program Files (x86)\Common Files
[CommonProgramW6432] => C:\Program Files\Common Files
[COMPUTERNAME] => JULIEN
[ComSpec] => C:\Windows\system32\cmd.exe
[ConEmuANSI] => ON
[ConEmuAnsiLog] =>
[ConEmuArgs] => /Icon "C:\cmder\icons\cmder.ico" /Title Cmder /LoadCfgFile "C:\cmder\config\ConEmu.xml"
[ConEmuBackHWND] => 0x00481364
[ConEmuBaseDir] => C:\cmder\vendor\conemu-maximus5\ConEmu
[ConEmuBuild] => 140707
[ConEmuConfig] =>
[ConEmuDir] => C:\cmder\vendor\conemu-maximus5
[ConEmuDrawHWND] => 0x001911E8
[ConEmuDrive] => C:
[ConEmuHooks] => Enabled
[ConEmuHWND] => 0x004D1A58
[ConEmuPID] => 2760
[ConEmuServerPID] => 8444
[ConEmuWorkDir] => C:\Users\Utilisateur
[ConEmuWorkDrive] => C:
[ESET_OPTIONS] =>
[FP_NO_HOST_CHECK] => NO
[git_install_root] => C:\cmder\vendor\msysgit
[HOME] => C:\Users\Utilisateur
[HOMEDRIVE] => C:
[HOMEPATH] => \Users\Utilisateur
[LOCALAPPDATA] => C:\Users\Utilisateur\AppData\Local
[LOGONSERVER] => \\JULIEN
[NUMBER_OF_PROCESSORS] => 8
[OS] => Windows_NT
[Path] => C:\cmder\php;C:\cmder\bin;C:\cmder\vendor\msysgit\bin;C:\cmder\vendor\msysgit\mingw\bin;C:\cmder\
vendor\msysgit\cmd;C:\cmder\vendor\msysgit\share\vim\vim74;C:\cmder;C:\cmder\vendor\conemu-maximus5\ConEmu;C:\c
mder\vendor\conemu-maximus5;C:\Program Files (x86)\NVIDIA Corporation\PhysX\Common;C:\Program Files (x86)\Intel
\iCLS Client\;C:\Program Files\Intel\iCLS Client\;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Wi
ndows\System32\WindowsPowerShell\v1.0\;C:\Program Files\Intel\Intel(R) Management Engine Components\DAL;C:\Prog
ram Files (x86)\Intel\Intel(R) Management Engine Components\DAL;C:\Program Files\Intel\Intel(R) Management Engi
ne Components\IPT;C:\Program Files (x86)\Intel\Intel(R) Management Engine Components\IPT;C:\Program Files (x86)
\QuickTime\QTSystem\
[PATHEXT] => .COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH;.MSC
[PLINK_PROTOCOL] => ssh
[PROCESSOR_ARCHITECTURE] => x86
[PROCESSOR_ARCHITEW6432] => AMD64
[PROCESSOR_IDENTIFIER] => Intel64 Family 6 Model 60 Stepping 3, GenuineIntel
[PROCESSOR_LEVEL] => 6
[PROCESSOR_REVISION] => 3c03
[ProgramData] => C:\ProgramData
[ProgramFiles] => C:\Program Files (x86)
[ProgramFiles(x86)] => C:\Program Files (x86)
[ProgramW6432] => C:\Program Files
[PROMPT] => $E[1;32;40m$P$S{git}$S$_$E[1;30;40m{lamb}$S$E[0m
[PSModulePath] => C:\Windows\system32\WindowsPowerShell\v1.0\Modules\;C:\Program Files\Intel\
[PUBLIC] => C:\Users\Public
[QTJAVA] => C:\Program Files (x86)\Java\jre6\lib\ext\QTJava.zip
[SESSIONNAME] => Console
[SystemDrive] => C:
[SystemRoot] => C:\Windows
[TEMP] => C:\Users\UTILIS~1\AppData\Local\Temp
[TERM] => cygwin
[TMP] => C:\Users\UTILIS~1\AppData\Local\Temp
[USERDOMAIN] => JULIEN
[USERDOMAIN_ROAMINGPROFILE] => JULIEN
[USERNAME] => Utilisateur
[USERPROFILE] => C:\Users\Utilisateur
[windir] => C:\Windows
[PHP_SELF] => -
[SCRIPT_NAME] => -
[SCRIPT_FILENAME] =>
[PATH_TRANSLATED] =>
[DOCUMENT_ROOT] =>
[REQUEST_TIME_FLOAT] => 1423218341.023
[REQUEST_TIME] => 1423218341
[argv] => Array
(
[0] => -
)
[argc] => 1
)
C:\Users\Utilisateur
I am ok to support the standard, but its will be nice to support windows now 💃 :p
@camael24 I would love to support Windows, if it is possible.
Some news?
I don't take time to this, and don't know when i can
And about now :-)?