I decided (many years ago) to create bonsole project (browser based console). It will deliver Firefox based terminal emulator (or something like that), library that handles http resoponse negotation, tool to set conditional task based on returned content (for example - it will run given command and if it return jpg image, it will be saved to file, but if given command returns text, it will print it or use as xmessage/zenity/kdialog parameter, etc. ) and client library.
This client library will checks if we have BONSOLE_SOME_ENV set up, providing Unix socket path and reads BONSOLE_XSLT_STRING or BONSOLE_XSLT_FILE_PATH to translate program's html output into string/terminal escape sequences. This library, if BONSOLE_SOME_ENV isn't set, it will also run nodejs or something to handle JavaScript.
I propose to realize library, which will run XSLT code to translate html output into string accessible by terminal (and possibly will run nodejs) in your project.
Why? To create rich console apps. LS Unix command could provide a full page, which links (anchors) to directories or (translated by library proposed by me) default output, or many different output. For example output of ls doesn't had to have colors and could looks like this:
directories:
.. . A B C
Images:
A.jpg, B.png, C.ico
Documents:
A.odt
I decided (many years ago) to create bonsole project (browser based console). It will deliver Firefox based terminal emulator (or something like that), library that handles http resoponse negotation, tool to set conditional task based on returned content (for example - it will run given command and if it return jpg image, it will be saved to file, but if given command returns text, it will print it or use as xmessage/zenity/kdialog parameter, etc. ) and client library.
This client library will checks if we have BONSOLE_SOME_ENV set up, providing Unix socket path and reads BONSOLE_XSLT_STRING or BONSOLE_XSLT_FILE_PATH to translate program's html output into string/terminal escape sequences. This library, if BONSOLE_SOME_ENV isn't set, it will also run nodejs or something to handle JavaScript.
I propose to realize library, which will run XSLT code to translate html output into string accessible by terminal (and possibly will run nodejs) in your project.
Why? To create rich console apps. LS Unix command could provide a full page, which links (anchors) to directories or (translated by library proposed by me) default output, or many different output. For example output of ls doesn't had to have colors and could looks like this: directories: .. . A B C Images: A.jpg, B.png, C.ico Documents: A.odt