Search

Create a welcome message on the linux terminal using python

Use the following code to create a welcome message,"Have a good day" on the linux terminal using python and ncurses library.



Save the above file, let us say as hagd.py. and execute it in the linux terminal using the command.



You should see the message have a good day appearing on the screen as shown below.



You can call this as a part of .bashrc to display the message every time terminal is launched

No comments:

Post a Comment