File: issues.rst

package info (click to toggle)
python-term-image 0.7.2-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 2,708 kB
  • sloc: python: 8,300; makefile: 75
file content (37 lines) | stat: -rw-r--r-- 1,866 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
Known Issues
============

1. Drawing of images and animations doesn't work completely well with Python for Windows
   (tested in Windows Terminal and MinTTY).

   * **Description:** Some lines of the image seem to extend beyond the number of columns
     that they should normally occupy by one or two columns.
     
     This behaviour causes animations to go bizarre when lines extend beyond the width of the terminal emulator.

   * **Comment:** First of all, the issue seems to caused by the layer between Python
     and the terminal emulators (i.e the PTY implementation in use) which "consumes" the
     escape sequences used to display images.
     
     It is neither a fault of this library nor of the terminal emulators, as drawing
     of images and animations works properly with WSL within Windows Terminal.

   * **Solution:** A workaround is to leave some columns between the right edge of the
     image and the right edge of the terminal.

2. Animations with the **kitty** render style on the **Kitty terminal emulator** might
   be glitchy for some images with **high resolution and size** and/or **sparse color
   distribution**.

   * **Description:** When the **LINES** render method is used, lines of the image
     might intermittently disappear. When the **WHOLE** render method is used,
     the entire image might intermitently disappear.

   * **Comment:** This is due to the fact that drawing each frame requires clearing the
     previous frame off the screen, since the terminal would otherwise blend subsequent
     frames. Not clearing previous frames would break transparent animations and result
     in a performance lag that gets worse over time.

   * **Solution:** Plans are in motion to implement support for native animations i.e
     utilizing the animation features provided by the protocol
     (See :github:issue:`40`).