Function: compose-gstring-and-emoji-for-terminal
compose-gstring-and-emoji-for-terminal is a byte-compiled function
defined in composite.el.gz.
Signature
(compose-gstring-and-emoji-for-terminal GSTRING DIRECTION)
Documentation
Compose Emoji sequences for TTY frames.
The width of the composition is adjusted to 2.
Source Code
;; Defined in /usr/src/emacs/lisp/composite.el.gz
(defun compose-gstring-and-emoji-for-terminal (gstring _direction)
"Compose Emoji sequences for TTY frames.
The width of the composition is adjusted to 2."
(let ((nglyphs (lgstring-char-len gstring)))
(dotimes (i nglyphs)
(let ((glyph (lgstring-glyph gstring i)))
(when glyph
(lglyph-set-from-to glyph 0 (1- nglyphs))
(lglyph-set-width glyph (if (= i 0) 2 0))))))
gstring)