display issues in konsole terminal

There's this well-known bug: https://bugs.kde.org/show_bug.cgi?id=297390

![konsole](http://kocharin.ru/pm2_konsole.png)

So, I suggest as a workaround to make a last space use green foreground. If the last character of the colored line is a space, then this space would be cut off, not a letter, and a prompt will look as it should.