From: mooremj@EGLIN-VAX.ARPA ("MARTIN J. MOORE")
Subject: Re: Characters with codes >= 128
Date: Mon, 31-Aug-87 16:47:00 EDT [thread overview]
Date: Mon Aug 31 16:47:00 1987
Message-ID: <8709010213.AA08396@ucbvax.Berkeley.EDU> (raw)
I encountered the same problem in attempting to use DEC's extended character
set. I worked around it by using an UNCHECKED_CONVERSION to stick 8-bit
values into CHARACTER objects (thereby making the program erroneous according
to the LRM; however, it worked.)
For example, to use the DEC control character CSI (= 155) I did:
function EIGHT_BIT_CHARACTER is new UNCHECKED_CONVERSION (INTEGER, CHARACTER);
CSI : constant CHARACTER := EIGHT_BIT_CHARACTER (155);
Characters so defined could then be used in string constants, such as
the following:
ERASE_SCREEN : constant STRING := CSI & "2J"; -- ANSI erase screen command
------------------------------------------------------------------------------
Martin Moore
mooremj@eglin-vax.arpa
------
next reply other threads:[~1987-08-31 20:47 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
1987-08-31 20:47 "MARTIN J. MOORE" [this message]
-- strict thread matches above, loose matches on Subject: below --
1987-09-14 14:28 characters with codes >= 128 Jim Moody, DCA C342
1987-09-15 20:55 ` Erland Sommarskog
1987-09-10 12:51 Characters " "MARTIN J. MOORE"
1987-09-10 3:47 colbert
1987-09-10 18:39 ` Barry Margolin
1987-09-12 14:47 ` Erland Sommarskog
1987-09-09 13:29 Jim Moody, DCA C342
1987-09-02 2:35 OCharacters " colbert
1987-09-05 20:43 ` Characters " sommar
1987-08-30 21:28 sommar
1987-09-02 14:24 ` stt
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox