home *** CD-ROM | disk | FTP | other *** search
/ PSION CD 2 / PsionCDVol2.iso / Programs / 283 / Shell5SourceCode.sis / charset.txt < prev    next >
Encoding:
Text File  |  1998-08-30  |  1.3 KB  |  43 lines

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