mirror of
https://github.com/hykilpikonna/hyfetch.git
synced 2026-10-02 04:56:39 -05:00
[O] Custom ^C message
This commit is contained in:
@@ -1,4 +1,9 @@
|
||||
from hyfetch import main
|
||||
from . import main
|
||||
from .color_util import printc
|
||||
|
||||
if __name__ == '__main__':
|
||||
main.run()
|
||||
try:
|
||||
main.run()
|
||||
except KeyboardInterrupt:
|
||||
printc('&cThe program is interrupted by ^C, exiting...')
|
||||
exit(0)
|
||||
Reference in New Issue
Block a user