public void printPrompt() { if (!multi) { multiIndentSize = (prompt = String.valueOf(TemplateRuntime.eval(env.get("$PROMPT"), variables))).length(); out.append(prompt); } else { out.append(">").append(indent((multiIndentSize - 1) + (depth * 4))); } }
public void printPrompt() { if (!multi) { multiIndentSize = (prompt = String.valueOf(TemplateRuntime.eval(env.get("$PROMPT"), variables))).length(); out.append(prompt); } else { out.append(">").append(indent((multiIndentSize - 1) + (depth * 4))); } }
public void printPrompt() { if (!multi) { multiIndentSize = (prompt = String.valueOf(TemplateRuntime.eval(env.get("$PROMPT"), variables))).length(); out.append(prompt); } else { out.append(">").append(indent((multiIndentSize - 1) + (depth * 4))); } }
public void run() { byte[] buf = new byte[25]; int read; while (true) { try { while ((read = inStream.read(buf)) > 0) { for (int i = 0; i < read; i++) { sysPrintStream.print((char) buf[i]); } sysPrintStream.flush(); } if (!runState.isRunning()) break; } catch (Exception e) { break; } } sysPrintStream.flush(); if (!multi) { multiIndentSize = (prompt = String.valueOf(TemplateRuntime.eval(env.get("$PROMPT"), variables))).length(); out.append(prompt); } else { out.append(">").append(indent((multiIndentSize - 1) + (depth * 4))); } } });
public void run() { byte[] buf = new byte[25]; int read; while (true) { try { while ((read = inStream.read(buf)) > 0) { for (int i = 0; i < read; i++) { sysPrintStream.print((char) buf[i]); } sysPrintStream.flush(); } if (!runState.isRunning()) break; } catch (Exception e) { break; } } sysPrintStream.flush(); if (!multi) { multiIndentSize = (prompt = String.valueOf(TemplateRuntime.eval(env.get("$PROMPT"), variables))).length(); out.append(prompt); } else { out.append(">").append(indent((multiIndentSize - 1) + (depth * 4))); } } });
public void run() { byte[] buf = new byte[25]; int read; while (true) { try { while ((read = inStream.read(buf)) > 0) { for (int i = 0; i < read; i++) { sysPrintStream.print((char) buf[i]); } sysPrintStream.flush(); } if (!runState.isRunning()) break; } catch (Exception e) { break; } } sysPrintStream.flush(); if (!multi) { multiIndentSize = (prompt = String.valueOf(TemplateRuntime.eval(env.get("$PROMPT"), variables))).length(); out.append(prompt); } else { out.append(">").append(indent((multiIndentSize - 1) + (depth * 4))); } } });