[5475] in Athena Bugs
rt 7.0F: xcalc keyboard screwup fix
daemon@ATHENA.MIT.EDU (epeisach@ATHENA.MIT.EDU)
Tue Jul 10 21:53:22 1990
From: epeisach@ATHENA.MIT.EDU
Date: Tue, 10 Jul 90 14:34:45 -0400
To: bugs@ATHENA.MIT.EDU
> Call up an R4 xcalc. Type (don't click) the YOU stuff:
>
>YOU> 5 + 5 =
> IT> 10
>YOU> 6 + 7 =
> IT> 23
>YOU> 6 - 7 =
> IT> 22
The problem was that in the X resources, there wree lines to the affect:
<Key>+:add()\n\
<Key>=:equal()\n\
This means that "=" which is really an unshifted "+" will cause a
failure as the "=" is interpreted as a "+" according to the resources.
(see Xt Intrinsics Appendix B).
I've fixed the ones which I thought would conflict. Note that I went
overboard in that the ^ will not conflict with the 6 as the 6 has a
<NONE> for it.
RCS file: RCS/XCalc.ad,v
retrieving revision 1.1
diff -c -r1.1 XCalc.ad
*** /tmp/,RCSt1000678 Tue Jul 10 14:30:19 1990
--- XCalc.ad Tue Jul 10 14:25:11 1990
***************
*** 81,96 ****
<Key>KP_Divide:divide()\n\
<Key>KP_Tab:equal()\n\
<Key>Clear:clear()\n\
! <Key>.:decimal()\n\
! <Key>+:add()\n\
! <Key>-:subtract()\n\
! <Key>*:multiply()\n\
! <Key>/:divide()\n\
! <Key>(:leftParen()\n\
! <Key>):rightParen()\n\
! <Key>!:factorial()\n\
<Key>e:e()\n\
! <Key>^:power()\n\
<Key>p:pi()\n\
<Key>i:inverse()\n\
<Key>s:sine()\n\
--- 81,96 ----
<Key>KP_Divide:divide()\n\
<Key>KP_Tab:equal()\n\
<Key>Clear:clear()\n\
! :<Key>.:decimal()\n\
! :<Key>+:add()\n\
! :<Key>-:subtract()\n\
! :<Key>*:multiply()\n\
! :<Key>/:divide()\n\
! :<Key>(:leftParen()\n\
! :<Key>):rightParen()\n\
! :<Key>!:factorial()\n\
<Key>e:e()\n\
! :<Key>^:power()\n\
<Key>p:pi()\n\
<Key>i:inverse()\n\
<Key>s:sine()\n\
***************
*** 98,104 ****
<Key>t:tangent()\n\
<Key>d:degree()\n\
<Key>l:naturalLog()\n\
! <Key>=:equal()\n\
<Key>n:negate()\n\
<Key>r:squareRoot()\n\
<Key>space:clear()\n\
--- 98,104 ----
<Key>t:tangent()\n\
<Key>d:degree()\n\
<Key>l:naturalLog()\n\
! :<Key>=:equal()\n\
<Key>n:negate()\n\
<Key>r:squareRoot()\n\
<Key>space:clear()\n\
***************
*** 321,334 ****
<Key>KP_Subtract:subtract()\n\
<Key>KP_Decimal:decimal()\n\
<Key>KP_Divide:divide()\n\
! <Key>.:decimal()\n\
! <Key>+:add()\n\
! <Key>-:subtract()\n\
! <Key>*:multiply()\n\
! <Key>/:divide()\n\
! <Key>!:factorial()\n\
<Key>e:e()\n\
! <Key>^:power()\n\
<Key>p:pi()\n\
<Key>i:inverse()\n\
<Key>s:sine()\n\
--- 321,334 ----
<Key>KP_Subtract:subtract()\n\
<Key>KP_Decimal:decimal()\n\
<Key>KP_Divide:divide()\n\
! :<Key>.:decimal()\n\
! :<Key>+:add()\n\
! :<Key>-:subtract()\n\
! :<Key>*:multiply()\n\
! :<Key>/:divide()\n\
! :<Key>!:factorial()\n\
<Key>e:e()\n\
! :<Key>^:power()\n\
<Key>p:pi()\n\
<Key>i:inverse()\n\
<Key>s:sine()\n\