Segments

Term.Segments.SegmentMethod
Segment(text::Union{Segment, AbstractString}, markup::AbstractString)

Construct a Segment out of a plain string and a markup string with style info

source
Term.Segments.get_string_typesMethod
get_string_types(segments_vectors...)

Given a number of Segment[] vectors, get the AbstractString like type they're using. If they are all using normal String or Substring go with that, but if one of them is using a different string type, use it.

source