Features not Windows compatible
osaris opened this issue · 3 comments
osaris commented
I've tested Console/Cursor & Console/Window under Windows 7 64 bits with PHP 5.4.5 and Hoa master (hoaproject/Central@d247435).
Here is the list of methods that doesn't work :
Hoa\Console\Cursor::move
Hoa\Console\Cursor::moveTo
Hoa\Console\Cursor::clear
Hoa\Console\Cursor::scroll
Hoa\Console\Cursor::hide
Hoa\Console\Cursor::show
Hoa\Console\Cursor::getPosition
Hoa\Console\Cursor::setStyle
so the only method working is bip() for Hoa\Console\Cursor !!
Hoa\Console\Window::setSize
Hoa\Console\Window::moveTo
Hoa\Console\Window::getPosition
Hoa\Console\Window::minimize
Hoa\Console\Window::setTitle
Hoa\Console\Window::getTitle
Hoa\Console\Window::getLabel
Hoa\Console\Window:resize (event)
so the only method working is getSize() for Hoa\Console\Window !!
Deleted user commented
Deleted user commented
Any idea how to extend these methods to Windows?
Example: for Hoa\Console\Window::getSize
, we use Hoa\Console\Processus
to run mode con
and get informations (please, see lines 145 to 161). Is it possible to use this strategy for all methods in Hoa\Console\Cursor
and Hoa\Console\Window
?
Deleted user commented
It appears that it is not possible easily. We need an external program that uses Wincon.h
. I close the issue :-).
Thank you!