Arc Forumnew | comments | leaders | submitlogin
Ctrl-c to drop down to scheme not working
1 point by conanite 2969 days ago | 2 comments
I start arc3.1 with

  $ mzscheme -f as.scm 
but if I hit ctrl-c, I see "user break", a stack trace, and I'm back out to my shell. Where did (tl) go? I'm using

  $ mzscheme -v
  Welcome to MzScheme v4.2.1 [3m], Copyright (c) 2004-2009 PLT Scheme Inc.
incidentally, the comment in as.scm still advises

    mzscheme -m -f as.scm 
which displays an error and returns to the shell.


5 points by fallintothis 2969 days ago | link

The way you get a REPL circa mzscheme 4 is to pass -i, but

  -i, --repl : Run interactive read-eval-print loop; implies -v
  -v, --version : Show version
and they changed the -m flag to mean

  -m, --main : Call `main' with command-line arguments, print results
So, using -i will still display the banner, and there doesn't seem to be an option to mute it.

  $ mzscheme -if as.scm
  Welcome to MzScheme v4.1.5 [3m], Copyright (c) 2004-2009 PLT Scheme Inc.
  Use (quit) to quit, (tl) to return here after an interrupt.
  arc> ^Cuser break

   === context ===
  ~/arc/ac.scm:1141:4

  > (tl)
  Use (quit) to quit, (tl) to return here after an interrupt.
  arc>

-----

1 point by conanite 2968 days ago | link

cool, thanks, that's exactly it.

-----