0001-ply-boot-splash-Set-unbuffered-input-when-creating-a.patch 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738
  1. From 10ac8d2dc927b112ce6aeb06bc73d9c46550954c Mon Sep 17 00:00:00 2001
  2. From: n3rdopolis <bluescreen_avenger@verizon.net>
  3. Date: Tue, 6 Feb 2024 18:52:25 -0500
  4. Subject: [PATCH] ply-boot-splash: Set unbuffered input when creating a text
  5. display
  6. ---
  7. src/libply-splash-core/ply-boot-splash.c | 6 ++++++
  8. 1 file changed, 6 insertions(+)
  9. diff --git a/src/libply-splash-core/ply-boot-splash.c b/src/libply-splash-core/ply-boot-splash.c
  10. index 12fb6c10..217f455e 100644
  11. --- a/src/libply-splash-core/ply-boot-splash.c
  12. +++ b/src/libply-splash-core/ply-boot-splash.c
  13. @@ -173,6 +173,7 @@ ply_boot_splash_add_text_display (ply_boot_splash_t *splash,
  14. ply_text_display_t *display)
  15. {
  16. int number_of_columns, number_of_rows;
  17. + ply_terminal_t *terminal;
  18. if (splash->plugin_interface->add_text_display == NULL)
  19. return;
  20. @@ -183,6 +184,11 @@ ply_boot_splash_add_text_display (ply_boot_splash_t *splash,
  21. ply_trace ("adding %dx%d text display", number_of_columns, number_of_rows);
  22. splash->plugin_interface->add_text_display (splash->plugin, display);
  23. +
  24. + terminal = ply_text_display_get_terminal (display);
  25. + if (terminal)
  26. + ply_terminal_set_unbuffered_input (terminal);
  27. +
  28. ply_list_append_data (splash->text_displays, display);
  29. }
  30. --
  31. 2.44.0