diff --git a/python/port/mod/turtle/turtle.cpp b/python/port/mod/turtle/turtle.cpp index 5c506e576..0b8f85c90 100644 --- a/python/port/mod/turtle/turtle.cpp +++ b/python/port/mod/turtle/turtle.cpp @@ -176,8 +176,8 @@ void Turtle::setVisible(bool visible) { } void Turtle::write(const char * string) { - // To prevent overlapping between the text and the turtle, force redraw - m_drawn = false; + // We erase the turtle to redraw it on top of the text + erase(); MicroPython::ExecutionEnvironment::currentExecutionEnvironment()->displaySandbox(); KDContext * ctx = KDIonContext::sharedContext(); static constexpr KDCoordinate headOffsetLength = 6;