Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/usr/bin/env python3
- from asciimatics.effects import Cycle, Stars
- from asciimatics.renderers import FigletText
- from asciimatics.scene import Scene
- from asciimatics.screen import Screen
- def demo(screen):
- effects = [
- Cycle(
- screen,
- FigletText("A tour of VTERM", font='big'),
- int(screen.height / 2 - 8)),
- # Cycle(
- # screen,
- # FigletText("VTERM", font='big'),
- # int(screen.height / 2)),
- Cycle(
- screen,
- FigletText("A fast fully-featured", font='small'),
- int(screen.height / 2)),
- Cycle(
- screen,
- FigletText("terminal emulator", font='small'),
- int(screen.height / 2 + 5)),
- Stars(screen, 200)
- ]
- screen.play([Scene(effects, 500)])
- Screen.wrapper(demo)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement