Fix lua cocos console on linux
Merge pull request #8662 from dabingnn/v3_fixLinuxConsole

Fix lua cocos console on linux