Add a ‘close’ button to the twm title bar.
### close window RightTitleButton "/home/username/installs/backdrops/close4.xbm" = f.delete
All this does is add a button to the right of the title bar, using the bitmap in close4.xbm and attach to it the action f.delete. The result looks like this:
The icon for this is one I made myself. twm icons are little xbm (X windows bit map) files. The standard ones don’t always have the file name extension, and they live in
or on cygwin on (64-bit) Windows:
Now, I could not directly upload xbm files to this blog, so these images are gifs and will not work for twm. However, you can go here and get the icons in the file ‘close_buttons.zip‘. Alternatively, something like GIMP or ImageMagick can probably turn the gifs back into xbms — although I don’t know if they’ll have the right colour depth.
Then put them somewhere in your local filespace and put the path into your .twmrc file and there you have it, a neat little button to close the application/dialogue/whatever.