Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adapt 'copyMultilineStringToClipboard' to windows copyToClipboard call #38

Open
runegan opened this issue Sep 7, 2017 · 0 comments
Open

Comments

@runegan
Copy link
Member

runegan commented Sep 7, 2017

Original report by Zack Lovatt (Bitbucket: zlovatt, GitHub: zlovatt).


    function copyMultilineStringToClipboard (text) {
        var escapedText = text.split("\n").join("&echo.").split(")").join("^^^)")
        var cmdString = 'cmd.exe /c cmd.exe /c "(echo ' + escapedText + ') | clip"';
        
        return system.callSystem(cmdString);
    }
@runegan runegan added this to the 1.0 Release milestone Feb 6, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant