Changeset 176


Ignore:
Timestamp:
10/24/02 19:40:55 (20 years ago)
Author:
piso
Message:

CMUCL_PROMPT_PATTERN

File:
1 edited

Legend:

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

    r175 r176  
    33 *
    44 * Copyright (C) 2002 Peter Graves
    5  * $Id: LispShell.java,v 1.3 2002-10-24 17:33:53 piso Exp $
     5 * $Id: LispShell.java,v 1.4 2002-10-24 19:40:55 piso Exp $
    66 *
    77 * This program is free software; you can redistribute it and/or
     
    2727        "^[^>\\*\\]]*[>\\*\\]] *";
    2828
     29    private static final String CMUCL_PROMPT_PATTERN =
     30        "^\\* |^[0-9]+\\] ";
     31
    2932    private LispShell(String shellCommand)
    3033    {
     
    3639    {
    3740        LispShell shell = new LispShell(shellCommand);
    38         shell.setPromptRE(DEFAULT_PROMPT_PATTERN);
    3941        shell.startProcess();
    4042        if (shell.getProcess() == null) {
     
    4850            return null;
    4951        }
     52        if (shellCommand.equals("/usr/bin/lisp"))
     53            shell.setPromptRE(CMUCL_PROMPT_PATTERN);
     54        else
     55            shell.setPromptRE(DEFAULT_PROMPT_PATTERN);
    5056        shell.needsRenumbering = true;
    5157        return shell;
Note: See TracChangeset for help on using the changeset viewer.