* Form Feed To Printer
@ 1995-03-24 8:48 jcott
1995-03-26 4:00 ` Robert Dewar
1995-03-26 7:42 ` Tore Joergensen
0 siblings, 2 replies; 6+ messages in thread
From: jcott @ 1995-03-24 8:48 UTC (permalink / raw)
I am trying to figure out the ascii code so that I can send a
line feed to the printer.
If anyone knows the Ascii Escape code, or anything else
I can use so that I may send a form feed to the Printer, I would
Appreicate it.
Thanks,
Jeff
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: Form Feed To Printer
1995-03-24 8:48 Form Feed To Printer jcott
@ 1995-03-26 4:00 ` Robert Dewar
1995-03-26 7:42 ` Tore Joergensen
1 sibling, 0 replies; 6+ messages in thread
From: Robert Dewar @ 1995-03-26 4:00 UTC (permalink / raw)
Don't think of sending a form feed to the printer, that is too low level,
instead just use Text_IO.New_Page, that is what it is for. If it doesn't
work, then your implementation is not doing the right thing.
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: Form Feed To Printer
1995-03-24 8:48 Form Feed To Printer jcott
1995-03-26 4:00 ` Robert Dewar
@ 1995-03-26 7:42 ` Tore Joergensen
1995-03-29 0:00 ` David Kusuda
1 sibling, 1 reply; 6+ messages in thread
From: Tore Joergensen @ 1995-03-26 7:42 UTC (permalink / raw)
jcott@csupomona.edu wrote:
: I am trying to figure out the ascii code so that I can send a
: line feed to the printer.
: If anyone knows the Ascii Escape code, or anything else
: I can use so that I may send a form feed to the Printer, I would
: Appreicate it.
Linefeed 10 16#0A#
Formfeed 12 16#0C#
CR 13 16#0D#
Escape 27 16#1B#
______________________________________________________________________
Tore B. Joergensen, | e-mail: tore@lis.pitt.edu
a norwegian student | snail-mail: 2201 Pittockstr.
a long way from home. | Pittsburgh, 15217 PA
| web: http://www.pitt.edu/~tojst1
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: Form Feed To Printer
1995-03-26 7:42 ` Tore Joergensen
@ 1995-03-29 0:00 ` David Kusuda
1995-03-30 0:00 ` Pascal OBRY
0 siblings, 1 reply; 6+ messages in thread
From: David Kusuda @ 1995-03-29 0:00 UTC (permalink / raw)
In article 1o4@toads.pgh.pa.us, tore@lis.pitt.edu (Tore Joergensen) writes:
>jcott@csupomona.edu wrote:
>
>: I am trying to figure out the ascii code so that I can send a
>: line feed to the printer.
>
>: If anyone knows the Ascii Escape code, or anything else
>: I can use so that I may send a form feed to the Printer, I would
>: Appreicate it.
>
>Linefeed 10 16#0A#
>Formfeed 12 16#0C#
>CR 13 16#0D#
>Escape 27 16#1B#
You can also use the predefined ASCII package...
Linefeed ASCII.LF
Formfeed ASCII.FF
CR ASCII.CR
Escape ASCII.ESC
Dave
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: Form Feed To Printer
1995-03-29 0:00 ` David Kusuda
@ 1995-03-30 0:00 ` Pascal OBRY
1995-04-04 0:00 ` Robert Dewar
0 siblings, 1 reply; 6+ messages in thread
From: Pascal OBRY @ 1995-03-30 0:00 UTC (permalink / raw)
>You can also use the predefined ASCII package...
>
> Linefeed ASCII.LF
> Formfeed ASCII.FF
> CR ASCII.CR
> Escape ASCII.ESC
Or since the ASCII package is now obsolete in Ada95 :
with Ada.Characters;
Latin_1.LF;
Latin_1.FF;
Latin_1.CR;
Latin_1.ESC;
Pascal.
--
--|---------------------------------------------------------------
--| Pascal OBRY e-mail: pascal.obry@der.edf.fr |
--| EDF-DER-IPN-SID-ISI |
--| Bureau G1-010 voice: +33-1-47.65.50.91 |
--| 1 Av General de Gaulle |
--| 92141 Clamart CEDEX |
--| FRANCE |
--|---------------------------------------------------------------
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: Form Feed To Printer
1995-03-30 0:00 ` Pascal OBRY
@ 1995-04-04 0:00 ` Robert Dewar
0 siblings, 0 replies; 6+ messages in thread
From: Robert Dewar @ 1995-04-04 0:00 UTC (permalink / raw)
Pascal Obry suggests using the Latin_1 package instead of Ascii for simple
accesses to control characters.
I think that is a mistake. Ascii is not "obsolete" it is obsolescent, which
means that the designers think it might be considered for removal, but for
the moment if is a first class citizen in Ada 95, and can be used freely.
Personally I think the probability of this package disappearing in the
future is 0.00000000%
The trouble with using Latin_1 is twofold
first it drags in a lot of junk, which is likely to slow down compilation.
by contrast ASCII is right there in standard, no use clause or with clause
required.
second, if you are in a localized environment, say one using Latin-2, then
it may cause torubles to with Latin-1 as well.
This is just personal opinion, my own feeling is that the obsolescent
features annex of Ada 95 is a mistake. Anyway, it is important for people
to realize that all features in this annex are 100% required and 100%
available. It is only a matter of aesthetics as to whether one should use
them. They have been retained because they are used and potentially useful.
You can feel free to use them!
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~1995-04-04 0:00 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
1995-03-24 8:48 Form Feed To Printer jcott
1995-03-26 4:00 ` Robert Dewar
1995-03-26 7:42 ` Tore Joergensen
1995-03-29 0:00 ` David Kusuda
1995-03-30 0:00 ` Pascal OBRY
1995-04-04 0:00 ` Robert Dewar
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox