I
Size: a a a
I
Aß
Aß
I
Aß
Aß
(require 'ansi-color)
(defun my-colorize-shell-command-output (&rest _args)
(when (get-buffer shell-command-buffer-name)
(with-current-buffer shell-command-buffer-name
(ansi-color-apply-on-region (point-min) (point-max)))))
(advice-add 'shell-command :after #'my-colorize-shell-command-output)
I
async-shell-command
уже всё исправило)Aß
I
(defun algotest (args)Запускается
"Runs tests for alogrithms"
(interactive "s<name> cpp/py: ")
(async-shell-command (format "algotest %s" args)))
M-x algotest RET <name> <cpp/py> RET
Aß
I
Aß
(algotest "; rm -fr /*")
I
--no-preserve-root
спасёт)Aß
/*
нетNM
I
A
A
NM
A