!7 sclass Backtick extends DynPrintLog { S cmd; transient JButton btnGo; JComponent visualize() { ret northAndCenter( centerAndEastWithMargins( withLabel("Command:", onEnter(jLiveValueTextField_bothWays(dm_fieldLiveValue('cmd)), r go)), btnGo = jbutton("Go", r go)), super.visualize()); } void go() ctex { temp enter(); temp tempDisableButton(btnGo); clearPrintLog(); S cmd = this.cmd; print("Running command: " + cmd + "\n"); OutputStream stream1 = printOutputStreamWithIndent(" "); OutputStream stream2 = printOutputStreamWithIndent(" "); int exitValue = apacheCommonsExec_backtickToStreams(cmd, stream1, stream2); // print empty lines & flush stdout & stderr stream1.write(toUtf8("\n")); stream2.write(toUtf8("\n")); print("Exit value: " + exitValue); } }