AnalogTerm2: Add recording support
authorMatthew Mondor <mmondor@pulsar-zone.net>
Sun, 2 Jul 2023 15:03:42 +0000 (15:03 +0000)
committerMatthew Mondor <mmondor@pulsar-zone.net>
Sun, 2 Jul 2023 15:03:42 +0000 (15:03 +0000)
commit0b985cb262580036e88eac92d78d2c312f4d6e8d
tree60dafd88f7794abaf7370c70f0854884b0133cf9
parent8f550bf4645e90c38ba22a09ed3421fdb63dfa0d
AnalogTerm2: Add recording support
- Window size not padded at a multiple of 16 to be compatible with
  efficient frame processing as expected by ffmpeg(1).
- The dimensions in characters and pixels are now shown at the top
  left of the terminal when started.
- The -R option was added to enable the recording capability.  The
  fullpath to a FIFO file (see mkfifo(1)) is expected.  AT2 writes
  to that FIFO when recording is enabled.  A recording application
  is expected to already be listening on the other side.
- A record.sh example recording script, using ffmpeg(1) was added.
- README and TODO were updated.
- A bug was fixed where attempting to blank character 0 crashed
  attempting to dereference a NULL pointer.
- More aliases were added to at-aliases.sh, including to enable
  and disable recording, atrecord/atnorecord.
13 files changed:
mmsoftware/analogterm2/README.txt
mmsoftware/analogterm2/TODO.txt
mmsoftware/analogterm2/src/config.c
mmsoftware/analogterm2/src/config.h
mmsoftware/analogterm2/src/draw.c
mmsoftware/analogterm2/src/draw.h
mmsoftware/analogterm2/src/font.c
mmsoftware/analogterm2/src/main.c
mmsoftware/analogterm2/src/screen.c
mmsoftware/analogterm2/src/state.c
mmsoftware/analogterm2/src/state.h
mmsoftware/analogterm2/tests/at2-aliases.sh
mmsoftware/analogterm2/tests/record.sh [new file with mode: 0755]