@neauoire Hi, is there any documentation for #uxn11 's .console/exec extension? I want to poll a shell script to make a battery icon window for flwm...

@neauoire do you use Console/mode? I can't understand what it does in #uxn11's extended Console

|10 @console [
&vector $2
&read $1
&pad0 $2
&live $1
&exit $1
&type $1
&write $1
&error $1
&pad1 $2

&addr $2
&mode $1
&exec $1 ]

@syscall/async ( cmd* -- )
.Console/addr DEO2
#01 .Console/exec DEO
JMP2r

@syscall/sync ( cmd* -- code )
/async
&await
.Console/live DEI # ff NEQ ?&await
.Console/exit DEI
JMP2r

@neauoire
I had an idea for extending #uxn5 to allow programs to communicate: implement the Console device as a simple RESTful API (or similar) on a webserver, POSTing output when available and periodically GETting input (maybe have a session number allowing multiple "conversations" between different #uxn programs). Ideally, build the serverside code in #RedBean so that it works on any platform! #uxn11 and #SDL uxn could be integrated in with a bit of a massage using #cURL!
@aw @nf

@neauoire I've been working with this as my testing program: https://codeberg.org/dheadshot/uxncat #uxn

I wrote this too - https://codeberg.org/dheadshot/sharestdio - and got #uxnemu on Windows talking to #uxn11 on Linux, using uxncat to send text between the two!

uxncat

A simple "cat" program for uxn, with a visual display in pixels for confirmation.

Codeberg.org
@neauoire I'm struggling to get .Console/input and .Console/vector working in #uxn11 (#uxn) is it not supported or just broken on my end?