Function: auto-dark--is-dark-mode-termux
auto-dark--is-dark-mode-termux is a natively compiled function defined
in auto-dark.el.
Signature
(auto-dark--is-dark-mode-termux)
Documentation
Use Termux way to determine if dark theme is enabled.
ref: https://github.com/termux/termux-api/issues/425.
Source Code
;; Defined in /nix/store/fxsazwcy8jcsigjhcydkb81ip47xqcw0-emacs-packages-deps/share/emacs/site-lisp/elpa/auto-dark-20260313.2356/auto-dark.el
(defun auto-dark--is-dark-mode-termux ()
"Use Termux way to determine if dark theme is enabled.
ref: https://github.com/termux/termux-api/issues/425."
(string-equal "Night mode: yes"
(shell-command-to-string
"echo -n $(cmd uimode night 2>&1 </dev/null)")))