gui: Consistently use print format instead of write format.