wm: doc

Download patch

ref: 872552b3dc5e0872a6382f7b1e7b02df191508ec
parent: 8bc5c73490f0984eba4c02fdf523979bd9757421
author: Aaron Lin <jrmu@inter9.org>
date: Wed Oct 16 23:07:56 EDT 2024

Add instructions for building 9fans drawterm

--- /dev/null
+++ b/drawterm-p9.ms
@@ -1,0 +1,49 @@
+.TL
+Drawterm for Plan 9
+.SH
+Installation
+.SM
+.SH
+Linux
+.LP
+.SH
+Using Debian Repos
+.P1
+$ sudo apt-get install drawterm
+.SH
+Building from source on Debian
+.P1
+$ sudo apt install libx11-dev libxt-dev
+$ git clone git://git.9front.org/plan9front/drawterm 
+$ cd drawterm
+$ CONF=unix make
+.P2
+.SH
+Usage
+.LP
+.P1
+$ USER=username drawterm -u $USER -c example.com -a example.com
+.P2  
+
+Replace
+.CW username
+with your actual username.
+.SH
+Using keyboard keys instead of mouse buttons
+.LP
+*Warning: Note that this disables numpad, and makes usage of old keys impossible without a X server restart* 
+To use keyboard keys instead of a 3 button mouse (on X11), first enable mousekeys
+.P1
+    $ xkbset m # enables mousekeys
+.P2
+Open
+.CW xev, press on keys you would like to use as mouse keys:
+.P1
+$ xev -event keyboard
+.P2
+If you choose keys F1, F2, and F3, the key codes are 67, 68 and 69: 
+.P1
+$ xmodmap -e "keycode 67 = Pointer_Button1"
+$ xmodmap -e "keycode 68 = Pointer_Button2"
+$ xmodmap -e "keycode 69 = Pointer_Button3"
+.P2