Skip to content

Commit 42f0b92

Browse files
authored
Merge pull request #186 from KanoComputing/overscan-eastereggs-fix
Replaced typewriter to avoid auto overscan from kano-init
2 parents 0c9b52a + 54dc7e6 commit 42f0b92

File tree

2 files changed

+8
-5
lines changed

2 files changed

+8
-5
lines changed

bin/open-me

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,8 @@
1111
import os
1212
import sys
1313
import time
14-
from kano_init.terminal import typewriter_echo, clear_screen
14+
import subprocess
15+
1516
from kano_init.ascii_art.rabbit import rabbit
1617
from kano_init.ascii_art.matrix import matrix
1718
from kano.utils import get_user_unsudoed
@@ -26,16 +27,16 @@ if __name__ == '__main__' and __package__ is None:
2627
def main():
2728
# Play matrix animation
2829
matrix(2, False)
29-
clear_screen()
30+
subprocess.call(['clear'])
3031
# Show text
3132
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'])
3334
time.sleep(2)
3435
# Play rabbit animation
3536
rabbit(1, 'left-to-right')
3637
# Unlock the easter egg badge
3738
increment_app_state_variable_with_dialog('easter_egg', 'starts', 1)
38-
clear_screen()
39+
subprocess.call(['clear'])
3940

4041
if __name__ == '__main__':
4142
main()

bin/use-the-force

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,8 @@
99

1010
import os
1111
import sys
12+
import subprocess
13+
1214
from kano.utils import get_user_unsudoed
1315
from kano.network import is_internet
1416
from kano.logging import logger
@@ -38,5 +40,5 @@ if __name__ == '__main__':
3840
logger.info('use-the-force executed with no internet')
3941
# Show text
4042
msg = "\n\nInternet 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'])
4244
sys.exit(1)

0 commit comments

Comments
 (0)