Re: [fpc-pascal] Unit crt

2015-09-24 Thread Roger Rivero Jr. (SAMPA WebMaster)
El 23/9/2015 12:25 PM, Rainer Stratmann escribió: Rather than saving the state in a static way, I prefer implementing a Push/Pop (LIFO queue) approach to allow for nested pairs of setting and restoring, like this: Type IOsCollection = {Any sort of collection, array, list, or record with lin

Re: [fpc-pascal] Unit crt

2015-09-23 Thread Rainer Stratmann
On Wednesday 23 September 2015 13:19:28 you wrote: > Rainer Stratmann wrote on Wed, 23 Sep 2015: > > Does an example exist to turn off (and on) the rawmode? > > You posted the routine to do that yourself in the first mail of this > thread (the last one). There is not enough information available

Re: [fpc-pascal] Unit crt

2015-09-23 Thread Rainer Stratmann
On Wednesday 23 September 2015 22:40:32 you wrote: > What means CRT for ? :) https://en.wikipedia.org/wiki/Cathode_ray_tube ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] Unit crt

2015-09-23 Thread Ched
What means CRT for ? :) ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] Unit crt

2015-09-23 Thread Rainer Stratmann
On Wednesday 23 September 2015 18:24:54 you wrote: > On 23/09/15 15:06, Rainer Stratmann wrote: > > On Wednesday 23 September 2015 13:19:28 you wrote: > >> >Rainer Stratmann wrote on Wed, 23 Sep 2015: > >>> > >Does an example exist to turn off (and on) the rawmode? > >> > > >> >You posted the ro

Re: [fpc-pascal] Unit crt

2015-09-23 Thread Rainer Stratmann
On Wednesday 23 September 2015 18:24:54 you wrote: > On 23/09/15 15:06, Rainer Stratmann wrote: > > On Wednesday 23 September 2015 13:19:28 you wrote: > >> >Rainer Stratmann wrote on Wed, 23 Sep 2015: > >>> > >Does an example exist to turn off (and on) the rawmode? > >> > > >> >You posted the ro

Re: [fpc-pascal] Unit crt

2015-09-23 Thread Jonas Maebe
On 23/09/15 15:06, Rainer Stratmann wrote: On Wednesday 23 September 2015 13:19:28 you wrote: >Rainer Stratmann wrote on Wed, 23 Sep 2015: > >Does an example exist to turn off (and on) the rawmode? > >You posted the routine to do that yourself in the first mail of this >thread (the last one)

Re: [fpc-pascal] Unit crt

2015-09-23 Thread Mark Morgan Lloyd
Rainer Stratmann wrote: On Wednesday 23 September 2015 13:19:28 you wrote: Rainer Stratmann wrote on Wed, 23 Sep 2015: Does an example exist to turn off (and on) the rawmode? You posted the routine to do that yourself in the first mail of this thread (the last one). http://man7.org/linux/ma

Re: [fpc-pascal] Unit crt

2015-09-23 Thread Rainer Stratmann
On Wednesday 23 September 2015 13:19:28 you wrote: > Rainer Stratmann wrote on Wed, 23 Sep 2015: > > Does an example exist to turn off (and on) the rawmode? > > You posted the routine to do that yourself in the first mail of this > thread (the last one). > http://man7.org/linux/man-pages/man3/te

Re: [fpc-pascal] Unit crt

2015-09-23 Thread Rainer Stratmann
On Wednesday 23 September 2015 13:19:28 you wrote: > Rainer Stratmann wrote on Wed, 23 Sep 2015: > > Does an example exist to turn off (and on) the rawmode? > > You posted the routine to do that yourself in the first mail of this > thread (the last one). Ok, I guess the ONOCR flag in c_oflag bit

Re: [fpc-pascal] Unit crt

2015-09-23 Thread Jonas Maebe
Rainer Stratmann wrote on Wed, 23 Sep 2015: Does an example exist to turn off (and on) the rawmode? You posted the routine to do that yourself in the first mail of this thread (the last one). Jonas ___ fpc-pascal maillist - fpc-pascal@lists.f

Re: [fpc-pascal] Unit crt

2015-09-23 Thread Mark Morgan Lloyd
Rainer Stratmann wrote: Does it have something to do with the output of Linux commands? Now the outputs are: Message 1 Message 2 Message 3 How is it possible to get the normal behaviour? stty sane Note that is doesn't so much affect the out

Re: [fpc-pascal] Unit crt

2015-09-23 Thread Rainer Stratmann
On Wednesday 23 September 2015 12:05:43 you wrote: > In our previous episode, Rainer Stratmann said: > > Does it have something to do with the output of Linux commands? > > Yes. In raw mode cr and lf are separate. so suddenly your lf only advances > to the next line, but doesn't reset the carriag

Re: [fpc-pascal] Unit crt

2015-09-23 Thread Marco van de Voort
In our previous episode, Rainer Stratmann said: > Does it have something to do with the output of Linux commands? Yes. In raw mode cr and lf are separate. so suddenly your lf only advances to the next line, but doesn't reset the carriage to the first column. Use TProcess to capture the command ou

Re: [fpc-pascal] Unit crt

2015-09-23 Thread Rainer Stratmann
Does it have something to do with the output of Linux commands? Now the outputs are: Message 1 Message 2 Message 3 How is it possible to get the normal behaviour? Message 1 Message 2 Message 3 On Wednesday 23 September 2015 11:46:15 you wrot

Re: [fpc-pascal] Unit crt

2015-09-23 Thread Mark Morgan Lloyd
Rainer Stratmann wrote: What does SetRawMode do? Applies CFMakeRaw. -- Mark Morgan Lloyd markMLl .AT. telemetry.co .DOT. uk [Opinions above are the author's, not those of his employers or colleagues] ___ fpc-pascal maillist - fpc-pascal@lists.free

Re: [fpc-pascal] Unit crt

2015-09-23 Thread Michael Van Canneyt
On Tue, 22 Sep 2015, Rainer Stratmann wrote: What does SetRawMode do? puts the terminal in RAW mode. This disables usual terminal tricks such as translating CTRL-C to SIGINT etc. A terminal does quite some things 'behind your back', which are not desirable for the CRT unit. Michael.

Re: [fpc-pascal] unit crt linux CR LF

2014-12-22 Thread leledumbo
> When using the crt unit the CR LF is not working properly as I understand. quite the opposite, crt makes CR LF works as intended per character (see last answer) > Is it possible to change this behaviour? yes, don't use crt > So that the CR LF is working? Back to first answer > For examlp