OSX. Refactoring: use Window singleton for manipulations with console window