Changeset 11250
- Timestamp:
- 07/22/10 15:50:42 (7 weeks ago)
- Files:
-
- 1 modified
Legend:
- Unmodified
- Added
- Removed
-
jsystemFramework/trunk/systemObjects/core/scriptingLanguages/src/jsystem/sysobj/scripting/python/PyShell.java
r11240 r11250 22 22 23 23 private StringBuffer logFileS = null; 24 25 private Prompt[] pyPrompts = new Prompt[1]; 24 26 25 27 public void init() throws Exception { … … 27 29 super.init(); 28 30 29 Prompt[] pyPrompts = new Prompt[1];30 31 31 pyPrompts[0] = new Prompt(); 32 pyPrompts[0].setPrompt(">>> ");32 pyPrompts[0].setPrompt(">>> "); 33 33 pyPrompts[0].setCommandEnd(true); 34 34 … … 37 37 cliApplication = station.getCliSession(false); 38 38 cliConnection = cliApplication.getConnectivityManager().getCli(); 39 cliConnection.setPrompts(pyPrompts); 39 40 40 41 logFileS = new StringBuffer(); … … 42 43 } 43 44 44 @Override 45 public void close() { 45 @Override public void close() { 46 46 station.close(); 47 47 super.close(); … … 57 57 cmd.addErrors("Error"); 58 58 if (prompt != null) { 59 cmd.setPromptString( "...");59 cmd.setPromptString(prompt); 60 60 } 61 61 cliConnection.handleCliCommand(command, cmd); 62 62 return cmd.getResult(); 63 } 64 65 public String handleCliCommandSend(String command) throws Exception { 66 logFileS.append(command + "<br>"); 67 cliConnection.sendString(command+"\r", false); 68 report.report(command, command, true); 69 return ""; 63 70 } 64 71
