[BRLTTY] BrlAPI Raw key code mode?

Dave Mielke dave at mielke.cc
Thu Jul 27 16:01:15 EDT 2017


[quoted lines by Mario Lang on 2017/07/27 at 21:17 +0200]

>This did the trick:
>
>  brlapi_range_t Ranges[1];
>  Ranges[0].first = 0;
>  Ranges[0].last = 0Xffffffffffffffff;
>  brlapi__acceptKeyRanges(BrlAPI->handle(), Ranges, 1);

Here's what I think is a btter way to code the initialization:

   brlapi_range_t ranges[] = {
     { .first = 0, .last = UINT64_MAX }
   };

>Either the documentation or the code needs to be fixed.
>I would vote for making the code do what the documentation claims.

So do I. Having to accept specific ranges makes no sense (to me) in raw mode.

-- 
Dave Mielke           | 2213 Fox Crescent | http://Mielke.cc/
Phone: 1-613-726-0014 | Ottawa, Ontario   | http://Mielke.cc/bible/
EMail: Dave at Mielke.cc | Canada  K2A 1H7   | The Bible is the very Word of God.


More information about the BRLTTY mailing list