3
;;; $Id: intmod.scm,v 1.116 2002/02/13 01:05:37 cph Exp $
5
;;; Copyright (c) 1986, 1989-2002 Massachusetts Institute of Technology
7
;;; This program is free software; you can redistribute it and/or
8
;;; modify it under the terms of the GNU General Public License as
9
;;; published by the Free Software Foundation; either version 2 of the
10
;;; License, or (at your option) any later version.
12
;;; This program is distributed in the hope that it will be useful,
13
;;; but WITHOUT ANY WARRANTY; without even the implied warranty of
14
;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
15
;;; General Public License for more details.
17
;;; You should have received a copy of the GNU General Public License
18
;;; along with this program; if not, write to the Free Software
19
;;; Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
3
$Id: intmod.scm,v 1.119 2003/02/14 18:28:12 cph Exp $
5
Copyright 1986,1989,1991,1992,1993,1999 Massachusetts Institute of Technology
6
Copyright 2000,2001,2002,2003 Massachusetts Institute of Technology
8
This file is part of MIT/GNU Scheme.
10
MIT/GNU Scheme is free software; you can redistribute it and/or modify
11
it under the terms of the GNU General Public License as published by
12
the Free Software Foundation; either version 2 of the License, or (at
13
your option) any later version.
15
MIT/GNU Scheme is distributed in the hope that it will be useful, but
16
WITHOUT ANY WARRANTY; without even the implied warranty of
17
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
18
General Public License for more details.
20
You should have received a copy of the GNU General Public License
21
along with MIT/GNU Scheme; if not, write to the Free Software
22
Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307,
22
27
;;;; Inferior REPL Mode
23
28
;;; Package: (edwin inferior-repl)
382
387
cmdl-interrupt/abort-top-level))
384
(if (and (ref-variable debug-on-evaluation-error)
385
(let ((start? (ref-variable debugger-start-on-error?)))
386
(if (eq? 'ASK start?)
389
(write-string ";Start debugger? (y or n): " port)
391
(read-command-char port
393
(write-char char port)
394
(cond ((or (char-ci=? char #\y)
395
(char-ci=? char #\space))
397
(write-string ";Starting debugger..."
400
((or (char-ci=? char #\n)
401
(char-ci=? char #\rubout))
389
(if (let ((start? (ref-variable debug-on-evaluation-error #f)))
390
(if (eq? 'ASK start?)
393
(write-string ";Start debugger? (y or n): " port)
395
(read-command-char port
397
(write-char char port)
398
(cond ((or (char-ci=? char #\y)
399
(char-ci=? char #\space))
401
(write-string ";Starting debugger..."
404
((or (char-ci=? char #\n)
405
(char-ci=? char #\rubout))
407
411
(start-debugger))))))))