From a20a3aa1e7b99286049d6433fd6dad3d52d3c7ce Mon Sep 17 00:00:00 2001 From: t-bltg Date: Tue, 26 Mar 2024 14:06:52 +0100 Subject: [PATCH] fix `using Term` on nightly - julia `1.12` --- Project.toml | 8 +++++++- src/Live/live.jl | 11 +++++++++-- 2 files changed, 16 insertions(+), 3 deletions(-) diff --git a/Project.toml b/Project.toml index 6a192b9e7..eb6c93a27 100644 --- a/Project.toml +++ b/Project.toml @@ -25,13 +25,20 @@ UnicodeFun = "1cfade01-22cf-5700-b092-accc4b62d6e1" [compat] AbstractTrees = "0.4" CodeTracking = "1" +Dates = "1" Highlights = "0.5" +InteractiveUtils = "1" +Logging = "1" +Markdown = "1" MyterialColors = "0.3" OrderedCollections = "1" Parameters = "0.12" ProgressLogging = "0.1" PrecompileTools = "1" +REPL = "1" Tables = "1" +UUIDs = "1" +Unicode = "1" UnicodeFun = "0.4" julia = "1.6" @@ -41,7 +48,6 @@ StableRNGs = "860ef19b-820b-49d6-a774-d7a799459cd3" Suppressor = "fd094767-a336-5f1f-9728-57cf17d0bbfb" Test = "8dfed614-e22c-5e08-85e1-65c5234f0b40" TimerOutputs = "a759f4b9-e2f1-59dc-863e-4aeb61b1ea8f" -UUIDs = "cf7118a7-6976-5b1a-9a39-7adc72f591a4" [targets] test = ["Random", "StableRNGs", "Suppressor", "Test", "TimerOutputs"] diff --git a/src/Live/live.jl b/src/Live/live.jl index c9ed7ccc8..efeef6f26 100644 --- a/src/Live/live.jl +++ b/src/Live/live.jl @@ -1,6 +1,13 @@ module LiveWidgets -using REPL.TerminalMenus: readkey, terminal -using REPL.Terminals: raw!, AbstractTerminal +import REPL +import REPL.Terminals: raw!, AbstractTerminal +import REPL.TerminalMenus: readkey +const terminal = @static if isdefined(REPL.TerminalMenus, :default_terminal) + REPL.TerminalMenus.default_terminal() +else + REPL.TerminalMenus.terminal +end + using Dates import Base.Docs: doc as getdocs using Markdown