Skip to content

Present the clipboard as an IO object #53313

Open
@oxinabox

Description

Idea as an alternative to #53199

I think InteractiveUtils could define a type Clipboard <: IO which accesses the clipboard.
Then could do things like

redirect_stdout(Clipboard()) do
    @code_llvm foo()
end

behind the scenes it would be using the clipboard functions we already have, and using IOBuffers.
I haven't fully thought it through, but I think it is all possible. We might need the user to provide file open strings like "r", "w", "a".

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

No one assigned

    Labels

    featureIndicates new feature / enhancement requestsstdlibJulia's standard library

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions