jip@nih-csl.UUCP (john powell) (04/09/90)
I am posting this so maybe others will avoid my pitfall. I had the following lines in my .Xdefaults ... *VT100*Translations: #override \ <Key>F1: tek-page()\n\ <Key>F2: set-terminal-type(tek) *Tek4014*Translations: #override \ <Key>F1: tek-page()\n\ <Key>F2: set-terminal-type(vt) This was to allow users to toggle between VT100 and Tek windows. Also it allowed the user to 'page' the Tek window (from either mode). Everything is fine if both windows are displayed. However if the Tektroinix window IS NOT DISPLAYED and the F1 Key is struck (its right above the escape key the SUN3 Keyboards), the VT100 window is blown away .... X Error of failed request: BadWindow (invalid Window parameter) Major opcode of failed request: 61 (X_ClearArea) Minor opcode of failed request: 0 Resource id in failed request: 0x0 Serial number of failed request: 102169 Current serial number in output stream: 102169 I guess this is really true X_CLearArea is trying to clear the non-existant window. However it would be nice if xterm could handle this a little more gracefully. The pitfall can be avoided by removing the <Key>F1: tek-page()\n\ line from the VT100*Translations. John Powell DCRT, NIH Bethesda, Md. jip@alw.nih.gov