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.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
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 you would like to refer to this comment somewhere else in this project, copy and paste the following link:
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.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
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.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
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?
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
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.
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
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.
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.
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?