jtulach commented on code in PR #9741:
URL: https://github.com/apache/netbeans/pull/9741#discussion_r4397723895
##########
ide/dlight.nativeexecution/src/org/netbeans/modules/nativeexecution/api/execution/NativeExecutionService.java:
##########
@@ -126,19 +126,9 @@ private Future<Integer> runTerm() {
processBuilder.setUsePty(true);
if (IOEmulation.isSupported(descriptor.inputOutput)) {
- // TODO: this is a temporary solution.
- //
- // Currently only ansi emulation is supported (NB7.4).
- // xterm/dtterm cannot be considered as fully supported yet..
- // So will set TERM environment to 'ansi'
- String termType = processBuilder.getEnvironment().get("TERM");
//NOI18N
- if (termType != null && termType.startsWith("xterm")) { //NOI18N
- // $TERM is one of xterm-color, xterm-16color, xterm-88color,
or xterm-256color.
- // Allows user to use his favorite one.
- processBuilder.getEnvironment().put("TERM", termType); //
NOI18N
- } else {
- processBuilder.getEnvironment().put("TERM", "xterm"
/*IOEmulation.getEmulation(descriptor.inputOutput)*/); // NOI18N
- }
+ processBuilder.getEnvironment().put("TERM",
IOEmulation.getEmulation(descriptor.inputOutput)); // NOI18N
+ // This is a hack - this should also come from the IOEmulation
+ processBuilder.getEnvironment().put("COLORTERM", "truecolor"); //
NOI18N
Review Comment:
- Is there a way to test NetBeans terminal supports `truecolor`?
- e.g. run some ASCII sequences and then capture `java.awt.Image` of the
terminal
- and verify the requested colors are there?
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]
For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists