Skip to content

Beginner Q regarding stdout #1081

Answered by ikappaki
dc-acronym asked this question in Q&A
Discussion options

You must be logged in to vote

Hi @dc-acronym,

currently, the nREPL server only redirects the *out* stream to the client, meaning it captures output from core functions like pr, print, etc.

However, rich writes directly to sys/stdout, which is the terminal or window where the nREPL server was started. So, if you started the server with basilisp nrepl-server, the output would appear in that terminal:

 basilisp nrepl-server
nREPL server started on port 59975 on host 127.0.0.1 - nrepl://127.0.0.1:59975
{'a': 5}

Are you primarily interested in displaying Basilisp core structures? If so, you can try the https://github.com/ikappaki/basilisp-pprint pretty printer library, which provides the same interface as the Clojure prett…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@dc-acronym
Comment options

Answer selected by dc-acronym
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants