Problem :
While this question seems like its asking for code, its not; exactly, which is why its here instead of SO.
I’m designing a RPG game in bash, a lot of things that an RPG game would need, fixed displays, and etc. Worked in HTML, so I thought “Why not use a text based web browser too parse and display the HTML files” I looked into links, lynx, w3m, and elinks. But I couldn’t find a way too have the web browser take a HTML button, trigger a bash based script too run.
Is this too advanced? Or is there some other way if doing this without requiring a online aspect to it.
Solution :
You must use some script to do this. Client side script VBS should be able to do it as well as server side preprocessor like PHP (see exec() or system() functions)
From Lynx‘s user guide:
Local execution scripts or links
Local execution is activated when Lynx is first set up.If it has not been activated you will not see this option in the Options Menu.
When a local execution script is encountered Lynx checks the users options to see whether the script can be executed. Users have the following options:
If the users options permit the script to be executed Lynx will spawn a shell and run the script.
If the script cannot be executed Lynx will show the script within the Lynx window and inform the user that the script is not allowed to be executed and will ask the user to check his/her options