Python Forum
py.exe: printing ascii number 7
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
py.exe: printing ascii number 7
#3
You should look at this table: http://www.asciitable.com/
0x7 is BEL.

To see what's possible with ascii, you can test this tiny program:

import time
from urllib.request import urlopen


def get():
    baseurl = 'https://vt100.net/animation'
    files = [f'{baseurl}/xmas{n}.txt' for n in range(10)]
    for file in files:
        yield urlopen(file)


def draw():
    for animation in get():
        for char in animation:
            print(char.decode(errors='ignore'), end='', flush=True)
            time.sleep(0.05)


if __name__ == '__main__':
    draw()
Almost dead, but too lazy to die: https://sourceserver.info
All humans together. We don't need politicians!
Reply


Messages In This Thread
py.exe: printing ascii number 7 - by qrani - Aug-27-2018, 01:12 AM
RE: py.exe: printing ascii number 7 - by Larz60+ - Aug-27-2018, 02:49 AM
RE: py.exe: printing ascii number 7 - by DeaD_EyE - Aug-27-2018, 09:52 AM

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020