I want to change return string value of header function in TerminalMenus package for my menu. How to do it?
For example, i want header to return “test in printed”.
I want to change return string value of header function in TerminalMenus package for my menu. How to do it?
For example, i want header to return “test in printed”.
julia> using REPL.TerminalMenus
julia> import REPL.TerminalMenus: header
julia> header(m::RadioMenu) = "test in printed"
header (generic function with 4 methods)
julia> options = ["apple", "orange", "grape", "strawberry",
"blueberry", "peach", "lemon", "lime"];
julia> menu = RadioMenu(options, pagesize=4);
julia> choice = request("Choose your favorite fruit:", menu)
Choose your favorite fruit:
test in printed
apple
> orange
grape
v strawberry
2