Key Code To Letter
Outputs a letter corresponding to a keypress.
None
Ans - the letter as a string
TI-83/84/+/SE
Weregoose
URL: Weregoosepage
:Repeat Ans>34 and min(Ans≠{44,45,105
:getKey
:End
:sub("ABC**DEFGHIJKLMNOPQRSTUVWXYZθ'* :?",Ans-5int(.1Ans+4),1
The Repeat loop makes sure good input is passed.
The last line takes from the string the letter according to the keycode.
Error Conditions
None.
Related Routines
.