ref: 89e95268e95255fe126bd29fbf9bc3f658fefeb4
dir: /drawterm.md/
Drawterm ======== [Official page](http://drawterm.9front.org/). [Code](http://git.9front.org/plan9front/drawterm/HEAD/info.html). ## Linux Wayland backend (`make CONF=linux`) supports audio playback via pipewire out of the box. For other cases one can run `padsp drawterm ...` to get `/dev/dsp` emulated. Another variant is using `sndio`. Install it with your favorite package manager, run `sndiod`, modify `Make.unix`: change `AUDIO=unix` to `AUDIO=sndio` and add `-lsndio` to `LDADD`. Run `make CONF=unix`. Sound should work now. Since 9front is supposed to be used with three-button mouse, sometimes X11 (or Wayland) gets in the way of that, especially on Thinkpads, by emulating mouse wheel scroll with the middle trackpad button. It is advised to completely disable it. With sway `input * scroll_button disable` needs to be added to the configuration. With X11 `xinput` has to be used to disable mouse wheel emulation. ## OpenBSD Run or add to your .xinitrc `xinput set-prop "/dev/wsmouse" "WS Pointer Wheel Emulation" 0` to disable mouse wheel emulation. ## Android Install Termux using [F-Droid](https://f-droid.org/), then do: pkg install unstable-repo && apt upgrade pkg install x11-repo build-essential libx11 xorgproto git binutils git clone git://git.9front.org/plan9front/drawterm cd drawterm make CONF=unix -j4 At this point you have a functional `./drawterm` that you can run with `-G` to skip graphics. `/mnt/term/root/data/data/com.termux/files/home` is where your Termux local files are exposed. ## Windows Step -3: set your `$PATH` right to point at MinGW toolchain. `Make.win64` and `Make.win32` prefix the toolchain executables with $(MING). Make sure the resulting names match up with toolchain program names.