Commit Graph

5 Commits (9d6fa2833faedc654c427f8a066ba4823607a7aa)

Author SHA1 Message Date
Amir Alexander Abdelbaki 9d6fa2833f fix: correct malformed shebang in txt2printr.sh
Missing '!' meant the kernel couldn't recognize the interpreter
directive, causing ENOEXEC (errno 8) when executed directly, e.g.
via subprocess.run() from photobooth.py.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
2026-07-14 09:10:59 +02:00
Amir Alexander Abdelbaki 9019cf2fa7 fix: correct printer device priority fallback in txt2printr.sh
-f only matches regular files, so it never matched the /dev/lp0 or
/dev/usb/lp0 character device nodes, leaving dev unset and always
failing. Use -e existence checks in proper if/elif priority order
(lp0 > usb/lp0 > stdout), with PRINTER_DEV as an unconditional override.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
2026-07-14 09:03:47 +02:00
Amir Alexander Abdelbaki c89e1e01ac added more options for printers - if none fount it should output to stdout 2026-07-14 08:57:56 +02:00
Amir Alexander Abdelbaki 5b631adfe4 implement txt2printr.sh to send ascii art to a parallel port needle printer
writes raw bytes to /dev/lp0 (overridable via PRINTER_DEV): resets the
printer with ESC @, converts LF to CRLF to avoid staircasing on raw
device writes, then form-feeds to eject the page.
2026-07-03 10:49:27 +02:00
Amir Alexander Abdelbaki 7030454075 switched exec-cycle to a live >=2fps ascii preview loop and added txt2printr stub
replaced the guvcview+keypress capture flow with a continuous
capture/convert/display loop so the terminal shows a live ascii
preview; pressing c saves the frame and triggers the new
txt2printr.sh hook (currently a blank template).
2026-07-03 10:24:35 +02:00