[BRLTTY] HIDE CURSOR

Phillip subversivo666 at gmail.com
Tue Dec 6 07:18:05 EST 2011


Hi Dave,

I tried all these commands below,

enqueueCommand(BRL_CMD_CSRTRK | BRL_FLG_TOGGLE_OFF);
enqueueCommand(BRL_CMD_CSRVIS | BRL_FLG_TOGGLE_OFF);
enqueueCommand(BRL_CMD_CSRHIDE | BRL_FLG_TOGGLE_OFF);
enqueueCommand(BRL_CMD_
CSRBLINK | BRL_FLG_TOGGLE_OFF);
enqueueCommand(BRL_CMD_CSRSIZE | BRL_FLG_TOGGLE_OFF);

but i didn't have success to hide the cursor.

Do you have another alternative ?

Thank you again.

Best regards.

2011/11/29 Phillip <subversivo666 at gmail.com>

> Hi again Dave,
>
> I tested this command line but the cursor continued to be shown.
>
> This is my constructor,
>
> static int brl_construct(BrailleDisplay *brl, char **parameters, const
> char *device) {
>
>     //-l debug -b cv -d /dev/ttyS0 -A auth=none -n
>     //estado = ESTADO_INICIAL;
>
>     {
>         //static const DotsTable dots = { 0X10, 0X20, 0X40, 0X08, 0X04,
> 0X02, 0X80, 0X01 };//padrao do prototipo
>
> //        static const DotsTable dots = { 0X01, 0X02, 0X04, 0X08, 0X10,
> 0X20, 0X40, 0X80 };//não sei
>
>         static const DotsTable dots = { 0X01, 0X02, 0X04, 0X10, 0X20,
> 0X40, 0X08, 0X80 };//simulador proteus
>
>         makeOutputTable(dots, outputTable);
>     }
>
>     if (!isSerialDevice(&device))
>         return 0;
>
>     if ((serialDevice = serialOpenDevice(device))) {
>
>         static const int baud = 9600;
>
>         charactersPerSecond = baud / 10;
>
>         if (serialRestartDevice(
> serialDevice, baud)) {
>
>             if (serialSetParity(serialDevice, SERIAL_PARITY_NONE)) {
>
>                 brl->textColumns = textColumns;
>                 brl->textRows = textRows;
>
>                 if ((outputBuffer = malloc(brl->textColumns))) {
>
>                     memset(outputBuffer, 0, brl->textColumns);
>
>                     enqueueCommand(BRL_CMD_CSR | BRL_FLG_TOGGLE_OFF);
>
>                     return 1;
>
>                     //if ((componentBuffer = malloc(componentColumns))) {
>                     //    memset(componentBuffer, 0, componentColumns);
>                     //}
>
>                 }
>             }
>         }
>     }
>
>     serialCloseDevice(serialDevice);
>
>     serialDevice = NULL;
>
>     return 0;
> }
>
> This is right ?
>
> Best regards.
>
>
> 2011/11/29 Dave Mielke <dave at mielke.cc>
>
>> [quoted lines by Phillip on 2011/11/29 at 15:03 -0200]
>>
>> >do you know say to me if the command
>> >
>> >enqueueCommand(BRL_CMD_CSRVIS | BRL_FLG_TOGGLE_OFF);
>> >
>> >work with the arrows keys ?
>>
>> The function call above will make it so that the cursor won't be visible
>> on the
>> display. The arrow keys will still move the cursor, and brltty will
>> continue to
>> track the display to where the cursor is whenever the cursor is moved.
>>
>> Perhaps I misunderstood your original question. If you don't want brltty
>> to
>> track cursor motion, then use:
>>
>>   enqueueCommand(BRL_CMD_CSRTRK | BRL_FLG_TOGGLE_OFF);
>>
>> --
>> Dave Mielke           | 2213 Fox Crescent | The Bible is the very Word of
>> God.
>> Phone: 1-613-726-0014 | Ottawa, Ontario   | 2011 May 21 is the End of
>> Salvation.
>> EMail: dave at mielke.cc | Canada  K2A 1H7   | 2011 Oct 21 is the End of
>> the World.
>> http://FamilyRadio.com/                   | http://Mielke.cc/bible/
>> _______________________________________________
>> This message was sent via the BRLTTY mailing list.
>> To post a message, send an e-mail to: BRLTTY at mielke.cc
>> For general information, go to: http://mielke.cc/mailman/listinfo/brltty
>>
>
>
>
> --
> Engenheiro Filipe Oliveira Bernardes
> Santa Rita do Sapucaí  - MG
>



-- 
Engenheiro Filipe Oliveira Bernardes
Santa Rita do Sapucaí  - MG
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mielke.cc/pipermail/brltty/attachments/20111206/4f88c145/attachment.html>


More information about the BRLTTY mailing list