You can also use `file-stream-buffer-mode` instead of manually flushing the
port:
https://docs.racket-lang.org/reference/port-buffers.html#(def._((quote._~23~25kernel)._file-stream-buffer-mode))
-Philip
On Thu, Nov 15, 2018 at 2:07 PM Brian Adkins wrote:
> That was it - thanks! I guess I was
That was it - thanks! I guess I was spoiled by Ruby's auto-flushing of
"puts".
On Thursday, November 15, 2018 at 2:02:07 PM UTC-5, Philippe M wrote:
>
> Hi Brian
>
> I think you need to add a call to flush-output after sending data to outp
>
> Regards
> Philippe
>
>
> Le jeu. 15 nov. 2018 à
I'm porting a Ruby application to Racket (will be deployed on Linux, but
I'm developing on OSX). It uses the s3270 terminal emulator to access a
mainframe. An example in Ruby is:
IO.popen('s3270 L:ssl3270.example.com:2023', 'r+') do |pipe|
pipe.puts "ascii"
puts (pipe.gets)
puts
Hi Brian
I think you need to add a call to flush-output after sending data to outp
Regards
Philippe
Le jeu. 15 nov. 2018 à 19:51, Brian Adkins a écrit :
> I'm porting a Ruby application to Racket (will be deployed on Linux, but
> I'm developing on OSX). It uses the s3270 terminal emulator to
Good tip - I think (file-stream-buffer-mode outp 'line) makes sense in this
case given it's a terminal emulator.
On Thursday, November 15, 2018 at 2:50:33 PM UTC-5, Philip McGrath wrote:
>
> You can also use `file-stream-buffer-mode` instead of manually flushing
> the port:
>
5 matches
Mail list logo