Perhaps you are right, but my philosophy is to do things as easily and efficiently as possible in order to minimize time and effort. In this case, I chose that way although there was others, of course.
After all, console window is a window and it would to behave as such. If not, the problem comes from that environment creators.
I hope there was a way.