Skip to content
ExamplesOpen editor ↗

RETURN

→ RETURN

The value standing for the Return key — exactly the same value as `ENTER`.

RETURN

RETURN and ENTER are both 'Enter'. They are two names for one key — Apple machines label it Return, others Enter.

Bopa ships both names. Using either one behaves identically.

Note: RETURN is not busa. busa is the Bopa keyword that hands a value back out of a function. RETURN is a key on the keyboard. They are written differently — one in capitals, one in lower case — and Bopa’s translation is case-sensitive, so the two never collide.

The name stays English for the same reason as ENTER: it is printed on the key itself.

RETURN and ENTER are one thing
tiro setaLoeto() {
  thalaKanefase(400, 200);
  tlhalosa('Mokwalo o o supang gore ditaetsi tse pedi tse di bidiwang ka mabedi ke selo se le sengwe. Tobetsa setshwantsho pele.');
}

tiro tshwantsha() {
  bokamorago(238);
  tlatsaMmala(40, 60, 90);
  bogoloJwaMokwalo(18);
  rulaganyaMokwalo(BOGARE);

  fa (taetsiETshwerwe(RETURN)) {
    thalaMokwalo('RETURN e tshwerwe', 200, 100);
  } gongwe {
    thalaMokwalo('Tshwara ENTER', 200, 100);
  }
}

ENTER, taetsiETshwerwe, busa