comp.lang.ada
 help / color / mirror / Atom feed
* output of special characters
@ 2014-10-10 13:36 tonyg
  2014-10-10 13:42 ` Egil H H
  2014-10-10 14:17 ` Dmitry A. Kazakov
  0 siblings, 2 replies; 5+ messages in thread
From: tonyg @ 2014-10-10 13:36 UTC (permalink / raw)



I want to output a special character to the screen 
namely the ascii special symbol  degree ascii (176)

anyone know?

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: output of special characters
  2014-10-10 13:36 output of special characters tonyg
@ 2014-10-10 13:42 ` Egil H H
  2014-10-10 14:52   ` tonyg
  2014-10-10 16:27   ` Georg Bauhaus
  2014-10-10 14:17 ` Dmitry A. Kazakov
  1 sibling, 2 replies; 5+ messages in thread
From: Egil H H @ 2014-10-10 13:42 UTC (permalink / raw)


On Friday, October 10, 2014 3:36:20 PM UTC+2, tonyg wrote:
> I want to output a special character to the screen 
> 
> namely the ascii special symbol  degree ascii (176)
> 
> 
> 
> anyone know?

Take a look here:
http://www.adaic.org/resources/add_content/standards/12rm/html/RM-A-3-3.html

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: output of special characters
  2014-10-10 13:36 output of special characters tonyg
  2014-10-10 13:42 ` Egil H H
@ 2014-10-10 14:17 ` Dmitry A. Kazakov
  1 sibling, 0 replies; 5+ messages in thread
From: Dmitry A. Kazakov @ 2014-10-10 14:17 UTC (permalink / raw)


On Fri, 10 Oct 2014 06:36:19 -0700 (PDT), tonyg wrote:

> I want to output a special character to the screen 
> namely the ascii special symbol  degree ascii (176)
> 
> anyone know?

Provided Latin-1 encoding (because ASCII is 7-bit):

   Character'Val (176)

All depends on the terminal emulation mode, e.g. the code page. For
example, if the console expects UTF-8 then that would be

   Character'Val (16#c2#) & Character'Val (16#b0#)

etc.

-- 
Regards,
Dmitry A. Kazakov
http://www.dmitry-kazakov.de


^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: output of special characters
  2014-10-10 13:42 ` Egil H H
@ 2014-10-10 14:52   ` tonyg
  2014-10-10 16:27   ` Georg Bauhaus
  1 sibling, 0 replies; 5+ messages in thread
From: tonyg @ 2014-10-10 14:52 UTC (permalink / raw)


Thanks Egil.


^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: output of special characters
  2014-10-10 13:42 ` Egil H H
  2014-10-10 14:52   ` tonyg
@ 2014-10-10 16:27   ` Georg Bauhaus
  1 sibling, 0 replies; 5+ messages in thread
From: Georg Bauhaus @ 2014-10-10 16:27 UTC (permalink / raw)


On 10.10.14 15:42, Egil H H wrote:
> On Friday, October 10, 2014 3:36:20 PM UTC+2, tonyg wrote:
>> I want to output a special character to the screen
>>
>> namely the ascii special symbol  degree ascii (176)
>>
>>
>>
>> anyone know?
>
> Take a look here:
> http://www.adaic.org/resources/add_content/standards/12rm/html/RM-A-3-3.html
>

and also here, helpful depending on "screen":
http://www.adaic.org/resources/add_content/standards/12rm/html/RM-A-4-11.html

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2014-10-10 16:27 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-10-10 13:36 output of special characters tonyg
2014-10-10 13:42 ` Egil H H
2014-10-10 14:52   ` tonyg
2014-10-10 16:27   ` Georg Bauhaus
2014-10-10 14:17 ` Dmitry A. Kazakov

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox