An electronic typewriter having a single detector switch for detecting whether a lid over a printing mechanism is open or closed and whether a carriage is in the original position or not. The detector switch is stimulated by two stimulators; one being provided on the lid for stimulating the detector switch when the lid is closed, and the other being provided on the carriage for stimulating the detector switch when the carriage is at the original position.