BS-RENDERFLIPDOT(1) General Commands Manual BS-RENDERFLIPDOT(1)

bs-renderflipdot
Render for and send text to a flipdot display

bs-renderflipdot [-n] [-i] [-s size] -f font [-f font [-f ...]] [-S] [-P] [-W width] [-H height] [-h host] [-p port] [-4] [-6] text

bs-renderflipdot uses buchstabensuppe(3) to render a given string onto a binary bitmap. It additionally has the ability to send the resulting bitmap to a flipdot display via its common UDP protocol which can be disabled using the -n option.

The full list of options is as follows:

Dry run. Disables sending the rendered bitmap to a flipdot display via UDP which is useful if you just want to render a string to stdout.
Render inverted. By default the resulting bitmap is rendered white on black, by passing -i it is inverted to be black on white. -s size Specify the font size in pixels. When this option is given it affects all fonts that are added after the -s option. If it is missing, the default size of 16 is used. Can be used multiple times.
path
Add a font file. The added fonts are used as fallback fonts in the order they are given on the command line, meaning the first given font will be checked first for glyphs. If the font file contains multiple fonts, the one with index 0 is always used. Must be specified at least once.
Scroll the text through the screen instead of cutting it off at the edge of the screen if it overflows. The scrolling motion is rendered at 8 FPS so a real flipdot can keep up, which means that bs-renderflipdot takes roughly (screen_width * 2 + bitmap_width) * (1s / 8) to finish.
Page the text instead of cutting it off at the edge of the screen. This means the rendered bitmap would be cut up into pieces of screen_width. Each of these pieces is shown for 2s which means bs-renderflipdot takes roughly floor(bitmap_width / screen_width) * 2s to finish.

width
Width of the target flipdot display. Only relevant if -n is not given, defaults to 80.
height
Height of the target flipdot display. Only relevant if -n is not given, defaults to 16.
host
Host of the target flipdot display. Only relevant if -n is not given, localhost is the default value.
port
Port of the target flipdot display. Only relevant if -n is not given, 2323 is the default value.
Use IPv4 address of target host if any. Otherwise the one returned first by getaddrinfo(3) is used.
Use IPv6 address of target host if any.
-?
Show usage information.

bs-renderflipdot exits with 0 on success and with 1 if an error of any kind occurs.

Render “Hello World” using GNU Unifont in size 16 to stdout without sending it anywhere:
bs-renderflipdot -s 16 -f /usr/share/fonts/truetype/unifont.ttf \
  -n "Hello World"

Render “Hi 👋” black on white onto a flipdot display running on flipdot.lab:2323 using GNU Unifont and its upper codepages variant Unifont Upper:

bs-renderflipdot -i -s 16 \
  -f /usr/share/fonts/truetype/unifont.ttf \
  -f /usr/share/fonts/truetype/unifont_upper.ttf \
  -h flipdot.lab "Hi 👋"

buchstabensuppe(3)

bs-renderflipdot and buchstabensuppe have been written and documented by sternenseemann, sterni-buchstabensuppe@systemli.org.
March 20, 2022 NixOS