1 45 package org.openejb.server.telnet; 46 47 import java.io.DataInputStream ; 48 import java.io.IOException ; 49 import java.io.PrintStream ; 50 51 54 public class Prompt extends Command { 55 56 public static void _DONT_register() { 57 Command.register("prompt", Prompt.class); 58 } 59 60 public void exec(Arguments args, DataInputStream in, PrintStream out) throws IOException { 61 try{ 62 if (args.count() == 0) return; 63 64 TextConsole.PROMPT = args.get(0); 65 66 } catch (Exception e){ 67 e.printStackTrace(); 68 } 69 } 70 71 } 72 73 | Popular Tags |