dm view
'dm view' uses DEC sixels (link) to display several Commodore graphics file formats directly to supported terminals. like the unix 'cat' command, but from CBM container formats (like disk images and archive files). Adopting a hallmark of unix command design, 'dm cat' streams data from those containers to stdout; using shell output redirection, that data can be written to files or piped to another command. 'dm cat' makes heavy use of the CBM $elector syntax in order to identify the files or data that should be streamed. A list of terminals that support sixels can be found here - dm was tested against mintty (Windows), Windows Terminal Preview (Windows), iTerm2 (macOS), Wezterm (FreeBSD) and Contour (Linux).
Features
- supported formats
- many multicolor/hires bitmap formats (e.g. koala, doodle)
- 1x1 character sets, where dm can correctly discern as such
- SEQ files (i.e. PETSCII graphics, but also SEQ documentation files)
- select a scaling factor from 1x to 4x (default 2x) with -s1 .. -s4
- control case mode, background color ($d021), and starting foreground color when rendering
- works with CBM $elector syntax to choose files to view
- try
dm view --help
for all options
Examples
View the file GIRLS.SHP
(which is a Loadstar bitmap file) on the d81 disk image at 1x pixel scale: