Remove the -d flag to tmux and just use op/AX to detect default colours.

Irritatingly, although op can be used to tell if a terminal supports default
colours, it can't be used to set them because in some terminfo descriptions it
resets attributes as a side-effect (acts as sgr0) and in others it doesn't, so
it is not possible to determine reliably what the terminal state will be
afterwards. So if AX is missing and op is present, tmux just sends sgr0.

Anyone using -d for a terminal who finds they actually needed it can replace it
using terminal-overrides, but please let me know as it is probably an omission
from terminfo.
5 files changed
tree: 3ccaae348cdce4f85a1b71b6cd34c71b53ff100c
  1. Makefile
  2. array.h
  3. attributes.c
  4. buffer-poll.c
  5. buffer.c
  6. cfg.c
  7. client.c
  8. clock.c
  9. cmd-attach-session.c
  10. cmd-bind-key.c
  11. cmd-break-pane.c
  12. cmd-choose-client.c
  13. cmd-choose-session.c
  14. cmd-choose-window.c
  15. cmd-clear-history.c
  16. cmd-clock-mode.c
  17. cmd-command-prompt.c
  18. cmd-confirm-before.c
  19. cmd-copy-buffer.c
  20. cmd-copy-mode.c
  21. cmd-delete-buffer.c
  22. cmd-detach-client.c
  23. cmd-display-message.c
  24. cmd-display-panes.c
  25. cmd-down-pane.c
  26. cmd-find-window.c
  27. cmd-generic.c
  28. cmd-has-session.c
  29. cmd-if-shell.c
  30. cmd-kill-pane.c
  31. cmd-kill-server.c
  32. cmd-kill-session.c
  33. cmd-kill-window.c
  34. cmd-last-window.c
  35. cmd-link-window.c
  36. cmd-list-buffers.c
  37. cmd-list-clients.c
  38. cmd-list-commands.c
  39. cmd-list-keys.c
  40. cmd-list-panes.c
  41. cmd-list-sessions.c
  42. cmd-list-windows.c
  43. cmd-list.c
  44. cmd-load-buffer.c
  45. cmd-lock-client.c
  46. cmd-lock-server.c
  47. cmd-lock-session.c
  48. cmd-move-window.c
  49. cmd-new-session.c
  50. cmd-new-window.c
  51. cmd-next-layout.c
  52. cmd-next-window.c
  53. cmd-paste-buffer.c
  54. cmd-pipe-pane.c
  55. cmd-previous-layout.c
  56. cmd-previous-window.c
  57. cmd-refresh-client.c
  58. cmd-rename-session.c
  59. cmd-rename-window.c
  60. cmd-resize-pane.c
  61. cmd-respawn-window.c
  62. cmd-rotate-window.c
  63. cmd-run-shell.c
  64. cmd-save-buffer.c
  65. cmd-select-layout.c
  66. cmd-select-pane.c
  67. cmd-select-prompt.c
  68. cmd-select-window.c
  69. cmd-send-keys.c
  70. cmd-send-prefix.c
  71. cmd-server-info.c
  72. cmd-set-buffer.c
  73. cmd-set-environment.c
  74. cmd-set-option.c
  75. cmd-set-window-option.c
  76. cmd-show-buffer.c
  77. cmd-show-environment.c
  78. cmd-show-options.c
  79. cmd-show-window-options.c
  80. cmd-source-file.c
  81. cmd-split-window.c
  82. cmd-start-server.c
  83. cmd-string.c
  84. cmd-suspend-client.c
  85. cmd-swap-pane.c
  86. cmd-swap-window.c
  87. cmd-switch-client.c
  88. cmd-unbind-key.c
  89. cmd-unlink-window.c
  90. cmd-up-pane.c
  91. cmd.c
  92. colour.c
  93. environ.c
  94. grid-view.c
  95. grid.c
  96. imsg-buffer.c
  97. imsg.c
  98. imsg.h
  99. input-keys.c
  100. input.c
  101. job.c
  102. key-bindings.c
  103. key-string.c
  104. layout-set.c
  105. layout.c
  106. log.c
  107. mode-key.c
  108. names.c
  109. options-cmd.c
  110. options.c
  111. paste.c
  112. procname.c
  113. resize.c
  114. screen-redraw.c
  115. screen-write.c
  116. screen.c
  117. server-client.c
  118. server-fn.c
  119. server-job.c
  120. server-window.c
  121. server.c
  122. session.c
  123. status.c
  124. tmux.1
  125. tmux.c
  126. tmux.h
  127. tty-keys.c
  128. tty-term.c
  129. tty.c
  130. utf8.c
  131. window-choose.c
  132. window-clock.c
  133. window-copy.c
  134. window-more.c
  135. window.c
  136. xmalloc.c