summaryrefslogtreecommitdiff
path: root/lisp/term.el
diff options
context:
space:
mode:
authorStefan Monnier <monnier@iro.umontreal.ca>2009-09-24 01:20:36 +0000
committerStefan Monnier <monnier@iro.umontreal.ca>2009-09-24 01:20:36 +0000
commit62136c5d4bc770f6258f32b5c3b9d184569cb7c1 (patch)
treee02691a5179b2f9babd92f28d18b12ac7d6b0e1f /lisp/term.el
parenta489517b882ba3927eae7b6c33a80b052e94ba8c (diff)
downloademacs-62136c5d4bc770f6258f32b5c3b9d184569cb7c1.tar.gz
(term-bold-attribute): New var.
(term-handle-colors-array): Use it.
Diffstat (limited to 'lisp/term.el')
-rw-r--r--lisp/term.el8
1 files changed, 6 insertions, 2 deletions
diff --git a/lisp/term.el b/lisp/term.el
index 295f1e8d379..5a9caa34acd 100644
--- a/lisp/term.el
+++ b/lisp/term.el
@@ -3135,6 +3135,10 @@ See `term-prompt-regexp'."
;; New function to deal with ansi colorized output, as you can see you can
;; have any bold/underline/fg/bg/reverse combination. -mm
+(defvar term-bold-attribute '(:weight bold))
+ "Attribute to use for the bold terminal attribute.
+Set it to nil to disable bold.")
+
(defun term-handle-colors-array (parameter)
(cond
@@ -3231,7 +3235,7 @@ See `term-prompt-regexp'."
(elt ansi-term-color-vector term-ansi-current-bg-color))))
(when term-ansi-current-bold
(setq term-current-face
- (append '(:weight bold) term-current-face)))
+ (append term-bold-attribute term-current-face)))
(when term-ansi-current-underline
(setq term-current-face
(append '(:underline t) term-current-face))))
@@ -3259,7 +3263,7 @@ See `term-prompt-regexp'."
(elt ansi-term-color-vector term-ansi-current-bg-color))))
(when term-ansi-current-bold
(setq term-current-face
- (append '(:weight bold) term-current-face)))
+ (append term-bold-attribute term-current-face)))
(when term-ansi-current-underline
(setq term-current-face
(append '(:underline t) term-current-face))))))