Thank you, John! I can now try to make it work for my real use case:"d:/" [ [ listener-window ] with-my-db ] with-directory : )) with-db is a bit trickier, I believe, than set-current-directory. with-disposal, in particular : ) 09.11.2016, 22:00, "John Benediktsson" :Everything
Hello!
Is it possible to run a new instance of the listener in a different
environment? I tried the following, and it didn't work as I expected:
"d:/" [ listener-window ] with-directory
I expected that running `current-directory get` in the new listener window
would return "d:/", but I
Everything is possible, with varying amounts of work.
This as it turns out is fairly easy but maybe requires defining a new word
to make it easy. Here is one way:
: run-in-new-listener ( quot -- )
'[
_ \ run-in-new-listener listener-window*
dup
Your original code works for me on Linux. Might be the Windows UI
backend doing something incorrect.
2016-11-09 20:30 GMT+01:00 Alexander Ilin :
> Thank you, John!
>
> I can now try to make it work for my real use case:
> "d:/" [ [ listener-window ] with-my-db ] with-directory
>