File tree Expand file tree Collapse file tree 2 files changed +8
-5
lines changed Expand file tree Collapse file tree 2 files changed +8
-5
lines changed Original file line number Diff line number Diff line change 11
11
import os
12
12
import sys
13
13
import time
14
- from kano_init .terminal import typewriter_echo , clear_screen
14
+ import subprocess
15
+
15
16
from kano_init .ascii_art .rabbit import rabbit
16
17
from kano_init .ascii_art .matrix import matrix
17
18
from kano .utils import get_user_unsudoed
@@ -26,16 +27,16 @@ if __name__ == '__main__' and __package__ is None:
26
27
def main ():
27
28
# Play matrix animation
28
29
matrix (2 , False )
29
- clear_screen ( )
30
+ subprocess . call ([ 'clear' ] )
30
31
# Show text
31
32
msg = "Nicely done {}, you found me!" .format (get_user_unsudoed ())
32
- typewriter_echo ( msg , trailing_linebreaks = 2 )
33
+ subprocess . call ([ 'typewriter_echo' , msg , '0' , '3' ] )
33
34
time .sleep (2 )
34
35
# Play rabbit animation
35
36
rabbit (1 , 'left-to-right' )
36
37
# Unlock the easter egg badge
37
38
increment_app_state_variable_with_dialog ('easter_egg' , 'starts' , 1 )
38
- clear_screen ( )
39
+ subprocess . call ([ 'clear' ] )
39
40
40
41
if __name__ == '__main__' :
41
42
main ()
Original file line number Diff line number Diff line change 9
9
10
10
import os
11
11
import sys
12
+ import subprocess
13
+
12
14
from kano .utils import get_user_unsudoed
13
15
from kano .network import is_internet
14
16
from kano .logging import logger
@@ -38,5 +40,5 @@ if __name__ == '__main__':
38
40
logger .info ('use-the-force executed with no internet' )
39
41
# Show text
40
42
msg = "\n \n Internet you must have my young padawan {}." .format (get_user_unsudoed ())
41
- typewriter_echo ( msg , trailing_linebreaks = 2 )
43
+ subprocess . call ([ 'typewriter_echo' , msg , '0' , '3' ] )
42
44
sys .exit (1 )
You can’t perform that action at this time.
0 commit comments