Function: standard-display-8bit

standard-display-8bit is an autoloaded and byte-compiled function defined in disp-table.el.gz.

Signature

(standard-display-8bit L H)

Documentation

Display characters representing raw bytes in the range L to H literally.

On a terminal display, each character in the range is displayed by sending the corresponding byte directly to the terminal.

On a graphic display, each character in the range is displayed using the default font by a glyph whose code is the corresponding byte.

Note that ASCII printable characters (SPC to TILDA) are displayed in the default way after this call.

View in manual

Source Code

;; Defined in /usr/src/emacs/lisp/disp-table.el.gz
;;;###autoload
(defun standard-display-8bit (l h)
  "Display characters representing raw bytes in the range L to H literally.

On a terminal display, each character in the range is displayed
by sending the corresponding byte directly to the terminal.

On a graphic display, each character in the range is displayed
using the default font by a glyph whose code is the corresponding
byte.

Note that ASCII printable characters (SPC to TILDA) are displayed
in the default way after this call."
  (or standard-display-table
      (setq standard-display-table (make-display-table)))
  (if (> h 255)
      (setq h 255))
  (while (<= l h)
    (if (< l 128)
	(aset standard-display-table l
	      (if (or (< l ?\s) (= l 127)) (vector l)))
      (let ((c (unibyte-char-to-multibyte l)))
	(aset standard-display-table c (vector c))))
    (setq l (1+ l))))