FedeClaudi / Term.jl

Julia library for stylized terminal output
MIT License
436 stars 37 forks source link

`SimpleMenu` is broken with exactly 2 elements #238

Open Seelengrab opened 5 months ago

Seelengrab commented 5 months ago

MWE:

julia> using Term.LiveWidgets

julia> SimpleMenu(["a", "b"]) |> frame
"\e[1m\e[37ma  \e[22m\e[39m\n\e[2mb  \e[22m"

julia> SimpleMenu(["a", "b", "c"]) |> frame
a  
b  
c  

julia> SimpleMenu(["a"]) |> frame
a  
FedeClaudi commented 2 months ago

Thanks - I'm not currently actively maintaining this, but hopefully it will be fixed eventually