Changeset 125


Ignore:
Timestamp:
10/13/02 17:02:48 (21 years ago)
Author:
piso
Message:

Changes for LispShell?.java.

Location:
trunk/j/src/org/armedbear/j
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/j/src/org/armedbear/j/RemoteShell.java

    r96 r125  
    33 *
    44 * Copyright (C) 2000-2002 Peter Graves
    5  * $Id: RemoteShell.java,v 1.3 2002-10-11 13:58:54 piso Exp $
     5 * $Id: RemoteShell.java,v 1.4 2002-10-13 17:02:48 piso Exp $
    66 *
    77 * This program is free software; you can redistribute it and/or
     
    5454    }
    5555
    56     private void startProcess()
     56    protected void startProcess()
    5757    {
    5858        Process process = null;
  • trunk/j/src/org/armedbear/j/Shell.java

    r118 r125  
    33 *
    44 * Copyright (C) 1998-2002 Peter Graves
    5  * $Id: Shell.java,v 1.7 2002-10-13 14:02:55 piso Exp $
     5 * $Id: Shell.java,v 1.8 2002-10-13 17:00:14 piso Exp $
    66 *
    77 * This program is free software; you can redistribute it and/or
     
    3737public class Shell extends Buffer implements Constants
    3838{
     39    protected static final String JPTY_NOT_FOUND =
     40        "Unable to start shell process (jpty not found in PATH)";
     41
    3942    private RE promptRE = new UncheckedRE(DEFAULT_SHELL_PROMPT_PATTERN);
    4043
     
    7578    }
    7679
    77     private Shell(String shellCommand)
     80    protected Shell(String shellCommand)
    7881    {
    7982        this();
     
    122125    protected void initializeHistory()
    123126    {
    124         history = new History("shell.history");
     127        history = new History("shell.history", 30);
    125128    }
    126129
     
    135138                message = "Unable to start shell process \"" + shell.shellCommand + "\"";
    136139            else
    137                 message = "Unable to start shell process (jpty not found in PATH)";
     140                message = JPTY_NOT_FOUND;
    138141            MessageDialog.showMessageDialog(message, "Error");
    139142            return null;
     
    143146    }
    144147
    145     private void startProcess()
     148    protected void startProcess()
    146149    {
    147150        // Only set initialDir the first time we run, so that if we restart
Note: See TracChangeset for help on using the changeset viewer.