[racket-users] Re: Running from command line and staying in REPL?

2018-09-13 Thread Jon Kleiser
2018 10.19.22 UTC+2 skrev Jon Kleiser følgende: > > Hi, > > I would like to run some Racket programs in the macOS Terminal (racket > foo.rkt bar1 bar2), and keep staying in the Racket REPL when my code has > completed. Is that possible? > > /Jon > -- You received this me

[racket-users] Running from command line and staying in REPL?

2018-09-13 Thread Jon Kleiser
Hi, I would like to run some Racket programs in the macOS Terminal (racket foo.rkt bar1 bar2), and keep staying in the Racket REPL when my code has completed. Is that possible? /Jon -- You received this message because you are subscribed to the Google Groups "Racket Users" group. To

Re: [racket-users] Running from command line and staying in REPL?

2018-09-13 Thread Jon Kleiser
Works like a charm. Thanks! Maybe that "21.1.1 Interactive Mode" chapter should mention that "-it" solution? torsdag 13. september 2018 12.58.57 UTC+2 skrev Matthias Felleisen følgende: > > > $ racket -it foo.bar > > > > On Sep 13, 2018, at 4:19 AM,

Re: [racket-users] Running from command line and staying in REPL?

2018-09-13 Thread Jon Kleiser
Sorry, but I'm not quite happy yet. ;-) When I get the ">" prompt, the definitions made in my hello.rkt seems to be gone. I get "cannot reference an identifier before its definition". How can I avoid that definitions and data get lost? torsdag 13. september 2018 13.03.42

Re: [racket-users] Running from command line and staying in REPL?

2018-09-13 Thread Jon Kleiser
I think I found the answer: Use (provide . . .). torsdag 13. september 2018 13.16.15 UTC+2 skrev Jon Kleiser følgende: > > Sorry, but I'm not quite happy yet. ;-) > When I get the ">" prompt, the definitions made in my hello.rkt seems to > be gone. I get "cannot

Re: [racket-users] Non-ASCII characters stripped from input in macOS Terminal

2018-09-14 Thread Jon Kleiser
, and > run > > ln -s /usr/local/opt/readline/lib/libreadline.dylib > > That way, Racket will find the "libreadline.dylib" from Homebrew > instead of the not-libreadline from the OS, since Racket looks in its > own "lib" first. > > At Fri, 14 Sep

[racket-users] Non-ASCII characters stripped from input in macOS Terminal

2018-09-14 Thread Jon Kleiser
If I enter this in the REPL in my macOS Terminal (string->list "hei") then I get '(#\h #\e #\i), as expected, but if I replace "hei" with "høy", the input line suddenly looks like this (string->list "h\U+FFC3\U+FFB8y") and what I get back is '(#\h #\y). The letter "ø" has been stripped away. The

Re: [racket-users] Non-ASCII characters stripped from input in macOS Terminal

2018-09-14 Thread Jon Kleiser
My Terminal "Advanced" tab also says "Unicode (UTF-8)". When I run the PicoLisp REPL, then I have no translation and stripping, "høy" is entered as "høy", it seems. fredag 14. september 2018 10.55.28 UTC+2 skrev Jens Axel Søgaard følgende: > > > D

Re: [racket-users] Non-ASCII characters stripped from input in macOS Terminal

2018-09-14 Thread Jon Kleiser
em with libedit, which Racket uses by default, and the > version of libedit that comes with Mac OS is not built with Unicode > support. > > If you insteall readline (e.g., through Homebrew), then installing the > "readline-gpl" Racket package will use readline and suppor