home *** CD-ROM | disk | FTP | other *** search
/ PSION CD 2 / PsionCDVol2.iso / Programs / 283 / Shell5SourceCode.sis / charset (.txt) < prev    next >
Encoding:
EPOC OPL Source  |  1998-08-30  |  1.5 KB  |  48 lines

  1.  
  2.  
  3. Rem   Charset, an addon command for Shell5
  4. Rem   Display the character set
  5. Rem
  6. Rem   Copyright (C) 1998  Nick Murray
  7. Rem
  8. Rem   This program is free software; you can redistribute it and/or
  9. Rem   modify it under the terms of the GNU General Public License
  10. Rem   as published by the Free Software Foundation; either version 2
  11. Rem   of the License, or (at your option) any later version.
  12. Rem
  13. Rem   This program is distributed in the hope that it will be useful,
  14. Rem   but WITHOUT ANY WARRANTY; without even the implied warranty of
  15. Rem   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
  16. Rem   See the GNU General Public License for more details.
  17. Rem
  18. Rem   You should have received a copy of the GNU General Public License
  19. Rem   along with this program; if not, write to the Free Software Foundation,
  20. Rem   Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
  21. Rem
  22. PROC charset%:(n%)
  23. LOCAL c%,r%,a%(6)
  24.     ONERR ErrTrap::
  25.     a%(1)=ScrInfo%(1):a%(2)=ScrInfo%(2)
  26.     a%(3)=a%(1)+ScrInfo%(3):a%(4)=a%(2)+ScrInfo%(4)
  27.     r%=2
  28.     PRINT "     0 1 2 3 4 5 6 7 8 9 A B C D E F"
  29.     WHILE r%<16
  30.         c%=0
  31.         PRINT NUM$(r%*16,-3),
  32.         WHILE c%<16
  33.             IOW(-2,8,a%(),a%())
  34.             AT c%*2+6,a%(6)+1 :PRINT CHR$(r%*16+c%),
  35.             c%=c%+1
  36.         ENDWH
  37.         PRINT
  38.         r%=r%+1
  39.     ENDWH
  40.     RETURN
  41. ErrTrap::
  42.     ONERR off
  43.     PRINT err$:(ERR)
  44.     RETURN ERR
  45. ENDP
  46.  
  47.  
  48.