; ; keyString.sh ; ; Translating key codes to strings ; ; © 1994-1998 Straylight ; ;----- Licensing note ------------------------------------------------------- ; ; This file is part of Straylight's Sapphire library. ; ; Sapphire is free software; you can redistribute it and/or modify ; it under the terms of the GNU General Public License as published by ; the Free Software Foundation; either version 2, or (at your option) ; any later version. ; ; Sapphire is distributed in the hope that it will be useful, ; but WITHOUT ANY WARRANTY; without even the implied warranty of ; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the ; GNU General Public License for more details. ; ; You should have received a copy of the GNU General Public License ; along with Sapphire. If not, write to the Free Software Foundation, ; 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. ;----- Overview ------------------------------------------------------------- ; ; Functions provided: ; ; keyString [ :LNOT::DEF:keyString__dfn GBLL keyString__dfn ; --- keyString --- ; ; On entry: R0 == key number, from Straylight extended keymap ; R1 == 0 => return full shortcuts (for e.g. writable icons) ; 1 => return abbreviated shortcuts (for e.g. menus) ; ; On exit: CS if key number was recognised, and ; R0 == pointer to short cut string ; else CC and ; R0 corrupted ; ; Use: Translates a key number into a string suitable for ; displaying to a user, and returns a pointer to the ; translated string. IMPORT keyString ] ;----- That's all, folks ---------------------------------------------------- END