logo

oasis

Own branch of Oasis Linux (upstream: <https://git.sr.ht/~mcf/oasis/>) git clone https://anongit.hacktivis.me/git/oasis.git

0004-HACK-Disable-colorized-output-in-M-l-window-list.patch (972B)


  1. From 2c3519fb68301db5a2aef8715b3cd6ea29fa45ae Mon Sep 17 00:00:00 2001
  2. From: Michael Forney <mforney@mforney.org>
  3. Date: Thu, 3 Jun 2021 00:54:30 -0700
  4. Subject: [PATCH] [HACK] Disable colorized output in M-l window list
  5. vid_attr is not supported by NetBSD's libcurses, and this is not
  6. crucial feature.
  7. ---
  8. window.c | 2 --
  9. 1 file changed, 2 deletions(-)
  10. diff --git a/window.c b/window.c
  11. index d7bc472..b322c55 100644
  12. --- a/window.c
  13. +++ b/window.c
  14. @@ -294,7 +294,6 @@ void windowBare(void) {
  15. char buf[TimeCap];
  16. struct Style style = { .fg = Gray, .bg = Default };
  17. strftime(buf, sizeof(buf), windowTime.format, localtime(&line->time));
  18. - vid_attr(uiAttr(style), uiPair(style), NULL);
  19. printf("%s ", buf);
  20. bool align = false;
  21. @@ -310,7 +309,6 @@ void windowBare(void) {
  22. size_t tab = strcspn(str, "\t");
  23. if (tab < len) len = tab;
  24. - vid_attr(uiAttr(style), uiPair(style), NULL);
  25. printf("%.*s", (int)len, str);
  26. str += len;
  27. }
  28. --
  29. 2.34.1