Accept commands to manipulate window through stdin