cmderdev / cmder

Lovely console emulator package for Windows
https://cmder.app
MIT License
25.88k stars 2.03k forks source link

cmder display error #491

Closed Y-anon closed 9 years ago

Y-anon commented 9 years ago

(laravel) php artisan tinker & cmder

Hi, I have a weird problem, whenever I use php artisan tinker, when I display an object within it I get the following :

cmder and php artisan tinker

Description :

Basically whenever tinker prints out an object, it dislays its class between < and > and somehow it then highlights everything in white.

My 'quick noob fix' once i'm done with tinker is to restart tinker ( starting it clears the white highlight) cmder and php artisan tinker2

and then i clear it...

It's a bit annoying. I'm not getting it with git bash or the good ol' cmd... And I do get it aswell with cmder as {cmd} or {PowerShell} So far it's the only problem i've found with cmder, it's a life changer, it kicks asses !

SYS INFO

Paths: C:\Users\Yin\AppData\Roaming\Composer\vendor\bin;C:\Ruby22-x64\bin;C:\Users\Yin\AppData\Local\atom\bin;C:\Users\Yin\AppData\Roaming\npm

system : win8 64bit

MartiUK commented 9 years ago

That's really odd, I wonder if it's setting the background colour as well as the foreground color, I don't know my PHP but it looks like the offending code is here: https://github.com/bobthecow/psysh/blob/master/src/Psy/Output/ShellOutput.php#L198

Which uses symfony to set the colour: https://github.com/symfony/symfony/blob/2.7/src/Symfony/Component/Console/Formatter/OutputFormatterStyle.php

Is there a default background colour it's assuming is there?

Y-anon commented 9 years ago

It might set the background color (of the text), when I do a clear I have those highlights the whole screen becomes lighter but the padding of cmder's window doesn't change...

But then again through the OutputFormatterStyle class it's not passing a background, only a foreground...

in ShellOutput.php#L198 it calls OutputFormatterStyle's constructor with only a foreground as argument, which then calls setForeground L86 ... and it doesn't touch the bg . at least as far as i can see.

ref: https://github.com/symfony/symfony/blob/2.7/src/Symfony/Component/Console/Formatter/OutputFormatterStyle.php#L86-L131

Since the highlight triggers AFTER the 'blue' as been called when he calls an object, i think somethign else is causing it...

I think the problem comes from git bash perhaps. i'll try later tmrw to uninstall it and see what happens.

Also i'm following a tutorial on Laravel, and they're using cmder (on mac) and not having that issue.

So the problem is on my end, i'll check later

SrcFlux commented 9 years ago

I'm experiencing this issue as well. A fix for it would be awesome!

mayankchd commented 9 years ago

I'm also facing this problem .

mayankchd commented 9 years ago

I have solved the issue . Change Schemes to ubuntu and it will work fine ... untitled

Y-anon commented 9 years ago

@donkeycoder this didn't fix it for me :/

mayankchd commented 9 years ago

Make sure you are using latest version of Cmder ( Laragon 6.0).

mayankchd commented 9 years ago

untitled

I got the problem . Make sure your colour at 0 position and 8 position are same . 8th position is the selected colour if it is similar to background it won't show the selection , and make sure background is set to #2 .

Tell me if it solved that

Y-anon commented 9 years ago

This fixed it ! Thank you :)

babeuloula commented 8 years ago

Hello,

I have a similary problem with Symfony3. See below :

capture d ecran 2016-05-31 19 27 12

capture d ecran 2016-05-31 19 27 07

Thanks