/
githubmirror
/
julia
Обзор
Документация
Войти
/
githubmirror
/
julia
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
master
stdlib/REPL/src/History/History.jl
35 строк
1 KB
Keno Fischer
REPL: add OSC 52 clipboard fallback and graceful degradation (#61151)
03 мар 2026, 08:42
Не верифицирован
03 мар 2026, 08:42
ab7ba34
Код
Авторство
О чём код?
# This file is a part of Julia. License is MIT: https://julialang.org/license module History using ..REPL: REPL using StyledStrings: @styled_str as @S_str, Face, addface!, face!, annotations, AnnotatedIOBuffer, AnnotatedString, AnnotatedChar using JuliaSyntaxHighlighting: highlight using Base.Threads using Dates using Base64: base64encode import InteractiveUtils export HistoryFile, HistEntry, update!, runsearch const FACES = ( :REPL_History_search_separator => Face(foreground=:blue), :REPL_History_search_prefix => Face(foreground=:magenta), :REPL_History_search_selected => Face(foreground=:blue), :REPL_History_search_unselected => Face(foreground=:grey), # :REPL_History_search_preview_box => Face(foreground=:grey), :REPL_History_search_hint => Face(foreground=:magenta, slant=:italic, weight=:light), :REPL_History_search_results => Face(inherit=:shadow), :REPL_History_search_match => Face(weight = :bold, underline = true), ) include("histfile.jl") include("resumablefiltering.jl") include("prompt.jl") include("display.jl") include("search.jl") __init__() = foreach(addface!, FACES) end