Re: [Lazarus] How to list available serial ports on Linux?

2020-10-06 Thread Corpsman via lazarus
That is how do it: Function GetSerialPortNames(): String; Var   sl: TStringlist; Var   Info: TSearchRec;   hdl: THandle;   b: Boolean; Begin   sl := TStringlist.create;   If FindFirst('/dev/tty*', faSysFile, Info) = 0 Then Begin     Repeat   b := true;   Try     hdl :=

Re: [Lazarus] Win 7 issue / Re: -dWINDOWS_LIGATURE [[Re: Font ligatures support]]

2020-10-06 Thread Maxim Ganetsky via lazarus
06.10.2020 16:23, Martin Frb via lazarus пишет: On 06/10/2020 15:09, Maxim Ganetsky via lazarus wrote: Can you try to catch it in the debugger, and see what params are given to NewTextOut in #2  0x00ab95f6 in DRAWHILIGHTMARKUPTOKEN (ATOKENINFO=..., parentfp=0x13abf6e8)  at 

Re: [Lazarus] How to list available serial ports on Linux?

2020-10-06 Thread Wolf via lazarus
By submitting your question to DuckDuckGo, I found https://stackoverflow.com/questions/2530096/how-to-find-all-serial-devices-ttys-ttyusb-on-linux-without-opening-them To quote: |To see which tty's are currently in use, you can simply look into the file /proc/tty/drivers: and get a rather

[Lazarus] How to list available serial ports on Linux?

2020-10-06 Thread Bo Berglund via lazarus
Is there a way to list the available (working) serial ports on a Linux platform like the RaspberryPi? I would like to offer a dropdown list of working serial ports to the user to select among, but I am dissuaded from it when I do the following: ls -la /dev/tty* It returns a very long list of

Re: [Lazarus] Win 7 issue / Re: -dWINDOWS_LIGATURE [[Re: Font ligatures support]]

2020-10-06 Thread Martin Frb via lazarus
On 06/10/2020 15:09, Maxim Ganetsky via lazarus wrote: Can you try to catch it in the debugger, and see what params are given to NewTextOut in #2  0x00ab95f6 in DRAWHILIGHTMARKUPTOKEN (ATOKENINFO=..., parentfp=0x13abf6e8) at lazsyntextarea.pp:1741  fTextDrawer.NewTextOut(TxtLeft,

Re: [Lazarus] Win 7 issue / Re: -dWINDOWS_LIGATURE [[Re: Font ligatures support]]

2020-10-06 Thread Maxim Ganetsky via lazarus
06.10.2020 13:32, Martin Frb via lazarus пишет: > On 06/10/2020 01:01, Maxim Ganetsky via lazarus wrote: >> 05.10.2020 18:36, Martin Frb via lazarus пишет: >>> On 05/10/2020 00:27, Maxim Ganetsky via lazarus wrote: Lazarus hangs on start for me on Windows 7 when compiled with this

Re: [Lazarus] -dWINDOWS_LIGATURE [[Re: Font ligatures support]]

2020-10-06 Thread Martin Frb via lazarus
On 04/10/2020 18:05, Martin Frb wrote: On 04/10/2020 10:14, Mr Bee wrote: If it does work, would you please submit it as a patch for the next release? At least, add a note that the font ligatures feature only supports monospaced fonts and only works on Windows. It's better than nothing.

[Lazarus] @Alexey length(Glyph) [[Re: Font ligatures support]]

2020-10-06 Thread Martin Frb via lazarus
On 03/10/2020 16:34, Alexey Tor. via lazarus wrote: It's not very simple. see file https://github.com/Alexey-T/ATSynEdit/blob/master/atsynedit/atsynedit_canvasproc.pas and search for "ligatures" in all places. Unit has special code for win32. Just a note     if GetCharacterPlacementW(DC,

Re: [Lazarus] Win 7 issue / Re: -dWINDOWS_LIGATURE [[Re: Font ligatures support]]

2020-10-06 Thread Martin Frb via lazarus
On 06/10/2020 01:01, Maxim Ganetsky via lazarus wrote: 05.10.2020 18:36, Martin Frb via lazarus пишет: On 05/10/2020 00:27, Maxim Ganetsky via lazarus wrote: Lazarus hangs on start for me on Windows 7 when compiled with this define. Lazarus 2.1.0 r63957 FPC 3.2.0 i386-win32-win32/win64. I

Re: [Lazarus] -dWINDOWS_LIGATURE [[Re: Font ligatures support]]

2020-10-06 Thread Alexey Tor. via lazarus
-> => >= <= *** .. ... <> >< >> << >>> <<< == != Visual Studio shows all as ligatures except the first one It's trivial - synedit just doesn't TextOut such symbols in one block, ie it doesn't renders '->' as 2 chars but renders it as 2 chars - and >. Same for >>> and <<< etc. -- Regards,