One in place of the other. But try first with: tcflush(handle, TCIFLUSH);
Many thanks in advance yogi.

One in place of the other. But try first with: tcflush(handle, TCIFLUSH);
Many thanks in advance yogi.

Just tried the edits, one at a time. No change in the behavior.
There is another point that I didn't fully notice yesterday. The comms start to work right  when I:

1 Select ttyAMA0
2 ****Send Note On/Off messages to editor, the first 2 or 3 key presses are silent, thereafter the synth sounds.****
3 De select ttyAMA0 or shut down the Editor.
4 Select ttyAMA0 again, now the the Editor will refresh.

I hadn't noticed that step 2 was needed but I was doing it when it worked yesterday. Just tried Select-Deselect-Select with no Note messages and that didn't.
Yogi