Evitar que o PuTTY minimize

0

Estou usando o PuTTY para monitorar uma porta serial transmitindo dados binários e dados ascii no 1000000 baud. Os caracteres binários são raw uint32_t bytes dos valores dos sensores e são essencialmente aleatórios. Quando os dados binários estão imprimindo coisas engraçadas acontecem:

  1. O título da janela muda várias vezes por segundo
  2. As cores mudam ocasionalmente
  3. A janela irá minimizar ocasionalmente.

A terceira questão é a que estou tentando resolver. Em Terminal- > Recursos, marquei as caixas para

  1. Desativar o redimensionamento do terminal controlado remotamente
  2. Desativar alternar para a tela do terminal alternativo
  3. Desativar chats de título de janela controlados remotamente

Mas o terminal ainda pode minimizar sozinho. Obrigado pela ajuda!

    
por portforwardpodcast 08.08.2014 / 05:43

1 resposta

1

O Putty não é adequado para a tarefa de monitorar dados binários arbitrários. Ele interpreta o que recebe como um emulador de terminal.

Veja o link

A.7.12 When I cat a binary file, I get ‘PuTTYPuTTYPuTTY’ on my command line.

Don't do that, then.

This is designed behaviour; when PuTTY receives the character Control-E from the remote server, it interprets it as a request to identify itself, and so it sends back the string ‘PuTTY’ as if that string had been entered at the keyboard. Control-E should only be sent by programs that are prepared to deal with the response. Writing a binary file to your terminal is likely to output many Control-E characters, and cause this behaviour. Don't do it. It's a bad plan.

To mitigate the effects, you could configure the answerback string to be empty (see section 4.3.7); but writing binary files to your terminal is likely to cause various other unpleasant behaviour, so this is only a small remedy.

A.7.13 When I cat a binary file, my window title changes to a nonsense string.

Don't do that, then.

It is designed behaviour that PuTTY should have the ability to adjust the window title on instructions from the server. Normally the control sequence that does this should only be sent deliberately, by programs that know what they are doing and intend to put meaningful text in the window title. Writing a binary file to your terminal runs the risk of sending the same control sequence by accident, and cause unexpected changes in the window title. Don't do it.

Eu procuraria por um monitor de porta serial como o portmon e o usaria.

    
por 08.08.2014 / 12:25