Debian Codegraph @

tests/test_controls.py

raw symbols SCIP
1 #!/usr/bin/env python
2 # -*- coding: utf-8 -*-
3
4 import time
5 from colored.controls import Controls
6
7
8 def main():
9
10 moves: dict = {
11 'down': 10,
12 'up': 7,
13 'right': 20,
14 'left': 5,
15 'previous': 10,
16 'horizontal': 5,
17 'erase_display': 2,
18 'erase_line': 5,
19 'scroll_up': 3,
20 'scroll_down': 10
21 }
22
23 control = Controls()
24 for move, row in moves.items():
25 print(f'{move} {control.nav(move, row)}')
26 time.sleep(1)
27
28 print(f"position 4, 5 {control.nav('position', 4, 5)}")
29
30
31 if __name__ == '__main__':
32 main()