on my kbd, key nr. 41, which is embossed with a tilde symbol,
returns an error message when I assign any value to it inII 126 to some
other key.
I've never encountered this problem, and I can't reproduce it in Xy3tilde, Ascii-255, Ascii-55 ("7") and Ascii-69 ("E") -- but maybe that's just a quirk of Xy3's error reporting. In any case, given that you're assigning a 3-byte tilde to produce a 1-byte tilde (which is fine in principle), here are a few things to try:
(1)
Change the default discretionary hyphen character to something other than the Ascii-126 tilde, for example, Wally's suggestion of Ascii-127:
D DH=
(2)
If no joy, retain the 3-byte tilde in the key assignment, but add a leading func "NO":
41=NO,~
In a hex editor, using the US ASCII charset (CP437), you should see: "34 31 3D 4E 4F 2C FF 37 45".
(3)
If that doesn't work, use your favorite non-XyWrite text editor to assign>41=~
In hex: "34 31 3D 7E".
If none of the above works, then I don't know. Maybe it's a hardware compatibility issue? As mentioned, I don't have any problem assigning a tilde (or any other char) to key #41, using my bog-standard Logitech K120 keyboard.
--
Carl Distefano