public static String getAnswerAt(String cmd2launch, int answerIdx) {
        List<String> sa = ExecutingCommand.runNative(cmd2launch);

        if (answerIdx >= 0 && answerIdx < sa.size()) {
            return sa.get(answerIdx);
        }
        return "";
    }
Return response on selected line index (0-based) after running selected
command.

@param cmd2launch
           String command to be launched
@param answerIdx
           int index of line in response of the command
@return String whole line in response or empty string if invalid index or
        running of command fails
cop/src/main/java/code/landgrey/copagent/common/ExecutingCommand.java