Advertisement
Guest User

Untitled

a guest
Nov 29th, 2020
519
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.85 KB | None | 0 0
  1. #!/usr/bin/env python3
  2.  
  3. from asciimatics.effects import Cycle, Stars
  4. from asciimatics.renderers import FigletText
  5. from asciimatics.scene import Scene
  6. from asciimatics.screen import Screen
  7.  
  8. def demo(screen):
  9.     effects = [
  10.         Cycle(
  11.             screen,
  12.             FigletText("A tour of VTERM", font='big'),
  13.             int(screen.height / 2 - 8)),
  14.         # Cycle(
  15.         #     screen,
  16.         #     FigletText("VTERM", font='big'),
  17.         #     int(screen.height / 2)),
  18.         Cycle(
  19.             screen,
  20.             FigletText("A fast fully-featured", font='small'),
  21.             int(screen.height / 2)),
  22.         Cycle(
  23.             screen,
  24.             FigletText("terminal emulator", font='small'),
  25.             int(screen.height / 2 + 5)),
  26.         Stars(screen, 200)
  27.     ]
  28.     screen.play([Scene(effects, 500)])
  29.  
  30. Screen.wrapper(demo)
  31.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement