Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

I want to the Ubuntu terminal to show art like this picture:

http://1.bp.blogspot.com/-X9_7lpr3y_I/Tz5xkBHO-BI/AAAAAAAAAWo/OWF11KTnPNA/s320/msfconsole.png

How to do that? I want put my own logo using the word character. I would like to arrange it and form a logo.

Please teach me the way..

share|improve this question
    
If it is correct that OP wishes to have a custom image as background for the terminal,the answer may be here: askubuntu.com/a/225828/25656 and the current question maybe a duplicate of askubuntu.com/q/107444/25656 –  user25656 Jan 22 '13 at 6:19
    
@vasa1, He is asking about showing ASCII graphics like stuff on terminal launch. –  saji89 Jan 22 '13 at 6:24
1  
I'm not sure; there appear to be gradient effects present ... see the blue horizontal rectangles. Anyway, it's a pretty poorly worded question. I tried to edit it but gave up. –  user25656 Jan 22 '13 at 6:27
    
@vasa1, I agree taht the question is poorly worded. :) –  saji89 Jan 22 '13 at 6:37
    
possible duplicate of How to show ascii art at the top of the terminal when it's opened? –  Flimm Jan 22 '13 at 9:02

2 Answers 2

Easiest method:
Use fortune and cowsay.

  • Install fortune and cowsay:

    sudo apt-get install fortune cowsay
    
  • At the end of .bashrc file in your Home directory add the following line:

    fortune | cowsay -f tux
    

Courtesy: http://community.linuxmint.com/tutorial/view/886

Sample Output:

 _________________________________________
/ Your aims are high, and you are capable \
\ of much.                                /
 -----------------------------------------
   \
    \
        .--.
       |o_o |
       |:_/ |
      //   \ \
     (|     | )
    /'\_   _/`\
    \___)=(___/

saji@geeklap:~$ 

Another method: Get a good ASCII art from some site(or you can create on your own), create a new file in your home directory, paste the ASCII art in that file(as it is). Let us save the file as asciiart for now ( you can use any other name you like, just remember to use that name in the .bashrc file). In the .bashrc file, put the last line as:

cat acsiiart

Base idea from: http://dorkbyte.com/2012/08/05/trick-out-your-terminal-with-ascii-art/

share|improve this answer
    
thanx @saji89 ... –  kiriya19 Jan 31 '13 at 8:51
    
@kiriya19, You can mark the answer as accepted, if it helped you, so that the question will be marked solved. –  saji89 Jun 11 '13 at 8:36

In the general case, you can manipulate the terminal display using special character sequences. You can find useful lists of the special commands the terminal understands here or here. Note that these commands are not being interpreted by the shell (eg, bash), but by the terminal emulator (eg gnome-terminal, xterm, etc).

(To further complicate matters, there are different types of terminal which can be emulated. The above character sequences apply to an emulated VT100 terminal, which is probably a safe bet. These different types of terminals now emulated in software correspond to physical terminals which could be connected to Unix mainframes of lore.)

All special commands start with an escape character, after which the terminal interprets the next few characters.

To change the text colour to blue, for example

$ echo -e "\033[34mhello blue world\033[0m"

\033 is the code for the ESCAPE character, which starts the sequence. [34m sets the text attribute 34, which is foreground colour blue. The text hello blue world is then echoed as normal, except that the attributes currently used for printing have changed (to blue text), and finally the escape sequence and command [0m returns text printing to normal. (echo -e ensures the sequence \033 is interpreted as a character code and not the four characters \ 0 3 3).

Attempting to do anything complex using these commands manually will very quickly give you a headache.

The curses library provides an abstraction layer for making user interfaces on a terminal. The python binding is probably a good place to start if you want to try it out - but be warned, the library is pretty arcane and the documentation doubly so.

For the case of trying to output graphics, the correct tool is probably libcaca.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.