# REPL.TerminalMenus RadioMenu pre-selected option distinct from first one

**URL:** <https://discourse.julialang.org/t/repl-terminalmenus-radiomenu-pre-selected-option-distinct-from-first-one/108345>\
**Category:** General Usage\
**Created:** [January 4, 2024, 2:13pm UTC](https://discourse.julialang.org/t/repl-terminalmenus-radiomenu-pre-selected-option-distinct-from-first-one/108345 "2024-01-04T14:13:13Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![mocalvao](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/mocalvao/32/19318_2.png) [@mocalvao](https://discourse.julialang.org/u/mocalvao)\
**Post date:** [January 4, 2024, 2:13pm UTC](https://discourse.julialang.org/t/repl-terminalmenus-radiomenu-pre-selected-option-distinct-from-first-one/108345/1 "2024-01-04T14:13:13Z")

</div>

Hi there,  
Does the RadioMenu command from the REPL.TerminalMenus module have an argument that allows, for convenience, to have the default pre-selected option different from the first one? I mean something like:

```julia
orange
> apple
grape

```

instead of:

```julia
> orange
apple
grape

```

Thanks

---

<div class="post-metadata">

**Author:** ![GunnarFarneback](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/gunnarfarneback/32/1827_2.png) [@GunnarFarneback](https://discourse.julialang.org/u/GunnarFarneback)\
**Post date:** [January 4, 2024, 2:21pm UTC](https://discourse.julialang.org/t/repl-terminalmenus-radiomenu-pre-selected-option-distinct-from-first-one/108345/2 "2024-01-04T14:21:53Z")

</div>

Yes, if you’re using Julia 1.6 or later.

```julia
julia> using REPL.TerminalMenus

help?> request
search: request

  request(m::AbstractMenu; cursor=1)

  Display the menu and enter interactive mode. cursor indicates the item number
  used for the initial cursor position. cursor can be either an Int or a
  RefValue{Int}. The latter is useful for observation and control of the cursor
  position from the outside.

  Returns selected(m).

  │ Julia 1.6
  │
  │ The cursor argument requires Julia 1.6 or later.

  ─────────────────────────────────────────────────────────────────────────────────

  request([term,] msg::AbstractString, m::AbstractMenu)

  Shorthand for println(msg); request(m).

julia> r = RadioMenu(["orange", "apple", "grape"]);

julia> request(r, cursor = 2)
   orange
 > apple
   grape

```
