But definitely I think you will better be server by asio io_context posting events. It's more js execution style and well fitted for event loops. Condition variables just drives peoples crazy. ^^
And you can easily add it via : "platform" : ["Boost::+boost", "Boost::system"]
ArthurSonzogni
@ArthurSonzogni
Okay, I just understood.
I was using: cat test.json | json-ui
I was expecting FTXUI to get the event from the standard output, but it wasn't the case.
Damien Buhl
@daminetreg
wow looks cool to use json-ui
just pipe some json in and boom ^^
ArthurSonzogni
@ArthurSonzogni
Yes, but I wanted the user to be able to interact with the JSON. I need the standard input.
ArthurSonzogni
@ArthurSonzogni
Ha, I just found a go project doing exactly what I wanted. It is called jsonui, the same name as the one I wanted: https://github.com/gulyasm/jsonui
I don't understand how they can make: cat file.json | json-ui to work
the standard input is the file. So they don't receive any events.
Damien Buhl
@daminetreg
it's in go and not with FTXUI so it can't be good lol
I'm joking
@ArthurSonzogni You can handle that and open stdin yourself I believe
ArthurSonzogni
@ArthurSonzogni
I need to fill the FTXUI Readme by many projects using it.
Damien Buhl
@daminetreg
You mean the go project uses FTXUI ?
ArthurSonzogni
@ArthurSonzogni
No, they don't.
Damien Buhl
@daminetreg
Ah ok
ArthurSonzogni
@ArthurSonzogni
Yes, maybe there is a way to open the terminal input.
Damien Buhl
@daminetreg
I would like to make nxxm more interactive on the command line with FTXUI
For example for login/password insertion
Or for CI
I would like nxxm ci to show the job status and allow triggering, opening browser...
I think there is something with the idea of controlling-tty
ArthurSonzogni
@ArthurSonzogni
It works! Thanks!
Damien Buhl
@daminetreg
Cool learned by the way that it indeed works. The guy on SO deserves a +1
ArthurSonzogni
@ArthurSonzogni
I have so many votes on StackOverflow that doesn't count because I have myself less than 15.
I have 61 rep in Mathematic and 1 in StackOverflow
Damien Buhl
@daminetreg
Maths!!!
^^
Jason Rice
@ricejasonf
check check
Damien Buhl
@daminetreg
Hi Jason ^^
Jason Rice
@ricejasonf
hello
your website looks really good
Damien Buhl
@daminetreg
Thanks. Needs a bit of assets size reduction though
Jason Rice
@ricejasonf
I'm just perusing through your stuff. It looks like you have a Beast based http server or client, but your websockets is wasm on the server side. Is that right?
err... websockets
Damien Buhl
@daminetreg
We have beast for non wasm platforms in nxxm/xxhr
Which is an high level http client
And for the backend it’s for the moment node based
I use the node runtime to forward http request to c++ route handler
The stuff that is perhaps nearest to nbdl is wasmabi
That in the demo runs on websocket but also can on html serversent events