Menu

xterm script can't copy multiple lines of text

Anonymous
2020-06-08
2020-08-01
  • Anonymous

    Anonymous - 2020-06-08

    After some troubleshooting, I just discovered that I'm unable to copy text from the xterm script tab if I have more than one line highlighted. This seems like a bug and I can't find any existing reports for it.

    Expected results:
    1). connect to remote device over serial
    2). run command on remote device
    3). select output text
    4). right-click > copy text

    Actual results:
    4). copy is greyed out if more than one line is selected

    In the meantime, I can copy text line by line, but this is a rather monotonous.

     
  • Stefan Zieker

    Stefan Zieker - 2020-06-09

    Hi,

    thx for your report. You can use the save button to save the complete content of the terminal to a file. But you have to modify the script because here is a bug too :-). Change line 25 to:

    if(!scriptFile.writeFile(g_fileName, false, UI_WebView.evaluateJavaScript("getContent()"), true))

     

    Last edit: Stefan Zieker 2020-06-09
  • Anonymous

    Anonymous - 2020-07-30

    Will there ever be a fix for this instead of a workaround? It's still a bit tedious to save the content to a file instead of selecting lines > copy to clipboard.

     
  • Stefan Zieker

    Stefan Zieker - 2020-07-31

    Hi,

    this example worker script uses the xTerm java script from https://github.com/xtermjs/xterm.js. I did not develop it and have therefore no clue what the problem is (the aim of this example worker script was just to show how you can expand the functionality of ScriptCommunicator with a WebView). Sry, I cannot help you.

     
  • Anonymous

    Anonymous - 2020-08-01

    I'm not sure I'm following. The xterm.js files that ship with ScriptCommunicator do not match what is available at that project URL, which indicates custom code that you did develop. Could you elaborate?

     

Anonymous
Anonymous

Add attachments
Cancel