From 1d9cb8f86630e4d76e19dd10c67fba55fdd7988c Mon Sep 17 00:00:00 2001 From: Chris Hanson Date: Fri, 20 Jan 2017 01:44:58 -0800 Subject: [PATCH] Implement #\alarm and change #\u+00 to print as #\null. --- src/runtime/char.scm | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/src/runtime/char.scm b/src/runtime/char.scm index 754c7297a..1ac8103ee 100644 --- a/src/runtime/char.scm +++ b/src/runtime/char.scm @@ -295,14 +295,14 @@ USA. (cadr entry)))) (define named-codes - '((#x00 #f "null" "nul") + '((#x00 "null" "nul") (#x01 #f "soh") (#x02 #f "stx") (#x03 #f "etx") (#x04 #f "eot") (#x05 #f "enq") (#x06 #f "ack") - (#x07 #f "bel") + (#x07 "alarm" "bel") (#x08 "backspace" "bs") (#x09 "tab" "ht") (#x0A "newline" "linefeed" "lfd" "lf") @@ -332,16 +332,16 @@ USA. (#xA0 "nbsp") (#xFEFF "bom"))) -(define named-bits - '((#x01 "M" "meta") - (#x02 "C" "control" "ctrl") - (#x04 "S" "super") - (#x08 "H" "hyper"))) - (define char-bit:meta #x01) (define char-bit:control #x02) (define char-bit:super #x04) (define char-bit:hyper #x08) + +(define named-bits + `((,char-bit:meta "M" "meta") + (,char-bit:control "C" "control" "ctrl") + (,char-bit:super "S" "super") + (,char-bit:hyper "H" "hyper"))) ;;;; Unicode characters -- 2.25.1