AssumeSupportDetector.cs 546 B

1234567891011121314151617181920
  1. namespace Terminal.Gui;
  2. /// <summary>
  3. /// Implementation of <see cref="ISixelSupportDetector"/> that assumes best
  4. /// case scenario (full support including transparency with 10x20 resolution).
  5. /// </summary>
  6. public class AssumeSupportDetector : ISixelSupportDetector
  7. {
  8. /// <inheritdoc/>
  9. public SixelSupportResult Detect ()
  10. {
  11. return new()
  12. {
  13. IsSupported = true,
  14. MaxPaletteColors = 256,
  15. Resolution = new (10, 20),
  16. SupportsTransparency = true
  17. };
  18. }
  19. }