flush stdout
gdraw grid
update
update