mes: display: Display escaped characters.

* module/mes/display.mes (display): Display escaped characters.
This commit is contained in:
Jan Nieuwenhuizen 2018-04-22 20:08:38 +02:00
parent 6be49a294b
commit d3f962c376
No known key found for this signature in database
GPG key ID: F3C1A0D9C1D65273

View file

@ -54,9 +54,27 @@
(cond ((and write? (or (eq? x #\") (eq? x #\\)))
(write-char #\\ port)
(write-char x port))
((and write? (eq? x #\nul))
(write-char #\\ port)
(write-char #\0 port))
((and write? (eq? x #\alarm))
(write-char #\\ port)
(write-char #\a port))
((and write? (eq? x #\backspace))
(write-char #\\ port)
(write-char #\b port))
((and write? (eq? x #\tab))
(write-char #\\ port)
(write-char #\t port))
((and write? (eq? x #\newline))
(write-char #\\ port)
(write-char #\n port))
((and write? (eq? x #\vtab))
(write-char #\\ port)
(write-char #\v port))
((and write? (eq? x #\page))
(write-char #\\ port)
(write-char #\f port))
(#t (write-char x port))))
(define (d x cont? sep)