print_test.py

Created by mobluse

Created on June 02, 2024

531 Bytes

PrintTest shows all characters using ordinary print() in the module builtins. Press OK or EXE after each screen to see the next. You can enter a high “byte” for the Unicode. There are characters on e.g. 0x00, 0x1D, 0x22, 0x1D4.


def run():
  h=input("Unicode high byte? (0x00) ")
  if len(h)==0:
    h="0"
  h=int(eval(h))
  d=256
  chmin=h*d
  chmax=(h+9)*d # +10→out of memory
  ch=chmin
  s=" "*len("0x%04X:"%ch)
  for i in range(16):
    s+="%X"%i
  while True:
    for i in range(6):
      print()
    print(s)
    for r in range(8):
      print("0x%04X:"%ch,end="")
      for c in range(16):
        print(chr(ch),end="")
        ch+=1
      print(":%02X"%((ch-1)%256))
    if input(s)=="q": break
    if ch==chmax:
      ch=chmin
run()

During your visit to our site, NumWorks needs to install "cookies" or use other technologies to collect data about you in order to:

With the exception of Cookies essential to the operation of the site, NumWorks leaves you the choice: you can accept Cookies for audience measurement by clicking on the "Accept and continue" button, or refuse these Cookies by clicking on the "Continue without accepting" button or by continuing your browsing. You can update your choice at any time by clicking on the link "Manage my cookies" at the bottom of the page. For more information, please consult our cookies policy.