[fpc-pascal] Unit crt

2015-09-23 Thread Rainer Stratmann
What does SetRawMode do? var OldIO : termio.TermIos; inputRaw, outputRaw: boolean; procedure saveRawSettings(const tio: termio.termios); Begin with tio do begin inputRaw := ((c_iflag and (IGNBRK or BRKINT or PARMRK or ISTRIP or INLCR or IGN

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

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 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 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
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 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 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 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 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 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 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 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 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 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 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] Resourcestrings in FPC 3.0

2015-09-23 Thread Martin Schreiber
On Monday 21 September 2015 11:06:53 Jonas Maebe wrote: > Martin Schreiber wrote on Sun, 20 Sep 2015: > > Are there any changes? How resourcestrings are encoded? > > Resourcestrings are stored using the same code page as constant > ansistrings in the source file in which they are defined (i.e., > a

Re: [fpc-pascal] Resourcestrings in FPC 3.0

2015-09-23 Thread Jonas Maebe
Martin Schreiber wrote: FPC fixes_3_0 with the program " program json; {$codepage utf8} {$ifdef FPC}{$mode objfpc}{$h+}{$endif} {$ifdef mswindows}{$apptype console}{$endif} uses {$ifdef FPC}{$ifdef unix}cthreads,cwstring,{$endif}{$endif} sysutils; resourcestring a = 'aäÄ'; begin end. " prod

Re: [fpc-pascal] Resourcestrings in FPC 3.0

2015-09-23 Thread Graeme Geldenhuys
On 2015-09-24 06:55, Martin Schreiber wrote: > Is this intended? How can translation tools know that the Unicode points must > be interpreted as utf-8 code units in this case? I would guess you found a bug or the implementation is incomplete - but then FPC 3.0 is in rc phase as far as I know. I