Sample Header Ad - 728x90

Unix & Linux Stack Exchange

Q&A for users of Linux, FreeBSD and other Unix-like operating systems

Latest Questions

0 votes
0 answers
103 views
Motd ssh server with ascii image with 24 bit color (truecolor)
I cannot visualise an ascii art image in 24 bit colors when I log into my server via ssh. I have created a dynamic motd for my ssh server. Specifically in the file /etc/update-motd.d/10-logo there is this command: jp2a /etc/update-motd.d/ares.jpg --height=50 --background=dark --colors --color-depth=...
I cannot visualise an ascii art image in 24 bit colors when I log into my server via ssh. I have created a dynamic motd for my ssh server. Specifically in the file /etc/update-motd.d/10-logo there is this command: jp2a /etc/update-motd.d/ares.jpg --height=50 --background=dark --colors --color-depth=4 and everything works. If on the other hand I change --color-depth=24 then I no longer see anything, just the default motd message. If I run this command with --color-depth=24 immediately after connecting via ssh I see the image. And of course I also see it if I run this command with --color-depth=24 in the client terminal. It almost seems that at the time motd is created the terminal does not support truecolor, i.e. 24 bit colours. Whereas immediately before (in the client terminal) and immediately after (in the server terminal) it does support it. Is there a possibility to display the motd image in truecolour (24 bit)?
devnull (1 rep)
Apr 25, 2025, 01:18 PM • Last activity: Apr 25, 2025, 02:01 PM
1 votes
1 answers
337 views
Euro sign fails to print with toilet
[Toilet](http://caca.zoy.org/wiki/toilet) fails to print a euro sign. Since the pound sign does print, I was expecting that the Euro would as well. For some reason it doesn’t, though. toilet -W -f georgia16 '£foo €bar' _____ __ ___ 6MMMMMb 69MM MM 6M' Yb 6M' ` MM MM _MM__ _____ _____ MM____ ___...
[Toilet](http://caca.zoy.org/wiki/toilet) fails to print a euro sign. Since the pound sign does print, I was expecting that the Euro would as well. For some reason it doesn’t, though. toilet -W -f georgia16 '£foo €bar' _____ __ ___ 6MMMMMb 69MM MM 6M' Yb 6M' ` MM MM _MM__ _____ _____ MM____ ___ ___ __ YM MMMMM 6MMMMMb 6MMMMMb MMMMMMb 6MMMMb `MM 6MM MM MM 6M' Mb 6M' Mb MM' Mb 8M' Mb MM69 " MMMMMMMMM MM MM MM MM MM MM MM ,oMM MM' MM MM MM MM MM MM MM MM ,6MM9'MM MM M9 MM MM MM MM MM MM MM MM' MM MM 69 MM YM. ,M9 YM. ,M9 MM. ,M9 MM. ,MM MM MMMMMMMMMM _MM_ YMMMMM9 YMMMMM9 _MYMMMM9 `YMMM9'Yb._MM_ I’m using [this](https://github.com/xero/figlet-fonts/blob/master/Georgi16.flf) font by [xero harrison](http://blog.xero.nu/) . The Euro sign can be found at line 1654. 128 EURO @ @ ____ @ 6MMMMb/$@ 8P YM$@ 6M Y$@ MMMMMMM/ @ MM @ MM @ MMMMM/ @ YM 6$@ 8b d9$@ YMMMM9$ @ @ @ @@ One restriction: default bash terminal on macos 10.12. bash -version GNU bash, version 3.2.57(1)-release (x86_64-apple-darwin16) Copyright (C) 2007 Free Software Foundation, Inc. Any pointers as to why and possibly a fix?
user2243670 (169 rep)
Dec 13, 2017, 01:58 PM • Last activity: Aug 29, 2022, 06:29 PM
3 votes
1 answers
2103 views
How to convert output of a terminal app to an image?
Suppose the CLI application `my_bin` produces an output in terminal which consists of colored text, Unicode symbols and emojis. How can I convert the output to a svg or an image on Ubuntu? For example, `curl "v2.wttr.in/Berlin"` output is like this in the terminal: [![output of the command][1]][1] H...
Suppose the CLI application my_bin produces an output in terminal which consists of colored text, Unicode symbols and emojis. How can I convert the output to a svg or an image on Ubuntu? For example, curl "v2.wttr.in/Berlin" output is like this in the terminal: output of the command How can I convert it to an image file (e.g. vectored image file, png, svg, etc)? **Update:** - I need a solution that doesn't actually need rendering the output of the command in a terminal window. So it should work in background without having to utilize X or Wayland to capture its view. - Tried curl "v2.wttr.in/Berlin" | pbmtext | pnmtopng > out.png This does not render colors or emojis - Tried pango-view --font='mono' -qo out.png <(curl v2.wttr.in/Berlin) It renders emojis but does not render terminal escape codes for colors.
Zeta.Investigator (1190 rep)
Jan 31, 2022, 01:01 PM • Last activity: Feb 6, 2022, 01:03 PM
2 votes
2 answers
989 views
How do I save image produced by asciiview?
When I run command asciiview image.jpg I'm able to view image in the terminal and quit browser using q key. I've tried different ways to redirect the output of the `asciiview image.jpg` to the console output (stdout) or save in the file such as `asciiview image.jpg > ascii_art.txt` or `asciiview -dr...
When I run command asciiview image.jpg I'm able to view image in the terminal and quit browser using q key. I've tried different ways to redirect the output of the asciiview image.jpg to the console output (stdout) or save in the file such as asciiview image.jpg > ascii_art.txt or asciiview -driver stdout image.jpg > ascii_art.txt but I didn't get a result as I'm expecting. In the first case, I had to manually press Ctrl+C to get a proper image in the text file, in the second case I didn't get anything meaningful that would resemble the picture. Have anyone ideas how I can save image produced by asciiview directly to file or display it in the console output without entering browser and having to press q key?
user227030
May 12, 2019, 02:23 AM • Last activity: Oct 7, 2021, 12:42 AM
7 votes
1 answers
1156 views
What is the correct way to merge two ASCII art files side by side while preserving alignment?
art_file (`cat -A` output): .::""-, .::""-.$ /:: \ /:: \$ |:: | _..--""""--.._ |:: |$ '\:.__ / .' '. \:.__ /$ ||____|.' _..---"````'---. '.||____|$ ||:. |_.' `'.||:. |$ ||:.-'` .-----. ';:. |$ ||/ .' '. \. |$ || / '-. '. \\ |. |$ ||:. _| ' \_\_\\/( \ |$ ||:.\_.-' ) || m `\.--._.-""-;$ ||:.(_ . '\ __...
art_file (cat -A output): .::""-, .::""-.$ /:: \ /:: \$ |:: | _..--""""--.._ |:: |$ '\:.__ / .' '. \:.__ /$ ||____|.' _..---"
`'---. '.||____|$
     ||:.  |_.'                `'.||:.  |$
     ||:.-'`       .-----.        ';:.  |$
     ||/         .'       '.        \.  |$
     ||         / '-.   '. \\       |.  |$
     ||:.     _| '   \_\_\\/(        \  |$
     ||:.\_.-' )     ||   m `\.--._.-""-;$
     ||:.(_ . '\ __'// m ^_/ /    '.   _.`.$
     ||:.  \__^/` _)
'-...' _ .-'.' '-.$ ||:..-'__ .' '. . ' '. `'.$ ||:(_.' .`' _. ' '-. '. . ''-._$ ||:. : '. .' '. . ' ' '.` '._$ ||:. : '. .' .::""-: .''. ' . . ' ':::''-.$ ||:. .' ..' . /:: \ '. . '. /:: \$ ||:.' .' '. |:: | _.:---""---.._' |:: |$ ||. : '\:.__ / .' -. .- '. \:.__ /$ ||: : '. . ||____|_.' .--. .--. '._||____|$ ||:'.___: '. .' ||:. | ( \/ ) ||:. |$ ||:___| \ '. : ||:. | '-. .-' ||:. |$ [[____] '. '.-._||:. | __ '..' __ ||:. |$ '. : ||:. | (__\ (\/) /__) ||:. |$ '. : ||:. | \/ ||:. |$ '-: ||:. | () ||:. |$ '._||:. |________________________||:. |$ ||:___|'-.-'-.-'-.-'-.-'-.-'-.-||:___|$ [[____] [[____]$ caption_file (cat -A output): $ $ _________ .__ $ / _____/____ _____ ______ | | ____ $ \_____ \\__ \ / \\____ \| | _/ __ \ $ / \/ __ \| Y Y \ |_> > |_\ ___/ $ /_______ (____ /__|_| / __/|____/\___ >$ \/ \/ \/|__| \/ $ ___________ __ $ \__ ___/___ ___ ____/ |_ $ | |_/ __ \\ \/ /\ __\ $ | |\ ___/ > __/\_ \ |__| $ \/ \/ $ $ $ I am trying to merge art_file with caption_file side by side. So far I have tried two methods: 1. using pr -Jmt art_file caption_file > .::""-, .::""-. > /:: \ /:: \ > |:: | _..--""""--.._ |:: | _________ .__ > '\:.__ / .' '. \:.__ / / _____/____ _____ ______ | | ____ > ||____|.' _..---"
`'---. '.||____|        \_____  \\__    \  /     \\____ \|  | _/ __ \
    >      ||:.  |_.'                `'.||:.  |        /          \/ __ \|  Y Y  \  |_> >  |_\  ___/
    >      ||:.-'`       .-----.        ';:.  |       /_______  (____  /__|_|  /   __/|____/\___  >
    >      ||/         .'       '.        \.  |                 \/     \/      \/|__|             \/
    >      ||         / '-.   '. \\       |.  |       ___________                __
    >      ||:.     _| '   \_\_\\/(        \  |       \__      ___/___ ___  ____/  |_
    >      ||:.\_.-' )     ||   m `\.--._.-""-;         |      |_/ __ \\  \/  /\   __\
    >      ||:.(_ . '\ __'// m ^_/ /    '.   _..       |        |\  ___/ >          ||:.  \__^/ _)
'-...' _ .-'.' '-. |____| \___ >__/\_ \ |__| > ||:..-'__ .' '. . ' '. `'. \/ \/ > ||:(_.' .`' _. ' '-. '. . ''-._ > ||:. : '. .' '. . ' ' '.` '._ > ||:. : '. .' .::""-: .''. ' . . ' ':::''-. > ||:. .' ..' . /:: \ '. . '. /:: \ > ||:.' .' '. |:: | _.:---""---.._' |:: | > ||. : '\:.__ / .' -. .- '. \:.__ / > ||: : '. . ||____|_.' .--. .--. '._||____| > ||:'.___: '. .' ||:. | ( \/ ) ||:. | > ||:___| \ '. : ||:. | '-. .-' ||:. | > [[____] '. '.-._||:. | __ '..' __ ||:. | > '. : ||:. | (__\ (\/) /__) ||:. | > '. : ||:. | \/ ||:. | > '-: ||:. | () ||:. | > '._||:. |________________________||:. | > ||:___|'-.-'-.-'-.-'-.-'-.-'-.-||:___| > [[____] [[____] 2. paste art_file caption_file > .::""-, .::""-. > /:: \ /:: \ > |:: | _..--""""--.._ |:: | _________ .__ > '\:.__ / .' '. \:.__ / / _____/____ _____ ______ | | ____ > ||____|.' _..---"
`'---. '.||____|        \_____  \\__  \  /     \\____ \|  | _/ __ \
>      ||:.  |_.'                `'.||:.  |        /        \/ __ \|  Y Y  \  |_> >  |_\  ___/
>      ||:.-'`       .-----.        ';:.  |       /_______  (____  /__|_|  /   __/|____/\___  >
>      ||/         .'       '.        \.  |               \/     \/      \/|__|             \/
>      ||         / '-.   '. \\       |.  |       ___________              __
>      ||:.     _| '   \_\_\\/(        \  |       \__    ___/___ ___  ____/  |_
>      ||:.\_.-' )     ||   m `\.--._.-""-;         |    |_/ __ \\  \/  /\   __\
>      ||:.(_ . '\ __'// m ^_/ /    '.   _..       |    |\  ___/ >          ||:.  \__^/ _)
'-...' _ .-'.' '-. |____| \___ >__/\_ \ |__| > ||:..-'__ .' '. . ' '. `'. \/ \/ > ||:(_.' .`' _. ' '-. '. . ''-._ > ||:. : '. .' '. . ' ' '.` '._ > ||:. : '. .' .::""-: .''. ' . . ' ':::''-. > ||:. .' ..' . /:: \ '. . '. /:: \ > ||:.' .' '. |:: | _.:---""---.._' |:: | > ||. : '\:.__ / .' -. .- '. \:.__ / > ||: : '. . ||____|_.' .--. .--. '._||____| > ||:'.___: '. .' ||:. | ( \/ ) ||:. | > ||:___| \ '. : ||:. | '-. .-' ||:. | > [[____] '. '.-._||:. | __ '..' __ ||:. | > '. : ||:. | (__\ (\/) /__) ||:. | > '. : ||:. | \/ ||:. | > '-: ||:. | () ||:. | > '._||:. |________________________||:. | > ||:___|'-.-'-.-'-.-'-.-'-.-'-.-||:___| > [[____] [[____] Both of them mess up the alignment of the second file, with paste generating a somewhat better output. So my questions are: 1. Using either paste or pr can I generate desired output? Some option(s) I am overlooking, perhaps? 2. If neither of them are the correct tools for the job, other than writing a new program, what pre-existing solution can I use?
puwlah (529 rep)
Sep 30, 2021, 05:21 AM • Last activity: Oct 1, 2021, 12:53 PM
194 votes
7 answers
103237 views
Creating diagrams in ASCII
I am looking for a program which I can use to create ASCII diagrams such these: +---------+ | | +--------------+ | NFS |--+ | | | | | +-->| CacheFS | +---------+ | +----------+ | | /dev/hda5 | | | | | +--------------+ +---------+ +-->| | | | | | |--+ | AFS |----->| FS-Cache | | | | |--+ +---------+...
I am looking for a program which I can use to create ASCII diagrams such these: +---------+ | | +--------------+ | NFS |--+ | | | | | +-->| CacheFS | +---------+ | +----------+ | | /dev/hda5 | | | | | +--------------+ +---------+ +-->| | | | | | |--+ | AFS |----->| FS-Cache | | | | |--+ +---------+ +-->| | | | | | | +--------------+ +---------+ | +----------+ | | | | | | +-->| CacheFiles | | ISOFS |--+ | /var/cache | | | +--------------+ +---------+ It should preferably be a package available in Debian . The wonderful diagram displayed above is taken from the Linux kernel documentation. I cannot believe they were created by hand. There must be some tool to create them.
Martin Vegter (586 rep)
Apr 26, 2014, 11:52 AM • Last activity: Aug 21, 2021, 05:44 PM
4 votes
3 answers
6037 views
Is it possible to color the output of `aafire`?
The program seems cool, but giving it a red color really makes it look like my computer is on fire. I think using grep or similar piping command can do the trick, but I see that it prints ASCII escape codes for colors and removes the special formatting of the output that makes it look like fire.
The program seems cool, but giving it a red color really makes it look like my computer is on fire. I think using grep or similar piping command can do the trick, but I see that it prints ASCII escape codes for colors and removes the special formatting of the output that makes it look like fire.
TerminalBasher (61 rep)
Jul 14, 2017, 02:39 AM • Last activity: Mar 14, 2020, 08:02 AM
1 votes
0 answers
519 views
ASCII screensaver application for terminal
Does anybody know of a terminal application that acts as a sort of screen saver and reads from a text file after inactivity/a command is run and displays it on the screen? I don’t use my machine directly much, and usually SSH into it so I’d like it to look nice in my room with some ASCII art rather...
Does anybody know of a terminal application that acts as a sort of screen saver and reads from a text file after inactivity/a command is run and displays it on the screen? I don’t use my machine directly much, and usually SSH into it so I’d like it to look nice in my room with some ASCII art rather than just sitting there looking bland. There’s a bunch here but they don’t seem to be very customisable and I’d like to put my own files on the screen.
Architect (173 rep)
Jan 17, 2020, 12:35 AM
5 votes
5 answers
10495 views
How to draw a continuous line in terminal?
I've been searching for this for a while and didn't get a satisfactory answer for it. I've taken this screenshot from the output of Gnu/Linux's `tree` command. [![enter image description here][1]][1] [1]: https://i.sstatic.net/1Am7R.png I want to know how to draw or print lines like these, I've trie...
I've been searching for this for a while and didn't get a satisfactory answer for it. I've taken this screenshot from the output of Gnu/Linux's tree command. enter image description here I want to know how to draw or print lines like these, I've tried reading the source code of the tree program but didn't understand anything.
Mahmoud Farouq (161 rep)
Dec 31, 2019, 03:32 PM • Last activity: Jan 1, 2020, 08:47 PM
6 votes
2 answers
35904 views
How do I add ASCII art to my Bash?
I see other people doing this, occasionally. They'll add something like the following to the start of their terminal, sort of a welcome screen: ____ _____ _ _ _____ __ __ _ _ __ _ _ ____ ____ _____ ____ __ __ _ _ __ ___ __ __ __ ____ ___ ( _ \( _ ) ( \/ )( _ )( )( ) ( \/\/ ) /__\ ( \( )(_ _) (_ _)(...
I see other people doing this, occasionally. They'll add something like the following to the start of their terminal, sort of a welcome screen: ____ _____ _ _ _____ __ __ _ _ __ _ _ ____ ____ _____ ____ __ __ _ _ __ ___ __ __ __ ____ ___ ( _ \( _ ) ( \/ )( _ )( )( ) ( \/\/ ) /__\ ( \( )(_ _) (_ _)( _ ) ( _ \( ) /__\ ( \/ ) /__\ / __) /__\ ( \/ )( ___)(__ ) )(_) ))(_)( \ / )(_)( )(__)( ) ( /(__)\ ) ( )( )( )(_)( )___/ )(__ /(__)\ \ / /(__)\ ( (_-. /(__)\ ) ( )__) (_/ (____/(_____) (__) (_____)(______) (__/\__)(__)(__)(_)\_) (__) (__) (_____) (__) (____)(__)(__)(__) (__)(__) \___/(__)(__)(_/\/\_)(____) (_) It happens when the shell starts, and I would like to have it happen for me *when the shell starts, too*. I am pretty proficient with vim for text editing, so I think I could figure out a way to do it. If vim fails, I can use something like the following, but how do I make it come up not garbled when I start my new shell? Please note that this question is *not just about ASCII art*, but is also about how to successfully add it to my bash, and about possible escapes required for the bash shell to get it to work properly. https://unix.stackexchange.com/questions/126630/creating-diagrams-in-ascii
Nathan Basanese (449 rep)
Jun 9, 2015, 06:24 PM • Last activity: Mar 12, 2019, 01:03 PM
3 votes
2 answers
905 views
What is the meaning behind FreeBSD bootloader ASCII art daemon letters?
FreeBSD bootloader includes an ASCII art daemon. Is there any meaning behind the letters "s, y, o", or is just a random choice? [![enter image description here][1]][1] [1]: https://i.sstatic.net/Xpp3T.png
FreeBSD bootloader includes an ASCII art daemon. Is there any meaning behind the letters "s, y, o", or is just a random choice? enter image description here
quaeched (151 rep)
Feb 7, 2018, 06:05 PM • Last activity: Oct 11, 2018, 03:18 PM
7 votes
4 answers
10771 views
ASCII art of letters, with the letters using their own characters
If I execute banner ABC I get: # ###### ##### # # # # # # # # # # # # # ###### # ####### # # # # # # # # # # # ###### ##### and another program, `figlet`, has more elaborate fonts and mechanisms for joining adjacent characters, e.g.: _ ____ ____ / \ | __ ) / ___| / _ \ | _ \| | / ___ \| |_) | |___ /...
If I execute banner ABC I get: # ###### ##### # # # # # # # # # # # # # ###### # ####### # # # # # # # # # # # ###### ##### and another program, figlet, has more elaborate fonts and mechanisms for joining adjacent characters, e.g.: _ ____ ____ / \ | __ ) / ___| / _ \ | _ \| | / ___ \| |_) | |___ /_/ \_\____/ \____| but what if I want to have each letter printed using just that letter, i.e.: A BBBBBB CCCCC A A B B C C A A B B C A A BBBBBB C AAAAAAA B B C A A B B C C A A BBBBBB CCCCC or better yet, something more compact, like: A BBBB CCCC A A B B C A A BBBB C AAAAA B B C A A BBBB CCCC ? What's the simplest way to make that happen?
einpoklum (10753 rep)
Apr 4, 2017, 08:44 PM • Last activity: Apr 5, 2017, 01:06 PM
2 votes
0 answers
686 views
Generating 'ASCII-art' banners with arrows
I recently discovered `figlet` which generates ASCII-art banners. Joy! ... but, alas, I want a banner with an arrow on it. Now... $ figlet unicode → arrow _ _ //\ _ _ _ __ (_) ___ ___ __| | ___ |/_\| __ _ _ __ _ __ _____ __ | | | | '_ \| |/ __/ _ \ / _` |/ _ \ / _` | / _` | '__| '__/ _ \ \ /\ / / |...
I recently discovered figlet which generates ASCII-art banners. Joy! ... but, alas, I want a banner with an arrow on it. Now... $ figlet unicode → arrow _ _ //\ _ _ _ __ (_) ___ ___ __| | ___ |/_\| __ _ _ __ _ __ _____ __ | | | | '_ \| |/ __/ _ \ / _ |/ _ \ / _ | / _` | '__| '__/ _ \ \ /\ / / | |_| | | | | | (_| (_) | (_| | __/ | (_| | | (_| | | | | | (_) \ V V / \__,_|_| |_|_|\___\___/ \__,_|\___| \__,_| \__,_|_| |_| \___/ \_/\_/ isn't what I want, and $ figlet -- unicode "->" arrow _ _ __ | |___ _____ ___| |__ __ _ _ __ \ \ __ _ _ __ _ __ _____ __ | __\ \ /\ / / _ \ _____ / __| '_ \ / _ | '__| _____\ \ / _ | '__| '__/ _ \ \ /\ / / | |_ \ V V / (_) |_____| (__| | | | (_| | | |_____/ / | (_| | | | | | (_) \ V V / \__| \_/\_/ \___/ \___|_| |_|\__,_|_| /_/ \__,_|_| |_| \___/ \_/\_/ Doesn't quite cut it. I went to the man page, which mentioned fonts corresponding to different charsets - but those seem to add support for different languages, not arrows. What should I do?
einpoklum (10753 rep)
Feb 29, 2016, 07:34 PM
1 votes
1 answers
1619 views
Bash detect ascii art
For bash script, is there a easy way to detect if a text contains ascii art? An example of ascii art: ![enter image description here][1] [1]: https://i.sstatic.net/UIqvq.png
For bash script, is there a easy way to detect if a text contains ascii art? An example of ascii art: enter image description here
SnowWolf (229 rep)
Apr 9, 2015, 02:38 AM • Last activity: Apr 9, 2015, 07:11 AM
Showing page 1 of 14 total questions