README file for BWGOR.sh --------------------- Chris chris@hal3000.cx version 1.0a 04/02/05 Welcome ------- BWGOR stands for Badcat's Web and GOpher Reader. I made this for the better half (Badcat) as a sort of fetch (or curl or dump) and translate/read utility or routine. You can set it up to do most anything as it is basically just using the xmessage programmable button feature to run commands. Personally enjoying text dumping web sites made me think it might be nice to be able to click a button and pop up a quick view of a news page or weather from a gopher or web site. A home page button was also added. The grabbed page is then translated to text and then viewed in xmessage, a return button is provided to go back to the main xmessage window. Pages have links listed numerically and the list is at the bottom of the page so one can copy and hit return then URL in the main window and paste the link address in the underlying xterm window. In the example script you will see AUDIO and IMAGES are also given a button which allows entering a url for those files to be grabbed and then starts the appropriate viewer. A nice feature is the edit button which, since this only is a script, allows one to modify ones buttons and assignments on the fly. Finally there is the exit button also a nice feature ;) It could be made to have nothing but links or to start anything ... make it as you wish. This is perhaps more just an example of what one can do in xmessage. Programs in the example ---------------------- xterm xmessage (FreeBSD XFree86) to view in. vilistextum (http://bhaak.dyndns.org/vilistetxum/) to translate html > txt. cURL (http://curl.haxx.se/ ) to grab web pages. lynx (http://lynx.browser.org) to -dump because curl's gopher ability is broke. when using lynx -dump dont use the vilitextum as its already text. xv for image viewing. xmms (http://www.xmms.org) for audio and video. ee for editing BWGOR.sh from itself. To run ----- First modify the Bourne Shell script paths and programs to suit your needs. Name the script as you wish I used bwgor.sh . After you've played with it a bit you can add it to your path. (i.e. /usr/bin or ~/bin). Running Blackbox with ROX-filer my Blackbox menu is as follows: [exec] (BWGOR) {xterm -class xmessage -geometry 50x2-0+0 -e ~chris/bin/bwgor.sh} The -class gives xterm the colors of xmessage from my .Xdefaults and opens the xterm upper right and quite thin, just enough to enter a url. As xmessage opens it too is -geometry -0+0 as you can see in the script so it opens over the thin xterm. my .Xdefaults looks like this: xmessage*foreground: rgb:00/04/07 xmessage*background: rgb:ac/b9/c4 xmessage*Text*Scrollbar.foreground: rgb:4e/58/7e xmessage*Text*Scrollbar.background: rgb:ac/b9/c4 xmessage*BorderWidth: 0 xmessage*Command*ShapeStyle: rectangle Xmessage*font: -adobe-helvetica-medium-r-normal--12-120-75-75-p-67-iso8859-15 Thats about it, just play with what you want in it and set colors to your liking. About my choices ---------------- xmessage vs gmessage vs pymessage duno yet still playing :) vilistextum ? beats the heck ouf of my sed script! (sed -e :a -e 's/<[^>]*>//g;/