home *** CD-ROM | disk | FTP | other *** search
EPOC OPL Source | 1998-08-30 | 1.5 KB | 48 lines |
-
-
- Rem Charset, an addon command for Shell5
- Rem Display the character set
- Rem
- Rem Copyright (C) 1998 Nick Murray
- Rem
- Rem This program is free software; you can redistribute it and/or
- Rem modify it under the terms of the GNU General Public License
- Rem as published by the Free Software Foundation; either version 2
- Rem of the License, or (at your option) any later version.
- Rem
- Rem This program is distributed in the hope that it will be useful,
- Rem but WITHOUT ANY WARRANTY; without even the implied warranty of
- Rem MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
- Rem See the GNU General Public License for more details.
- Rem
- Rem You should have received a copy of the GNU General Public License
- Rem along with this program; if not, write to the Free Software Foundation,
- Rem Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
- Rem
- PROC charset%:(n%)
- LOCAL c%,r%,a%(6)
- ONERR ErrTrap::
- a%(1)=ScrInfo%(1):a%(2)=ScrInfo%(2)
- a%(3)=a%(1)+ScrInfo%(3):a%(4)=a%(2)+ScrInfo%(4)
- r%=2
- PRINT " 0 1 2 3 4 5 6 7 8 9 A B C D E F"
- WHILE r%<16
- c%=0
- PRINT NUM$(r%*16,-3),
- WHILE c%<16
- IOW(-2,8,a%(),a%())
- AT c%*2+6,a%(6)+1 :PRINT CHR$(r%*16+c%),
- c%=c%+1
- ENDWH
- PRINT
- r%=r%+1
- ENDWH
- RETURN
- ErrTrap::
- ONERR off
- PRINT err$:(ERR)
- RETURN ERR
- ENDP
-
-
-