-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathConsoleColor.htm
More file actions
1431 lines (1428 loc) · 133 KB
/
Copy pathConsoleColor.htm
File metadata and controls
1431 lines (1428 loc) · 133 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<!--
.s5ssSs. .s5SSSs. .s s. s. .s5SSSs. s. .s5SSSs. .s5SSSs.
SS SS. SS. SS. SS. SS. SS. SS. SS.
sS SS S%S sS `:; sS S%S S%S sS S%S S%S sS `:; sS `:;
SS :; S%S SSSs. SS S%S S%S SS .sSSS S%S SSSs. `:;;;;.
SS S%S SS SS S%S S%S SS S%S S%S SS ;;.
SS `:; SS SS `:; `:; SS `:; `:; SS `:;
SS ;,. SS ;,. SS ;,. ;,. SS ;,. ;,. SS ;,. .,; ;,.
:; ;:' `:;;;;;:' `:;;:'`::' `:;;;;;:' ;:' `:;;;;;:' `:;;;;;:'
-->
<html xmlns="http://www.w3.org/1999/xhtml" itemscope="" itemtype="http://schema.org/WebPage"><head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<meta name="robots" content="index, follow">
<meta http-equiv="imagetoolbar" content="no">
<title>Fun On The Terminal Part 1 - Get ASCII-FIED</title>
<link href="ConsoleColor_fichiers/style.css" rel="stylesheet" type="text/css">
<!--share script-->
<script type="text/javascript" id="async-buttons" src="ConsoleColor_fichiers/async-buttons.js"></script><script type="text/javascript">var switchTo5x=true;</script>
<script type="text/javascript" src="ConsoleColor_fichiers/buttons.js"></script>
<script type="text/javascript">stLight.options({
publisher: "f0328d25-d3c3-40d8-bbb4-ab6163f85a16", doNotHash: true, doNotCopy: true, hashAddressBar: false, onhover: false });</script>
<!--end share script-->
<link rel="stylesheet" type="text/css" href="ConsoleColor_fichiers/buttons.css"><iframe id="stSegmentFrame" name="stSegmentFrame" scrolling="no" sandbox="allow-scripts allow-same-origin" style="display:none;" frameborder="0" width="0px" height="0px"></iframe></head><body>
<b>MEWBIES@: <a href="https://www.facebook.com/Mewbies" target="_blank">Facebook</a> <a href="https://twitter.com/mewbies" target="_blank">Twitter</a> <a href="https://plus.google.com/+Mewbies" target="_blank">G+</a> <a href="https://www.youtube.com/mewbiesdotcom" target="_blank">YouTube</a> <a href="http://mewbies.deviantart.com/" target="_blank">DeviantArt</a></b> <b><a href="http://mewbies.com/mewbies_posting/index.php" target="_blank">Forum</a> <a href="http://www.yourworldoftext.com/mewbies" target="_blank">Wall</a></b>
<table border="0"><tbody><tr>
<td> <b><span style="font-size:13px">SHARE:</span></b></td>
<td><span class="st_facebook_custom" st_processed="yes"></span></td>
<td><span class="st_twitter_custom" st_via="Mewbies" st_msg="#mewbies" st_processed="yes"></span></td>
<td><span class="st_googleplus_custom" st_processed="yes"></span></td>
<td><span class="st_sharethis_custom" st_via="Mewbies" st_msg="#mewbies" st_processed="yes"></span></td>
</tr></tbody></table><pre> ▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄
██ ██
█▌ - <b>FUN ON THE TERMINAL PART 1</b> - █▌
█▌ <b>GET ASCII-FIED</b> █▌
█ ▐▌
█ <b>NOTES:</b> ▐▌
█ <b>1.)</b> If you aren't familiar with command lines ending with: <b>\</b> Read <a href="http://www.mewbies.com/comand_line_ending_with_backslash_linux.htm" target="_blank">HERE</a>. ▐▌
█ Do <b>NOT</b> add a space at the end of the <b>\</b> or the cmd won't work. ▐▌
█ <b>2.)</b> Not in color when the examples shown are in color?: Read <a href="http://www.mewbies.com/linux_console_terminal_not_in_color.htm" target="_blank">HERE</a>. ▐▌
█ ▐▌
█ ___________..___________ ▐▌
█ ▐▌
█ <b><a href="#cowsay">COWSAY</a></b> ▐▌
█ <b><a href="#cowsayrandom">COWSAY - RANDOM CREATURE EACH TIME</a></b> ▐▌
█ <b><a href="http://www.mewbies.com/cowsay_errors_get_entire_collection_of_cows_and_more.htm" target="_blank">COWSAY - DO YOU HAVE ALL 55 COWSAY CREATURES AND MORE?</a></b> ▐▌
█ ▐▌
█ <b><a href="#toilet">TOILET - MANIPULATE TEXT TO ASCII ART</a></b> ▐▌
█ ▐▌
█ <b><a href="#figlet">FIGLET (LINUX, MAC, ETC)</a></b> ▐▌
█ <b><a href="#figlet_eggdrop">FIGLET FOR EGGDROP</a></b> ▐▌
█ <b><a href="#fctcombo">COMBO - FIGLET WITH COWSAY & TOILET</a></b> ▐▌
█ ▐▌
█ <b><a href="#fortune">FORTUNE</a></b> ▐▌
█ <b><a href="#fortunevari">FORTUNE INFO AND VARIATIONS</a></b> ▐▌
█ <b><a href="#fortunedb">FORTUNE - HOW TO MAKE YOUR OWN FORTUNE DATABASE FILES</a></b> ▐▌
█ <b><a href="#cftcombo">COMBOS - FORTUNE, COWSAY & TOILET</a></b> ▐▌
█ ▐▌
█ <b><a href="#boxes">BOXES (LINUX & MAC)</a></b> ▐▌
█ <b><a href="#boxescombo">COMBOS - BOXES, COWSAY, FIGLET, FORTUNE (LINUX & MAC)</a></b> ▐▌
█ <b><a href="#boxesvim">USING BOXES IN A TEXT EDITOR (LINUX & MAC)</a></b> ▐▌
█ ▐▌
█ <b><a href="#ditaa">DITAA - CONVERT ASCII DIAGRAMS INTO IMAGES (ALL OSes)</a></b> ▐▌
█ <b><a href="#ditaaboxes">USE BOXES TO HELP CREATE DITAA'S DIAGRAMS</a></b> ▐▌
█ <b><a href="#ditaaeps">DITTA EPS ADDON</a></b> ▐▌
█ ▐▌
█ <b><a href="#linux_logo">LINUXLOGO - DISPLAY OS LOGO IN ANSI OR ASCII WITH SYSTEM INFORMATION</a></b> ▐▌
█ ▐▌
█ <b><a href="#clock">DISPLAY A CLOCK ON YOUR TERMINAL (LINUX)</a></b> ▐▌
█ ▐▌
█ ___________..___________ ▐▌
█ ▐▌
█ <b><a name="cowsay"></a>COWSAY:</b> ▐▌
█ ``````` ^__^ ▐▌
█ To get you in the moo-d lets start with <a href="http://web.archive.org/web/20120225123719/http://www.nog.net/%7Etony/warez/cowsay.shtml" target="_blank">cowsay</a>. ( oo ) ▐▌
█ ______________ (____) ▐▌
█ < mewbies rule > U ▐▌
█ -------------- ▐▌
█ \ ,__, ▐▌
█ \ (oo)____ ▐▌
█ (__) )\ ▐▌
█ ||--|| * ▐▌
█ ▐▌
█ So cute. I use cowsay on my MOTD (message-of-the-day), view <a href="http://www.mewbies.com/how_to_customize_your_console_login_message_tutorial.htm" target="_blank">HERE</a>. ▐▌
█ I'm also going to use cowsay many times over here in the examples. ▐▌
█ Debian: Install cowsay: ▐▌
█ <b>su</b> ▐▌
█ <b>apt-get install cowsay</b> ▐▌
█ (fyi it will install it here: /usr/games/) ▐▌
█ <b>exit</b> ▐▌
█ There are many variations of cowsay - from changing the eyes to changing ▐▌
█ the cow to another creature. ▐▌
█ Some examples of the variations (switches): ▐▌
█ -f is to select a creature other than the default cow (-f meow) ▐▌
█ -d is tongue sticking out with eyes X'd out ▐▌
█ -e is winking, -e used with for example ^^ (-e ^^) the eyes are ^^ ▐▌
█ Try these: ▐▌
█ <b>cowsay mewbies rule</b> ▐▌
█ <b>cowsay -f meow mewb</b> ▐▌
█ <b>cowsay -d feed me</b> ▐▌
█ <b>cowsay -e ^^ love me</b> ▐▌
█ <b>cowthink -f www thirsty?</b> ▐▌
█ <b>cowsay -T D -f three-eyes -e @ "$USER is my friend"</b> ▐▌
█ R rated: ▐▌
█ <b>cowthink -f head-in you freak</b> ▐▌
█ ▐▌
█ Another cowsay idea: ▐▌
█ <b>cowsay "Hello $USER. Server's time & uptime is $(uptime)"</b> ▐▌
█ __________________________________________ ▐▌
█ / Hello mewbies. Server's time & uptime is \ ▐▌
█ | 09:29:33 up 260 days, 41 min, 1 user, | ▐▌
█ \ load average: 0.01, 0.04, 0.00 / ▐▌
█ ------------------------------------------ ▐▌
█ \ ^__^ ▐▌
█ \ (oo)\_______ ▐▌
█ (__)\ )\/\ ▐▌
█ ||----w | ▐▌
█ || || ▐▌
█ ▐▌
█ If you don't want wrapped the output that the cow will say/think then use ▐▌
█ the -n switch. For example: ▐▌
█ <b>ls | cowsay</b> ▐▌
█ <b>ls | cowsay -n</b> ▐▌
█ ▐▌
█ To view more variables for cow's tongue, eyes, position, etc.: ▐▌
█ <b>man cowsay</b> ▐▌
█ To leave the man window type: <b>q</b> ▐▌
█ Or for a simple list of switches: ▐▌
█ <b>cowsay -h</b> ▐▌
█ ▐▌
█ <b>COWSAY ANOTHER USER THAT IS LOGGED IN (you'll need root):</b> ▐▌
█ To see who is logged in: ▐▌
█ <b>who</b> ▐▌
█ reply will be something like: ▐▌
█ me pts/0 2009-07-23 10:19 (123.456.789) ▐▌
█ user pts/1 2009-07-23 10:55 (123.456.789) ▐▌
█ Then using their 'pts' number do this: ▐▌
█ <b>su</b> ▐▌
█ <b>/usr/games/cowsay -f apt should you be here?>/dev/pts/1</b> ▐▌
█ <b>exit</b> ▐▌
█ ▐▌
█ <b>KEEP COWSAY ON TOP:</b> ▐▌
█ If you want to keep cowsay on top of terminal, run for example: ▐▌
█ clear; <b>/bin/echo -e '\033[10;70r' ; cowsay Reminder! 3:00 eat</b> ▐▌
█ Turn it off: <b>/bin/echo -e '\033[0;0r'</b> ▐▌
█ Adjust '10' for cowsay rows (lines) and 70 is your work space. ▐▌
█ ▐▌
█ <b><a name="cowsayrandom"></a>COWSAY - RANDOM CREATURE EACH TIME:</b> ▐▌
█ ``````````````````````````````````` ▐▌
█ Using shuf (shuffle) have a random cowsay creature each time: ▐▌
█ <b>cowsay -f $(ls /usr/share/cowsay/cows/ | shuf -n1) "Hello $USER"</b> ▐▌
█ ▐▌
█ <b><a href="http://www.mewbies.com/cowsay_errors_get_entire_collection_of_cows_and_more.htm" target="_blank"></a>DO YOU HAVE ALL 55 COWSAY CREATURES AND MORE?:</b> ▐▌
█ `````````````````````````````````````````````` ▐▌
█ Here is the list of the *55 different creature files to choose from (total ▐▌
█ 55 creatures if you follow '<b><a href="http://www.mewbies.com/cowsay_errors_get_entire_collection_of_cows_and_more.htm" target="_blank">HERE</a></b>') replace the creature with one below. ▐▌
█ ▐▌
█ Example: <b>cowsay -f beavis.zen mewbies</b> ▐▌
█ (you don't need to type in the file extension '.cow') ▐▌
█ apt.cow <b>**</b>gnu.cow <b>*</b>small.cow ▐▌
█ beavis.zen.cow head-in.cow <b>**</b>snowman.cow ▐▌
█ bong.cow hellokitty.cow <b>*</b>sodomized.cow ▐▌
█ bud-frogs.cow kiss.cow sodomized-sheep.cow ▐▌
█ bunny.cow kitty.cow stegosaurus.cow ▐▌
█ <b>**</b>calvin.cow koala.cow stimpy.cow ▐▌
█ cheese.cow kosh.cow <b>*</b>supermilker.cow ▐▌
█ <b>**</b>cock.cow luke-koala.cow <b>*</b>surgery.cow ▐▌
█ cower.cow mech-and-cow.cow <b>**</b>suse.cow ▐▌
█ daemon.cow meow.cow <b>*</b>telebears.cow ▐▌
█ default.cow milk.cow three-eyes.cow ▐▌
█ dragon-and-cow.cow moofasa.cow turkey.cow ▐▌
█ dragon.cow moose.cow turtle.cow ▐▌
█ duck.cow mutilated.cow tux.cow ▐▌
█ elephant.cow ren.cow <b>*</b>udder.cow ▐▌
█ elephant-in-snake.cow <b>*</b>satanic.cow vader.cow ▐▌
█ eyes.cow sheep.cow vader-koala.cow ▐▌
█ flaming-sheep.cow skeleton.cow www.cow ▐▌
█ ghostbusters.cow ▐▌
█ ▐▌
█ To easily preview every creature on the list above click <a href="http://www.mewbies.com/geek_fun_files/cowsay/cowsay_creatures.txt" target="_blank">HERE</a>. ▐▌
█ Or run this cmd to preview every creature you have installed: ▐▌
█ <b>for cowsay in `ls -1 /usr/share/cowsay/cows | grep .cow | cut -d . -f 1`; \</b>▐▌
█ <b>do echo; cowsay -f $cowsay Me is "$cowsay"; done >> cowsay_creatures.txt</b> ▐▌
█ Then view the file: ▐▌
█ <b>less cowsay_creatures.txt</b> ▐▌
█ Press your enter key or arrow keys to scroll. ▐▌
█ To quit less: <b>q</b> ▐▌
█ ▐▌
█ ▐▌
█ P.S. Inspired by cowsay is a desktop graphical '<a href="http://www.doof.me.uk/xcowsay/" target="_blank">xcowsay</a>' for BSD, Linux ▐▌
█ and Mac, no Win v :(. ▐▌
<img alt="xcowsay" src="ConsoleColor_fichiers/xcowsay_cow_small.png" border="0" width="237" height="161">
█ Just short notes for xcowsay since it is for GUI: ▐▌
█ <b>apt-get update</b> ▐▌
█ <b>apt-get install xcowsay</b> ▐▌
█ <b>exit</b> ▐▌
█ Test it: ▐▌
█ <b>xcowsay Moo</b> ▐▌
█ Ubuntu - if that doesn't work for you, try this install script <a href="http://ubuntuforums.org/showthread.php?t=1682417" target="_blank">HERE</a> by ▐▌
█ clockworkpc. ▐▌
█ ▐▌
█ ___________..___________ ▐▌
█ ▐▌
█ <b><a name="toilet"></a>TOILET - MANIPULATE TEXT TO ASCII ART:</b> ▐▌
█ `````````````````````````````````````` ▐▌
█ <a href="http://caca.zoy.org/wiki/toilet" target="_blank">TOIlet</a> by caca labs (I'm serious and giggling) can manipulate and colorize ▐▌
█ text, create ASCII art text and it can also be used to easily change ▐▌
█ cowsay's style (we'll get to that later). Debian package page <a href="https://packages.debian.org/sid/text/toilet" target="_blank">HERE</a>. ▐▌
█ ▐▌
<img alt="toilet" src="ConsoleColor_fichiers/toilet_output_to_html_screenshot.png" border="0" width="511" height="132">
█ ▐▌
█ <b>su</b> ▐▌
█ <b>aptitude update</b> ▐▌
█ <b>aptitude install toilet</b> ▐▌
█ Reply (depending on previously installed) will be similar to: ▐▌
█ The following NEW packages will be installed: ▐▌
█ libcaca0{a} toilet toilet-fonts{a} ▐▌
█ Type in <b>y</b> to agree and hit enter key. ▐▌
█ <b>exit</b> ▐▌
█ ▐▌
█ Lets play with TOIlet: ▐▌
█ <b>toilet "Mewbies"</b> ▐▌
█ <b>toilet --gay "Mewbies"</b> ▐▌
█ <b>toilet --metal "Mewbies"</b> ▐▌
█ <b>toilet -F flip --gay "Mewbies"</b> ▐▌
█ <b>toilet -F flop "mewbies"</b> ▐▌
█ <b>toilet -F 180 "mewbies"</b> ▐▌
█ <b>toilet -F left "mewbies"</b> ▐▌
█ <b>toilet -F right "mewbies"</b> ▐▌
█ With a plain border and gay text: ▐▌
█ <b>toilet -F gay -F border "mewbies"</b> ▐▌
█ With a gay border and plain text: ▐▌
█ <b>toilet -F border -F gay "MEWBIES"</b> ▐▌
█ ▐▌
<img alt="toilet" src="ConsoleColor_fichiers/toilet_example_screenshot.png" border="0" width="511" height="268">
█ ▐▌
█ For more switches: ▐▌
█ <b>toilet --help</b> ▐▌
█ ▐▌
█ FIGlet's program 'showfigfonts' only shows the .flf files. ▐▌
█ TOIlet uses .flf and its own figlet like fonts .tlf ▐▌
█ TOIlet-fonts are installed same locatin as FIGlet's: /usr/share/figlet/ ▐▌
█ <b>ls /usr/share/figlet/ | grep .*lf</b> ▐▌
█ (the *.flc files in that directory are the TOIlet's figlet control files) ▐▌
█ To preview the TOIlet fonts, thanks to unixmonkey3987 at ▐▌
█ <a href="http://www.commandlinefu.com/commands/view/6065/show-demo-of-toilet-fonts" target="_blank">commandline.fu</a>: ▐▌
█ <b>find /usr/share/figlet -name *.tlf -exec basename {} \; | \</b> ▐▌
█ <b>sed -e "s/\..lf$//" | xargs -I{} toilet -f {} {}</b> ▐▌
█ ▐▌
█ To use them, for example: ▐▌
█ <b>toilet -f pagga "Sample Text"</b> ▐▌
█ <b>toilet -f mono9 "Sample Text"</b> ▐▌
█ TOIlet with just one color, selecting the font 'pagga': ▐▌
█ <b>echo -e "\e[01;32m$(toilet -f pagga "mewbies")\e[00m"</b> ▐▌
█ ▐▌
█ TOIlet also supports output to several other formats. For example to HTML ▐▌
█ that I used to create the color mewbies.com page above: ▐▌
█ <b>toilet -f bigmono9 --gay --html "mewbies.com" >> toilet.html</b> ▐▌
█ toilet.html will be in your working directory. I changed the background to ▐▌
█ black myself, <a href="http://www.mewbies.com/geek_fun_files/toilet/toilet_output_to_html.htm" target="_blank">HERE</a> it is. ▐▌
█ ▐▌
█ To view other formats TOIlet can export to: ▐▌
█ <b>toilet --export list</b> ▐▌
█ ▐▌
█ ___________..___________ ▐▌
█ ▐▌
█ <b><a name="figlet"></a>FIGLET (LINUX, MAC, ETC):</b> ▐▌
█ ````````````````````````` ▐▌
█ <a href="http://www.figlet.org/" target="_blank">FIGlet</a> - "make large character ASCII banners out of ordinary text". ▐▌
█ ▐▌
<img alt="figlet" src="ConsoleColor_fichiers/figlet_nix_screenshot.png" border="0" width="370" height="223">
█ ▐▌
█ To install: ▐▌
█ <b>su</b> ▐▌
█ <b>aptitude update</b> ▐▌
█ <b>aptitude install figlet</b> ▐▌
█ <b>exit</b> ▐▌
█ Lets play with it: ▐▌
█ <b>figlet</b> ▐▌
█ Now type any text and press enter as many times as you like. This will be ▐▌
█ the default font 'standard.flf'. ▐▌
█ _ _ ▐▌
█ _ __ ___ _____ _| |__ (_) ___ ___ ▐▌
█ | '_ ` _ \ / _ \ \ /\ / / '_ \| |/ _ \/ __| ▐▌
█ | | | | | | __/\ V V /| |_) | | __/\__ \ ▐▌
█ |_| |_| |_|\___| \_/\_/ |_.__/|_|\___||___/ ▐▌
█ ▐▌
█ To exit FIGlet in this mode press Crtl+c. ▐▌
█ ▐▌
█ <b>TO VIEW ALL OF FIGLET'S FONT:</b> ▐▌
█ To view all the .flf fonts in FIGlet's directory: ▐▌
█ <b>ls /usr/share/figlet | grep .flf</b> ▐▌
█ ▐▌
█ To view all available FIGlet fonts in their own formatting including the ▐▌
█ font's name: ▐▌
█ <b>showfigfonts</b> ▐▌
█ ▐▌
█ To view all available FIGlet fonts with your own text, thanks to tips by ▐▌
█ Carla Schroder and a reply <a href="http://www.linux.com/learn/docs/686943-linux-tips-fun-with-figlet-and-toilet" target="_blank">HERE</a> by Sergio: ▐▌
█ <b>for font in `ls -1 /usr/share/figlet | grep .flf | cut -d . -f 1`; \</b> ▐▌
█ <b>do echo "$font:"; figlet -f $font mewbies; done</b> ▐▌
█ ▐▌
█ Included with FIGlet are two helper programs, man each: ▐▌
█ <b>chkfont</b> - checks figlet 2.0 and up font files for format errors ▐▌
█ <b>figlist</b> - lists figlet fonts and control files ▐▌
█ ▐▌
█ To specify which font to use (figlet -f [font name] [text]): ▐▌
█ <b>figlet -f slant mewbies</b> ▐▌
█ __ _ ▐▌
█ ____ ___ ___ _ __/ /_ (_)__ _____ ▐▌
█ / __ `__ \/ _ \ | /| / / __ \/ / _ \/ ___/ ▐▌
█ / / / / / / __/ |/ |/ / /_/ / / __(__ ) ▐▌
█ /_/ /_/ /_/\___/|__/|__/_.___/_/\___/____/ ▐▌
█ ▐▌
█ Change color to magenta and use bubble font: ▐▌
█ <b>echo -e "\e[01;35m$(figlet -f bubble mewbies)\e[00m"</b> ▐▌
█ <font color="#ff00ff"> _ _ _ _ _ _ _ </font> ▐▌
█ <font color="#ff00ff">/ \ / \ / \ / \ / \ / \ / \</font> ▐▌
█ <font color="#ff00ff">( m | e | w | b | i | e | s )</font> ▐▌
█ <font color="#ff00ff">\_/ \_/ \_/ \_/ \_/ \_/ \_/ </font> ▐▌
█ ▐▌
█ Reverse it: ▐▌
█ <b>echo -e "\e[01;35m$(figlet -f bubble mewbies | rev)\e[00m"</b> ▐▌
█ <font color="#ff00ff"> _ _ _ _ _ _ _ </font> ▐▌
█ <font color="#ff00ff">\ / \ / \ / \ / \ / \ / \ /</font> ▐▌
█ <font color="#ff00ff">) s | e | i | b | w | e | m (</font> ▐▌
█ <font color="#ff00ff"> /_\ /_\ /_\ /_\ /_\ /_\ /_\ </font> ▐▌
█ ▐▌
█ To center (-c), and don't smush characters (-k), and reverse order of the ▐▌
█ charaters (-R reads from right to left): ▐▌
█ <b>figlet -ckRf slant mewbies</b> ▐▌
█ _ __ ▐▌
█ _____ ___ (_)/ /_ _ __ ___ ____ ___ ▐▌
█ / ___// _ \ / // __ \| | /| / // _ \ / __ `__ \ ▐▌
█ (__ )/ __// // /_/ /| |/ |/ // __// / / / / / ▐▌
█ /____/ \___//_//_.___/ |__/|__/ \___//_/ /_/ /_/ ▐▌
█ ▐▌
█ Pipe a command through FIGlet, for example date: ▐▌
█ <b>date | figlet</b> ▐▌
█ For many more options: ▐▌
█ <b>figlet -h</b> ▐▌
█ <b>man figlet</b> ▐▌
█ To leave the man window type: <b>q</b> ▐▌
█ ▐▌
█ <b>MORE FIGLET FONTS:</b> ▐▌
█ There are many other FIGlet fonts available on the net. Start <a href="http://www.figlet.org/fontdb.cgi" target="_blank">HERE</a> at ▐▌
█ figlet.org or <a href="http://www.jave.de/figlet/fonts.html" target="_blank">HERE</a> jave.de has a zipped file containing 263 .flf FIGlets. ▐▌
█ Both sites have full examples of the FIGlets. To preview all 263 of the ▐▌
█ FIGlet fonts in the jave.de zip click <a href="http://www.mewbies.com/geek_fun_files/figlet/figlet_jave.de_zip_only_prev.txt" target="_blank">HERE</a>. ▐▌
█ ▐▌
█ Download the ones you want for example: ▐▌
█ <b>wget http://www.figlet.org/fonts/acrobatic.flf</b> ▐▌
█ <b>su</b> ▐▌
█ <b>cp acrobatic.flf /usr/share/figlet/acrobatic.flf</b> ▐▌
█ <b>exit</b> ▐▌
█ <b>rm acrobatic.flf</b> ▐▌
█ ▐▌
█ Side Note: The FIGlet dosrebel (meant for Win), the design it produces ▐▌
█ does work on <a href="http://www.mewbies.com/how_to_install_glftpd_tutorial.htm#15" target="_blank">GLFtpd site welcome</a>. ▐▌
█ ▐▌
█ ___________..___________ ▐▌
█ ▐▌
█ <b><a name="figlet_eggdrop"></a>FIGLET FOR EGGDROP:</b> ▐▌
█ ``````````````````` ▐▌
█ ▐▌
<img alt="figlet for IRC bot" src="ConsoleColor_fichiers/figlet_bot_irc_screenshot.png" border="0" width="392" height="203">
█ ▐▌
█ <a href="https://github.com/DMXRoid/eggdrop-figlet" target="_blank">figlet.tcl</a> - Is a script for eggdrop bots to output text in figlet format ▐▌
█ using any figlet font available to your local figlet install to an IRC ▐▌
█ channel. Find it <a href="https://github.com/DMXRoid/eggdrop-figlet/blob/master/figlet.tcl" target="_blank">here</a>. ▐▌
█ Just a quicky how to install a script in case you haven't before, change ▐▌
█ the paths to match yours: ▐▌
█ <b>cd ~/bot/scripts</b> ▐▌
█ <b>wget https://raw.github.com/DMXRoid/eggdrop-figlet/master/figlet.tcl</b> ▐▌
█ Optional, don't need to do this; to change the !trigger command for users; ▐▌
█ it is !pretty: ▐▌
█ <b>pico figlet.tcl</b> ▐▌
█ Change this: ▐▌
█ set channelTrigger "!pretty" ▐▌
█ set msgTrigger "pretty" ▐▌
█ To: ▐▌
█ set channelTrigger "!fig" ▐▌
█ set msgTrigger "fig" ▐▌
█ ▐▌
█ Then add the script to your bot's conf file: ▐▌
█ <b>pico ~/bot/bot.conf</b> ▐▌
█ Almost at the end with the other scripts add: ▐▌
█ source scripts/figlet.tcl ▐▌
█ ▐▌
█ <b>.rehash</b> your bot, then in your IRC channel: ▐▌
█ <b>!pretty test</b> ▐▌
█ Or your own trigger if you changed it. Output if a font isn't declared is ▐▌
█ font Standard. To declare font do as the sample above in your channel: ▐▌
█ <b>!pretty bubble::mewbies</b> ▐▌
█ ▐▌
█ Since users don't know what figlet fonts are installed on your local you ▐▌
█ could provide a list with samples for them. ▐▌
█ For example have a !trigger to provide a <a href="http://pastebin.com/08Pr68aG" target="_blank">URL</a> to it or to download a list. ▐▌
█ ▐▌
█ mIRC users to view figlet's output properly you might need to change the ▐▌
█ font to Lucida Console for example: right click on channel name in list on ▐▌
█ left, select Font. ▐▌
█ ▐▌
█ ___________..___________ ▐▌
█ ▐▌
█ <b><a name="fctcombo"></a>COMBO - FIGLET WITH COWSAY & TOILET:</b> ▐▌
█ ```````````````````````````````````` ▐▌
█ <b>cowsay -f apt mewbies | figlet -f term | toilet --gay -f term</b> ▐▌
█ The cow even knows Cherokee: ▐▌
█ <b>figlet -f tsalagi -k "mewbies" | cowsay -f moose -n</b> ▐▌
█ _____________________________________ ▐▌
█ / -|- ___ __ ______ __ \ ▐▌
█ | | | ` \ | | / \ | ▐▌
█ | | |_, /| _ | .|()|_,__\___ | ▐▌
█ | | _ | ' /_| | | |()|' | ' \ | ▐▌
█ \ _|_|__/ \_\_|_/ _|__|_ \__/ / ▐▌
█ ------------------------------------- ▐▌
█ \ ▐▌
█ \ \_\_ _/_/ ▐▌
█ \ \__/ ▐▌
█ (oo)\_______ ▐▌
█ (__)\ )\/\ ▐▌
█ ||----w | ▐▌
█ || || ▐▌
█ ▐▌
█ (Cherokee FIGlet is from figlet.org <a href="ftp://ftp.figlet.org/pub/figlet/fonts/international.tar.gz" target="_blank">International pack</a>.) ▐▌
█ ▐▌
█ ___________..___________ ▐▌
█ ▐▌
█ <b><a name="fortune"></a>FORTUNE:</b> ▐▌
█ ```````` ▐▌
█ <a href="http://en.wikipedia.org/wiki/Fortune_%28Unix%29" target="_blank">Fortune</a> - "print a random, hopefully interesting, adage". Such as: ▐▌
█ "Everything will be just tickety-boo today." ▐▌
█ ▐▌
█ To install Fortune (we are going to use it with cowsay): ▐▌
█ <b>su</b> ▐▌
█ <b>apt-get install fortune</b> ▐▌
█ <b>exit</b> ▐▌
█ ▐▌
█ Test Fortune: ▐▌
█ <b>fortune</b> ▐▌
█ For Fortune help: ▐▌
█ <b>man fortune</b> ▐▌
█ To leave the man window type: <b>q</b> ▐▌
█ It installs here /usr/games/ & data files here /usr/share/games/fortunes ▐▌
█ Thats it, <i>done</i>. Can <a href="#cftcombo">skip the rest of this section</a>. Or continue on to ▐▌
█ customize it: ▐▌
█ ▐▌
█ <a name="fortunevari"></a><b>FORTUNE INFO AND VARIATIONS:</b> ▐▌
█ ```````````````````````````` ▐▌
█ To view mods for Fortune: ▐▌
█ <b>apt-cache search fortune-mod</b> ▐▌
█ Reply is: ▐▌
█ fortune-mod - provides fortune cookies on demand ▐▌
█ fortunes-min - Data files containing fortune cookies ▐▌
█ fortunes-off - Data files containing offensive fortune cookies ▐▌
█ fortunes - Data files containing fortune cookies ▐▌
█ ▐▌
█ Three data files (types of quotes) come with Fortune: ▐▌
█ <b>ls /usr/share/games/fortunes</b> ▐▌
█ Reply is: ▐▌
█ fortunes.dat literature.dat riddles.dat ▐▌
█ To view the percentage that Fortune uses each of those data files: ▐▌
█ Reply is: ▐▌
█ <b>/usr/games/fortune -f</b> ▐▌
█ 100.00% /usr/share/games/fortunes ▐▌
█ 15.59% riddles ▐▌
█ 52.50% fortunes ▐▌
█ 31.91% literature ▐▌
█ ▐▌
█ To select a data file to read from; specify it: ▐▌
█ <b>fortune riddles</b> ▐▌
█ Example reply: ▐▌
█ Q: How many supply-siders does it take to change a light bulb? ▐▌
█ A: None. The darkness will cause the light bulb to change by itself. ▐▌
█ ▐▌
█ These three data files are enough...but if you wanted more types, custom ▐▌
█ data files can be easily added to Fortune. One such is 'The Art of War' ▐▌
█ found <a href="http://www.de-brauwer.be/wiki/wikka.php?wakka=TheArtOfWar" target="_blank">HERE</a>. If you would like to use it: ▐▌
█ <b>wget http://www.de-brauwer.be/wastebasket/fortunes-taow-1.0.tar.gz</b> ▐▌
█ <b>tar xvzf fortunes-taow-1.0.tar.gz</b> ▐▌
█ <b>cd fortunes-taow-1.0</b> ▐▌
█ <b>cat README</b> ▐▌
█ <b>su</b> ▐▌
█ <b>cp taow taow.dat /usr/share/games/fortunes</b> ▐▌
█ Test it: ▐▌
█ <b>/usr/games/fortune taow</b> ▐▌
█ Reply example: ▐▌
█ Sun Tzu said: In war, the general receives ▐▌
█ his commands from the sovereign, collects his army ▐▌
█ and concentrates his forces ▐▌
█ --The Art of War by Sun Tzu ▐▌
█ Chapter VIII: Variation in Tactics ▐▌
█ <b>exit</b> ▐▌
█ <b>fortune taow</b> or <b>fortune tao</b> works ▐▌
█ ▐▌
█ View again the percentage that fortune uses each data file: ▐▌
█ <b>/usr/games/fortune -f</b> ▐▌
█ 100.00% /usr/share/games/fortunes ▐▌
█ 10.69% riddles ▐▌
█ 36.01% fortunes ▐▌
█ 31.41% taow ▐▌
█ 21.89% literature ▐▌
█ Or to view only taow's percentage: ▐▌
█ <b>/usr/games/fortune -f 2>&1| grep taow</b> ▐▌
█ 31.41% taow ▐▌
█ ▐▌
█ Install a compilation of 40 fortune data files. View <a href="http://download.gna.org/pdbv/demo_html/demo_2.0.10/package/fortunes_1:1.99.1-1.html" target="_blank">HERE</a>. ▐▌
█ To install it: ▐▌
█ <b>su</b> ▐▌
█ <b>apt-get install fortunes</b> ▐▌
█ <b>exit</b> ▐▌
█ <b>ls /usr/share/games/fortunes</b> ▐▌
█ View again the percentage that fortune uses each data file: ▐▌
█ <b>/usr/games/fortune -f</b> ▐▌
█ Reply is <a href="http://www.mewbies.com/geek_fun_files/fortune_percentage_after_installing_compilation.txt" target="_blank">HERE</a>(the "0.02% mewb", we are going to create that after this). ▐▌
█ ▐▌
█ One of the data files in the compilation is ASCII-art: ▐▌
█ <b>fortune ascii-art</b> ▐▌
█ Example reply: ▐▌
█ ___ ______ Frobtech, Inc. ▐▌
█ /__/\ ___/_____/\ ▐▌
█ \ \ \ / /\\ ▐▌
█ \ \ \_/__ / \ "If you've got the job, ▐▌
█ _\ \ \ /\_____/___ \ we've got the frob." ▐▌
█ // \__\/ / \ /\ \ ▐▌
█ _______//_______/ \ / _\/______ ▐▌
█ / / \ \ / / / /\ ▐▌
█ __/ / \ \ / / / / _\__ ▐▌
█ / / / \_______\/ / / / / /\ ▐▌
█ /_/______/___________________/ /________/ /___/ \ ▐▌
█ \ \ \ ___________ \ \ \ \ \ / ▐▌
█ \_\ \ / /\ \ \ \ \___\/ ▐▌
█ \ \/ / \ \ \ \ / ▐▌
█ \_____/ / \ \ \________\/ ▐▌
█ /__________/ \ \ / ▐▌
█ \ _____ \ /_____\/ ▐▌
█ \ / /\ \ / \ \ \ ▐▌
█ /____/ \ \ / \ \ \ ▐▌
█ \ \ /___\/ \ \ \ ▐▌
█ \____\/ \__\/ ▐▌
█ ▐▌
█ <b>PDP coder humor from the 70's:</b> ▐▌
█ If you installed the compilation of fortune files, view first line of ▐▌
█ fortunes' computers: ▐▌
█ <b>head -n 1 /usr/share/games/fortunes/computers</b> ▐▌
█ ▐▌
█ It has: !07/11 PDP a ni deppart m'I !pleH ▐▌
█ Reverse it: ▐▌
█ <b>head -n 1 /usr/share/games/fortunes/computers | rev</b> ▐▌
█ Reply: ▐▌
█ Help! I'm trapped in a PDP 11/70! ▐▌
█ <a href="http://en.wikipedia.org/wiki/Programmed_Data_Processor" target="_blank">PDP</a> - Programmed Data Processor, the assembler for PDP machine programs at ▐▌
█ that time, viewed by the programmer caused the content to appear ▐▌
█ backwards. ▐▌
█ ▐▌
█ Install <a href="https://packages.debian.org/squeeze/fortunes-off" target="_blank">offensive fortunes</a>: ▐▌
█ <b>su</b> ▐▌
█ <b>aptitude install fortunes-off</b> ▐▌
█ <b>exit</b> ▐▌
█ <b>fortune off</b> ▐▌
█ Reply for example: ▐▌
█ The religion of one age is the literary entertainment of the next. ▐▌
█ ▐▌
█ ___________..___________ ▐▌
█ ▐▌
█ <b><a name="fortunedb"></a>FORTUNE - HOW TO MAKE YOUR OWN FORTUNE DATABASE FILES:</b> ▐▌
█ `````````````````````````````````````````````````````` ▐▌
█ To create your own Fortune data files it's super easy: ▐▌
█ Create a file, naming it anything you like, for example: ▐▌
█ <b>pico mewb</b> ▐▌
█ Paste in your quotes, each separated by the percentage symbol: % ▐▌
█ Your quotes could be anything, like Linux cmd line tips from a variety of ▐▌
█ man pages that you need often, quotes from your IRC channel, etc. ▐▌
█ For example paste in: ▐▌
█ % ▐▌
█ mewbies rule! ▐▌
█ % ▐▌
█ I luv mewbies ▐▌
█ % ▐▌
█ mewb me ▐▌
█ % ▐▌
█ ▐▌
█ Save the file (Ctrl+x, y, press Enter key). ▐▌
█ Then to create its database: ▐▌
█ <b>strfile mewb</b> ▐▌
█ Reply would be: ▐▌
█ There were 3 strings ▐▌
█ Longest string: 14 bytes ▐▌
█ Shortest string: 8 bytes ▐▌
█ ▐▌
█ Copy the two files created to fortunes: ▐▌
█ <b>su</b> ▐▌
█ <b>cp mewb mewb.dat /usr/share/games/fortunes</b> ▐▌
█ <b>exit</b> ▐▌
█ Test it: ▐▌
█ <b>fortune mewb</b> ▐▌
█ ▐▌
█ ___________..___________ ▐▌
█ ▐▌
█ <b><a name="cftcombo"></a>COMBOS - FORTUNE, COWSAY & TOILET:</b> ▐▌
█ `````````````````````````````````` ▐▌
█ <b>COWSAY WITH FORTUNE:</b> ▐▌
█ <b>fortune | cowsay -n -f hellokitty</b> ▐▌
█ _______________________________________________________________________ ▐▌
█ < Dinosaurs aren't extinct. They've just learned to hide in the trees. > ▐▌
█ ----------------------------------------------------------------------- ▐▌
█ \ ▐▌
█ \ ▐▌
█ /\_)o< ▐▌
█ | \ ▐▌
█ | O . O| ▐▌
█ \_____/ ▐▌
█ ▐▌
█ Or select one of Fortune's data base files: ▐▌
█ <b>fortune riddles | cowsay -n -f small</b> ▐▌
█ _____________________________________________________________ ▐▌
█ / Q: How does a hacker fix a function which \ ▐▌
█ | doesn't work for all of the elements in its domain? | ▐▌
█ \ A: He changes the domain. / ▐▌
█ ------------------------------------------------------------- ▐▌
█ \ ,__, ▐▌
█ \ (oo)____ ▐▌
█ (__) )\ ▐▌
█ ||--|| * ▐▌
█ ▐▌
█ You can also run the cmd like this: ▐▌
█ <b>cowsay -f small "$(fortune riddles)"</b> ▐▌
█ ▐▌
█ If you receive the error "cowsay: Could not find small cowfile!" scroll ▐▌
█ up to <a href="#cowsayerror">HERE</a> - cowsay explaining how to fix this error OR don't use 'small' ▐▌
█ use a different creature. ▐▌
█ ▐▌
█ Instead of using Fortune you could pipe one of <a href="http://en.wikipedia.org/wiki/Cave_Johnson_%28Portal%29" target="_blank">Cave Johnson's</a> quote ▐▌
█ through cowsay, thanks to ColOfNature at <a href="http://www.commandlinefu.com/commands/view/8418/the-wisdom-of-cave-johnson" target="_blank">commandline.fu</a>: ▐▌
█ <b>curl -s http://www.cavejohnsonhere.com/random/ | grep quote_main \</b> ▐▌
█ <b>| cut -d \> -f 2- | fmt -w $(tput cols) | cowsay</b> ▐▌
█ Which gives an idea to offer any types of quotes online to be utilized in ▐▌
█ this manner. ▐▌
█ ▐▌
█ <b>COWSAY WITH TOILET:</b> ▐▌
█ <b>cowsay -f moose "hellooo mewbies" | toilet --gay -f term</b> ▐▌
█ ▐▌
<img alt="cowsay with toilet" src="ConsoleColor_fichiers/cowsay_with_toilet_gay.png" border="0" width="198" height="120">
█ ▐▌
█ Lets expand on this: A random cow (creature) selected each time, saying ▐▌
█ Hello to the user's name in rainbow colors using the font term: ▐▌
█ <b>cowsay -f $(ls /usr/share/cowsay/cows/ | shuf -n1) "Hello $USER" | \</b> ▐▌
█ <b>toilet --gay -f term</b> ▐▌
█ ▐▌
█ <b>FORTUNE WITH TOILET:</b> ▐▌
█ <b>fortune | toilet --metal -f term</b> ▐▌
█ ▐▌
█ <b>NOW LETS TRY ALL - COWSAY, TOILET & FORTUNE TOGETHER:</b> ▐▌
█ ________________________________________ ▐▌
█ / ss?l ?kil I bna ??kil bluohs I sa ll?w \ ▐▌
█ | sa flah uoy fo flah wonk t'nob I | ▐▌
█ | .?vr?s?b uoy sa ll?w sa flah uoy fo | ▐▌
█ \ flah naht n?ikloT .? .? .? -- / ▐▌
█ ---------------------------------------- ▐▌
█ \ (__) ▐▌
█ (oo) ▐▌
█ /------\/ ▐▌
█ / | || ▐▌
█ * /\---/\ ▐▌
█ ~~ ~~ ▐▌
█ All output is '--gay (rainbow)': ▐▌
█ <b>fortune | cowsay -f apt | toilet --gay -f term</b> ▐▌
█ All output is 'metal' using a random creature: ▐▌
█ <b>fortune | cowsay -f $(ls /usr/share/cowsay/cows/ | shuf -n1) | \</b> ▐▌
█ <b>toilet --metal -f term</b> ▐▌
█ Only fortune output is using a TOIlet figlet font: ▐▌
█ <b>fortune | toilet -f pagga | cowsay -n -f apt</b> ▐▌
█ All output is light green: ▐▌
█ <b>echo -e "\e[01;32m$(fortune | cowthink -f apt)\e[00m"</b> ▐▌
█ All output is magenta, fortune output is flipped: ▐▌
█ <b>echo -e "\e[35m$(fortune | toilet -f term -F flip | cowsay -f apt)\e[00m"</b> ▐▌
█ All output is green (not using TOIlet), using a random creature: ▐▌
█ <b>echo -e "\e[32m$(/usr/games/fortune | cowsay -f \</b> ▐▌
█ <b>$(ls /usr/share/cowsay/cows/ | shuf -n1))\e[00m"</b> ▐▌
█<font color="#00a000"> _________________________________________ </font> ▐▌
█ <font color="#00a000">/ I have also been a huge Unix fan ever \</font> ▐▌
█ <font color="#00a000">| since I realized that SCO was not Unix. |</font> ▐▌
█ <font color="#00a000">\ -- Dennis Baker /</font> ▐▌
█ <font color="#00a000">----------------------------------------- </font> ▐▌
█ <font color="#00a000">\ . . .</font> ▐▌
█ <font color="#00a000">\ . . . ` , </font> ▐▌
█ <font color="#00a000">\ .; . : .' : : : .</font> ▐▌
█ <font color="#00a000">\ i..`: i` i.i.,i i .</font> ▐▌
█ <font color="#00a000">\ `,--.|i |i|ii|ii|i: </font> ▐▌
█ <font color="#00a000">UooU\.'@@@@@@`.||'</font> ▐▌
█ <font color="#00a000">\__/(@@@@@@@@@@)' </font> ▐▌
█ <font color="#00a000">(@@@@@@@@)</font> ▐▌
█ <font color="#00a000">`YY~~~~YY'</font> ▐▌
█ <font color="#00a000">|| ||</font> ▐▌
█ The last one I use on one of my <a href="http://www.mewbies.com/how_to_customize_your_console_login_message_tutorial.htm" target="_blank">MOTDs</a> so all users see it on login. Looks ▐▌
█ better on a black background, view <a href="http://www.mewbies.com/geek_fun_files/cowsay/cowsay_fortune_output_green_on_black.htm" target="_blank">HERE</a>. ▐▌
█ ▐▌
█ ▐▌
█ <b>OUTPUT DATE AND TIME WITH COWSAY & TOILET:</b> ▐▌
█ <b>cowsay -f apt "It is $(date)" | toilet --gay -f term</b> ▐▌
█ or ▐▌
█ <b>cowsay -f bud-frogs "It is $(date '+%D %T')" | toilet -f term</b> ▐▌
█ _________________________ ▐▌
█ < It is 02/19/12 08:09:07 > ▐▌
█ ------------------------- ▐▌
█ \ ▐▌
█ \ ▐▌
█ oO)-. .-(Oo ▐▌
█ /__ _\ /_ __\ ▐▌
█ \ \( | ()~() | )/ / ▐▌
█ \__|\ | (-___-) | /|__/ ▐▌
█ ' '--' ==`-'== '--' ' ▐▌
█ ▐▌
█ ___________..___________ ▐▌
█ ▐▌
█ <b><a name="boxes"></a>BOXES (LINUX & MAC):</b> ▐▌
█ ```````````````````` ▐▌
█ Boxes, by <a href="http://boxes.thomasjensen.com/" target="_blank">Thomas Jensen</a>, "is a text filter which can draw any kind of ▐▌
█ ASCII art around its input text". "Boxes is designed to be tied to your ▐▌
█ editor as a text filter." ▐▌
█ ____________________________________________________________________ ▐▌
█ /\ \ ▐▌
█ \_| /\ /\ /\ /\ /\ | ▐▌
█ | /\//\\/\ /\//\\/\ /\//\\/\ /\//\\/\ /\//\\/\ | ▐▌
█ | /\//\\\///\\/\//\\\///\\/\//\\\///\\/\//\\\///\\/\//\\\///\\/\ | ▐▌
█ | //\\\//\/\\///\\\//\/\\///\\\//\/\\///\\\//\/\\///\\\//\/\\///\\ | ▐▌
█ | \\//\/ , \/\\// | ▐▌
█ | \/ /\^/`\ \/ | ▐▌
█ | /\ | \/ | ________________ /\ | ▐▌
█ | //\\ | | | ( mewbies.com ) jgs //\\ | ▐▌
█ | \\// \ \ / ( examples of ) _ _ \\// | ▐▌
█ | \/ '\\//' ( boxes command ) _{ ' }_ \/ | ▐▌
█ | /\ || ( line for linux ) { `.!.` } /\ | ▐▌
█ | //\\ || ---------------- ',_/Y\_,' //\\ | ▐▌
█ | \\// || , o ,__, {_,_} \\// | ▐▌
█ | \/ |\ || |\ o (O~)____ | \/ | ▐▌
█ | /\ | | || | | (__) )\ (\| /) /\ | ▐▌
█ | //\\ | | || / / U||--|| * \| // //\\ | ▐▌
█ | \\// \ \||/ / |// \\// | ▐▌
█ | \/ `\\//` \ \./ \\ \./ \ \\ |/ / \/ | ▐▌
█ | /\ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /\ | ▐▌
█ | //\\/\ /\//\\ | ▐▌
█ | \\///\\/\//\\\///\\/\//\\\///\\/\//\\\///\\/\//\\\///\\/\//\\\// | ▐▌
█ | \/\\///\\\//\/\\///\\\//\/\\///\\\//\/\\///\\\//\/\\///\\\//\/ | ▐▌
█ | \/\\//\/ \/\\//\/ \/\\//\/ \/\\//\/ \/\\//\/ | ▐▌
█ | \/ \/ \/ \/ \/ | ▐▌
█ | _______________________________________________________________|_ ▐▌
█ \_/_________________________________________________________________/ ▐▌
█ ▐▌
█ For this tutorial I'll give example of boxes on the command line and boxes ▐▌
█ with the text editor Vim / Vi. ▐▌
█ ▐▌
█ <b>INSTALL BOXES:</b> ▐▌
█ <b>su</b> ▐▌
█ <b>aptitude update && aptitude install boxes</b> ▐▌
█ <b>exit</b> ▐▌
█ ▐▌
█ <b>SHOW OF ALL THE BOXES DESIGNS:</b> ▐▌
█ To list all boxes' designs listed on the configuration with their ▐▌
█ description: ▐▌
█ <b>boxes -l</b> ▐▌
█ Or to scroll through: ▐▌
█ <b>boxes -l | more</b> ▐▌
█ To quit: <b>q</b> ▐▌
█ Or ▐▌
█ <b>boxes -l | less</b> ▐▌
█ Or to output the list to a file: ▐▌
█ <b>boxes -l >> boxes_list_of_boxes.txt</b> ▐▌
█ The list it creates will be in your working directory. ▐▌
█ View Debian output list <a href="http://www.mewbies.com/geek_fun_files/boxes/boxes_list_of_boxes_debian.txt" target="_blank">HERE</a> containing 43 designs and Win output list ▐▌
█ <a href="http://www.mewbies.com/geek_fun_files/boxes/boxes_list_of_boxes_windows.txt" target="_blank">HERE</a> containing 50 designs. Click <a href="http://www.mewbies.com/geek_fun_files/boxes/boxes_list_of_boxes_windows_extra_7.txt" target="_blank">HERE</a> to view the extra 7 boxes only in ▐▌
█ Win v. ▐▌
█ The extra boxes in Win is probably due to it being the latest v. When ▐▌
█ installing by aptitude it isn't always the latest v but it is suppose to ▐▌
█ be the most stable. ▐▌
█ If you want all 50 designs install boxes manually or download the tar, ▐▌
█ extract the boxes.cfg and replace yours with it, done. ▐▌
█ ▐▌
█ Boxes' system-wide configuration file is here for Debian: ▐▌
█ /etc/boxes/boxes-config ▐▌
█ You could create your own config file here: ▐▌
█ $HOME/.boxes ▐▌
█ ▐▌
█ <b>BOXES ON THE COMMAND LINE:</b> ▐▌
█ Though boxes was designed to be used with text editors that support ▐▌
█ filters we can still use it on the command line by piping (|) any text ▐▌
█ based output through it. ▐▌
█ ▐▌
█ Examples of inputting your own text: ▐▌
█ <b>echo "mewbies.com example of boxes command line for linux" | boxes</b> ▐▌
█ Reply: ▐▌
█ /*******************************************************/ ▐▌
█ /* mewbies.com example of boxes command line for linux */ ▐▌
█ /*******************************************************/ ▐▌
█ ▐▌
█ To input multiple lines we'll add on to the code above - ▐▌
█ -e (execute), \t (text), \n (new line), select box design -d [design], ▐▌
█ center the output a -c: ▐▌
█ <b>echo -e "\tmewbies.com\n\texamples of\n\tboxes command line" | boxes -d mouse -a c</b>
█ .--, .--, ▐▌
█ ( ( \.---./ ) ) ▐▌
█ '.__/o o\__.' ▐▌
█ {= ^ =} ▐▌
█ > - < ▐▌
█ ___.""`-------`"".__ ▐▌
█ / \ ▐▌
█ \ mewbies.com / ▐▌
█ / examples of \ ▐▌
█ \ boxes command line / ▐▌
█ / \ ▐▌
█ \____________________/ ▐▌
█ ___)( )(___ ▐▌
█ (((__) (__))) ▐▌
█ ▐▌
█ Examples of commands with a text output piped (|) through boxes: ▐▌
█ <b>whoami | boxes -d parchment -a c</b> ▐▌
█ ___________ ▐▌
█ /\ \ ▐▌
█ \_| mewbies | ▐▌
█ | | ▐▌
█ | ______|_ ▐▌
█ \_/________/ ▐▌
█ ▐▌
█ Date and Time: ▐▌
█ <b>date | boxes -a hcvc</b> ▐▌
█ /********************************/ ▐▌
█ /* Sun Apr 28 04:42:40 EDT 2013 */ ▐▌
█ /********************************/ ▐▌
█ ▐▌
█ Boxes example page <a href="http://boxes.thomasjensen.com/examples.shtml" target="_blank">HERE</a> shows many examples of the options including how ▐▌
█ to remove a box. ▐▌
█ <b>man boxes</b> ▐▌
█ To quit man: <b>q</b> ▐▌
█ ▐▌
█ <b>BOXES INPUT THE CONTENTS OF A TEXT FILE:</b> ▐▌
█ You can input a text file for boxes to print out. For example create a ▐▌
█ text file if you don't have one, put a few lines of text in it, save it, ▐▌
█ then input the file's name to boxes. For example: ▐▌
█ <b>boxes -d sunset -a c < boxes_test_input.txt</b>
▐▌
█ Reply:
▐▌
█ .
▐▌
█ . | .
▐▌
█ \ | /
▐▌
█ '. \ ' / .'
▐▌
█ '. .'```'. .'
▐▌
█ <>.....:::::::`.......`:::::::....<>
▐▌
█ <>: mewbies.com :<>
▐▌
█ <>:examples of boxes command line:<>
▐▌
█ <>: for linux :<>
▐▌
█ <>:..............................:<>
▐▌
█
<><><><><><><><><><><><><><><><><><>
▐▌
█
▐▌
█ <b><a name="boxescombo"></a>COMBOS - BOXES, COWSAY, FIGLET, TOILET - HTML (LINUX & MAC):</b> ▐▌
█ ```````````````````````````````````````````````````````````` ▐▌
█ ▐▌
█ <b>COMBO - BOXES, COWSAY:</b> ▐▌
█ The large pretty framed cow with the flowers at the beginning was produced ▐▌
█ using triple boxes: ▐▌
█ <b>cowthink -f small -W 15 -e O~ -T U mewbies.com examples of boxes command \</b> ▐▌
█ <b>line for linux | boxes -d spring -a hcvc | boxes -d diamonds -a hcvc | \</b> ▐▌
█ <b>boxes -d parchment -a hcvc</b> ▐▌
█ ▐▌
█ <b>COMBO - BOXES & FIGLET:</b> ▐▌
█ <b>figlet -f slant mewbies | boxes -d peek -pa2t0b0</b> ▐▌
█ /* _\|/_ ▐▌
█ (o o) ▐▌
█ +----oOO-{_}-OOo---------------------------------+ ▐▌
█ | __ _ | ▐▌
█ | ____ ___ ___ _ __/ /_ (_)__ _____ | ▐▌
█ | / __ `__ \/ _ \ | /| / / __ \/ / _ \/ ___/ | ▐▌
█ | / / / / / / __/ |/ |/ / /_/ / / __(__ ) | ▐▌
█ | /_/ /_/ /_/\___/|__/|__/_.___/_/\___/____/ | ▐▌
█ | | ▐▌
█ +-----------------------------------------------*/ ▐▌
█ ▐▌
█ <b>COMBO - BOXES OUTPUT TO HTML USING TOILET:</b> ▐▌
█ Output boxes in rainbow colors to HTML using TOIlet: ▐▌
█ <b>cowsay -f small yummm | boxes -d spring -a hcvc | toilet --gay -f term \</b> ▐▌
█ <b>--html >> boxes_toilet_to_html.htm</b> ▐▌
█ <a href="http://www.mewbies.com/geek_fun_files/boxes/boxes_toilet_to_html.htm" target="_blank">HERE</a> are the results (I touched up the htm file). ▐▌
█ <a href="http://www.mewbies.com/geek_fun_files/boxes/boxes_list_toilet_to_html.htm" target="_blank">HERE</a> are all the boxes designs in rainbow colors. ▐▌
█ ▐▌
█ ▐▌
█ <b><a name="boxesvim"></a>USING BOXES IN A TEXT EDITOR (LINUX & MAC):</b> ▐▌
█ ``````````````````````````````````````````` ▐▌
█ To do this we need to use a text editor that supports command line ▐▌
█ arguments and or filters (vim, emacs, and jed). I'm a simple pico user so ▐▌
█ I'll go over the steps one by one in <a href="http://www.vim.org/" target="_blank">Vim</a> as I know how frustrating it can ▐▌
█ be to use the first time with all the keyboard shortcuts. ▐▌
█ ▐▌
█ Launch vim creating a test file, for example: ▐▌
█ <b>vim boxes_vim_test.txt</b> ▐▌
█ You can type in a few lines of text or ▐▌
█ Launch its command line mode - any command run will output the results to ▐▌
█ your open file. We'll run ls. To do this: ▐▌
█ Press your keys Esc+Shift (represented by :) then ! starts it's command ▐▌
█ window: Esc + Shift then ! ▐▌
█ ▐▌
█ If your vim is like mine you won't see anything happen until you press ▐▌
█ another key. ▐▌
█ So press another key, like: <b>l</b> ▐▌
█ Now the bottom of your window should have: :.! ▐▌
█ That is the command mode. ▐▌
█ Type in: <b>ls</b> (if your terminal showed the l:.!l then only add an s) ▐▌
█ Press Enter. ▐▌
█ Tada! ls output. ▐▌
█ To go back to insert mode - editing your text, press: <b>i</b> ▐▌
█ Move the cursor marker to the start of the area you want enclosed in a ▐▌
█ box using your arrow keys. ▐▌
█ ▐▌
█ Now to 'mark' / highlight the text that we want enclosed in boxes: ▐▌
█ Esc + Shift, then ▐▌
█ <b>v</b> for character selection or ▐▌
█ <b>V</b> (Shift+v) for line selection ▐▌
█ Bottom of window it should now state "-- VISUAL LINE --" ▐▌
█ ▐▌
█ Use your arrow keys to highlight the area to be enclosed. ▐▌
█ Once area is highlighted that you want in the box press: <b>!</b> ▐▌
█ Type in your boxes command just like we did above, for example: ▐▌
█ <b>boxes -d xes -a hcvc</b> ▐▌
█ Press Enter ▐▌
█ Press i to go back into insert mode. ▐▌
█ ▐▌
█ <b>TO CREATE KEYBOARD SHORTCUTS FOR BOXES COMMAND LINE WITHIN VIM:</b> ▐▌
█ Some of the practical uses of boxes: ▐▌
█ -Comment out code using c-cmt. Result /* to all lines marked in a nice box ▐▌
█ shape. ▐▌
█ -Comment code in HTML using -d html. Result <!-- --> to all lines marked ▐▌
█ in a nice box shape. ▐▌
█ -Indentation handling. ▐▌
█ These are commands that you might use often and want a shortcut for within ▐▌
█ your text editor, such as vim. ▐▌
█ On <a href="http://boxes.thomasjensen.com/docs/install.shtml" target="_blank">boxes installation page</a> he gives you an example for the box 'c-cmt' ▐▌
█ (commenting out code). ▐▌
█ Debian vim's system-wide config file is here: /etc/vim/vimrc ▐▌
█ ▐▌
█ ___________..___________ ▐▌
█ ▐▌
█ <b><a name="ditaa"></a>DITAA - CONVERT ASCII DIAGRAMS INTO IMAGES (ALL OSes):</b> ▐▌
█ `````````````````````````````````````````````````````` ▐▌
█ <a href="http://ditaa.sourceforge.net/" target="_blank">Ditaa</a> "'<b>DI</b>agrams <b>T</b>hrough <b>A</b>scii <b>A</b>rt' is a small command-line utility ▐▌
█ written in Java, that can convert diagrams drawn using ascii art ▐▌
█ ('drawings' that contain characters that resemble lines like | / - ), into ▐▌
█ proper bitmap graphics." This is a lovely little program that easily ▐▌
█ produces beautiful diagrams. ▐▌
█ ▐▌
█ <b>PREREQUISITE:</b> ▐▌
█ java - To view if installed: ▐▌
█ <b>java</b> ▐▌
█ If the output is it's options; you have it. If reply is: ▐▌
█ -bash: java: command not found ▐▌
█ You need to install it: ▐▌
█ <b>su</b> ▐▌
█ <b>aptitude install sun-java6-jre</b> ▐▌
█ <b>exit</b> ▐▌
█ ▐▌
█ Go <a href="http://sourceforge.net/projects/ditaa/" target="_blank">HERE</a> to find the latest version of ditaa, then: ▐▌
█ <b>cd ~ && mkdir ditaa && cd ditaa</b> ▐▌
█ <b>wget http://jaist.dl.sourceforge.net/project/ditaa/ditaa/0.9/ditaa0_9.zip</b> ▐▌
█ <b>unzip ditaa0_9.zip</b> ▐▌
█ Done :). ▐▌
█ <b>java -jar ditaa0_9.jar --help</b> ▐▌
█ ▐▌
█ Create a diagram to use with it. For this I've used the example on ▐▌
█ ditaa's site and added to it to show all shapes / icons. The image above ▐▌
█ is from this diagram: ▐▌
█ <b>pico ditaa_example.txt</b> ▐▌
█ Paste in and save: ▐▌
+---------+ +-------+ +-------+ +--------+ +--------+
| Document|---+ split +---| |----| |----->| |
| o this | +-------+ |Diagram| | Storage| | In/Out |
| o that | | me | | | | | | |
| cRED{d}|-+ | cGRE| | cBLK| /--| cBLU{s}| /-*-|cPNK{io}|
+----+----+ : +-------+ +-------+ | +--------+ | +--------+
: | ^ | |
| v | /--------\ | /--------\ |
+------------+ | Rounded|<-/ | Rounded|-*+ *--------*
| Corners| | Dashed | | | Point |
| c33F| | | +-*-* Mark *
\-+------/ \-=------/ | c1FF|
*--------*
█ ▐▌