/
githubmirror
/
julia
Обзор
Документация
Войти
/
githubmirror
/
julia
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
master
stdlib/REPL/src/TerminalMenus/TerminalMenus.jl
44 строки
1 KB
GHTaarn
Make REPL.TerminalMenus and some if its symbols public (#55307)
05 авг 2024, 22:52
Не верифицирован
05 авг 2024, 22:52
e38e4db
Код
Авторство
О чём код?
# This file is a part of Julia. License is MIT: https://julialang.org/license """ REPL.TerminalMenus A module that contains code for displaying text mode interactive menus. Key exported symbols include [`REPL.TerminalMenus.RadioMenu`](@ref) and [`REPL.TerminalMenus.MultiSelectMenu`](@ref). """ module TerminalMenus using ..REPL: REPL function default_terminal(; in::IO=stdin, out::IO=stdout, err::IO=stderr) return REPL.Terminals.TTYTerminal( get(ENV, "TERM", Sys.iswindows() ? "" : "dumb"), in, out, err) end include("util.jl") include("config.jl") include("AbstractMenu.jl") include("RadioMenu.jl") include("MultiSelectMenu.jl") include("Pager.jl") export RadioMenu, MultiSelectMenu, Pager, request public Config, config, MultiSelectConfig public pick, cancel, writeline, options, numoptions, selected, header, keypress # TODO: remove in Julia 2.0 # While not exported, AbstractMenu documented these as an extension interface @deprecate printMenu printmenu function writeLine(buf::IOBuffer, m::AbstractMenu, idx::Int, cursor::Bool) Base.depwarn("`writeLine` is deprecated, use `writeline` instead.", :writeLine) error("unimplemented") end end # module