Changeset 144
- Timestamp:
- 10/15/02 01:02:55 (21 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/j/src/org/armedbear/j/Shell.java
r138 r144 3 3 * 4 4 * Copyright (C) 1998-2002 Peter Graves 5 * $Id: Shell.java,v 1. 9 2002-10-14 23:38:32piso Exp $5 * $Id: Shell.java,v 1.10 2002-10-15 01:02:55 piso Exp $ 6 6 * 7 7 * This program is free software; you can redistribute it and/or … … 85 85 promptIsStderr = false; 86 86 } 87 87 88 88 protected Shell(String shellCommand, Mode mode) 89 89 { … … 265 265 if (promptRE != null) { 266 266 Line dotLine = editor.getDotLine(); 267 if (dotLine.next() == null || dotLine.flags() == S hellFormatter.STATE_INPUT) {267 if (dotLine.next() == null || dotLine.flags() == STATE_INPUT) { 268 268 REMatch match = promptRE.getMatch(dotLine.getText()); 269 269 if (match != null) … … 435 435 } 436 436 if (dotLine.flags() == 0) 437 dotLine.setFlags(S hellFormatter.STATE_INPUT);437 dotLine.setFlags(STATE_INPUT); 438 438 editor.eol(); 439 439 editor.insertLineSeparator(); … … 583 583 final int size = completions.size(); 584 584 if (size > 0) { 585 dotLine.setFlags(S hellFormatter.STATE_INPUT);585 dotLine.setFlags(STATE_INPUT); 586 586 editor.insertLineSeparator(); 587 587 for (int i = 0; i < size; i++) { … … 705 705 final Editor editor = Editor.currentEditor(); 706 706 if (editor.getDotLine().next() == null) 707 editor.getDotLine().setFlags(S hellFormatter.STATE_INPUT);707 editor.getDotLine().setFlags(STATE_INPUT); 708 708 try { 709 709 stdin.write(c); … … 874 874 final Line last = posEndOfOutput.getLine(); 875 875 if (isPasswordPrompt(last)) { 876 last.setFlags(S hellFormatter.STATE_PASSWORD_PROMPT);876 last.setFlags(STATE_PASSWORD_PROMPT); 877 877 return; 878 878 } … … 886 886 REMatch match = promptRE.getMatch(last.getText()); 887 887 if (match != null) 888 nextToLast.setFlags(S hellFormatter.STATE_PROMPT);888 nextToLast.setFlags(STATE_PROMPT); 889 889 } 890 890 } … … 903 903 { 904 904 if (isPasswordPrompt(posEndOfOutput.getLine())) { 905 String password = PasswordDialog.showPasswordDialog(Editor.currentEditor(), "Password:", "Password"); 905 String password = 906 PasswordDialog.showPasswordDialog(Editor.currentEditor(), 907 "Password:", "Password"); 906 908 if (password != null) { 907 909 try {
Note: See TracChangeset
for help on using the changeset viewer.