0

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.

2 Answers 2

1

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)

5
  • The thing is, I want too avoid serverside, as the program is entiely clientside, all of it. It's a local HTML file, not transmitted over the WWW. Commented Jan 27, 2014 at 8:21
  • yes serverside would mean that you would have to install apache server and PHP into your computer ;) Or just use this visual basic script and it will work without installing server software I believe
    – Vitas
    Commented Jan 27, 2014 at 8:38
  • I suppose that could be done. Commented Jan 27, 2014 at 8:39
  • 1
    if you consider installing server software, I suggest XAMPP. Very simple to setup
    – Vitas
    Commented Jan 27, 2014 at 8:45
  • Thank you! I'll try it out, I used too use WAMP, but I'll give that a shot Commented Jan 27, 2014 at 8:46
0

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

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .