Source code eyecatchers - Page 1
Forum section: electronics / general

author: cncjerry
author_rank: Unknown
timestamp: November 24, 2018, 12:21:55 am
content: Remember in the old days there would be large eye-catchers at the beginning of source code routines madeout of text characters like:RRRRRRRRRRRRRRRRR RRRR RR OOOOOORRRRRRR OOO OORRRRRRR OO OORR RR OO OORR RR OO OORR RR OOOOOIs there any code out there that creates these?Thanks,Jerry

author: rhodges
author_rank: Frequent Contributor
timestamp: November 24, 2018, 12:29:42 am
content: Look up the "banner" program. ("man banner") It should be on most Unix-like systems.

author: radar_macgyver
author_rank: Frequent Contributor
timestamp: November 24, 2018, 12:35:07 am
content: http://www.figlet.org/

author: Bassman59
author_rank: Super Contributor
timestamp: November 24, 2018, 01:40:20 am
content: Quote from: rhodges on November 24, 2018, 12:29:42 amOn my mac:tchotchke2:~ andy$ banner Hulk#### ######## ######## ######## ########################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################### #### ######## #### ######## #### ######## #### ######################################################## #### ######## #### ######## #### ######## #### ########################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################### ######## ######## ######## ######################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################## ######### ################################################################################################################################################################################################################################################################################################################################################################################################################################################################ ######## ######################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################## ######## ################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################ ############# ######################################################################################################################### ############################ ###### ######## ##################### ###### ######## ###################### ##################################### ################################ ############################# ######################### ##################### ################## ##############################################

author: westfw
author_rank: Super Contributor
timestamp: November 24, 2018, 03:41:09 am
content: EMACS has "Picture Mode" that is useful for editing such things."Ascii Art" is a searchable topic - lots of stuff that you can snarf. There might be tools for creating it, too ("Rexpaint"? Assorted "text to ascii art" and even "image to ascii art" tools...(I wonder if you can still find stuff to generate the 5x over-printed, 6-page wide, line printer art that used to so upset the line printer owners?)

author: cv007
author_rank: Frequent Contributor
timestamp: November 24, 2018, 05:39:07 am
content: google 'online ascii art' ,first linkcreate what you want, copy&paste

author: cncjerry
author_rank: Unknown
timestamp: November 24, 2018, 05:45:14 am
content: using the term "Banner" was what I needed and found the one below. I remember years ago a centerfold printed on continuous form paper using an IBM 1403 chain printer.https://www.ascii-art-generator.org/Thanks,Jerry

author: Jan Audio
author_rank: Frequent Contributor
timestamp: November 24, 2018, 01:32:14 pm
content: Quote from: cv007 on November 24, 2018, 05:39:07 amEvery person gets different results,they see how fast you type, etc.

author: legacy
author_rank: Super Contributor
timestamp: November 24, 2018, 01:46:12 pm
content: Quote from: cncjerry on November 24, 2018, 12:21:55 ama lot of Linux programs can be compiled with the "asciiart" flag, which includes a library that does what you are asking.Personally, I have never used because I want my source the neatest possible!

author: westfw
author_rank: Super Contributor
timestamp: November 25, 2018, 03:16:22 am
content: There is this particularly famous one/* Copyright (c) 1983 University of Maryland Computer Science Department *//* Ultra-hot screen management packageOriginal code copyright (c) James Gosling, January 1980 *//* Severe munging and destruction by Chris Torek, 1982,1983 *//****************************************************************/-------------\/ \/ \/ \| XXXX XXXX || XXXX XXXX || XXX XXX |\ X /--\ XXX /--| | XXX | || | | || I I I I I I I || I I I I I I |\ /-- --\-------/XXX XXXXXXXX XXXXXXXXXXXXXX XXXXXXXXXXXXXXX XXXXXXXXXXXXXXXXX XXXXXXXXXXXXXX XXXXXXXXXXXXXXX XXXXXXXX XXX*************** BEWARE!! ***************All ye who enter here:Most of the code in this moduleis twisted beyond belief!Tread carefully.If you think you understand it,You Don't,So Look Again.****************************************************************/

author: legacy
author_rank: Super Contributor
timestamp: November 25, 2018, 03:20:54 am
content: Quote from: westfw on November 25, 2018, 03:16:22 amthis should be applied to the source of EMACS

author: westfw
author_rank: Super Contributor
timestamp: November 25, 2018, 04:02:34 am
content: QuoteYou do know that that's where it's from, right? Although RMS claims that none of Gosling's code remains in the current versions (as of long ago, in fact. It was a point of some contention, probably partly responsible for FSF/Gnu's OSSW philosophy.)I was just thinking how different things are now. The last time someone had to optimize text screen output using ANSI escape sequences (and similar) so that it would be usable over 1200bps dialup modems was ... way back when.

author: Nominal Animal
author_rank: Super Contributor
timestamp: November 28, 2018, 04:55:31 pm
content: Quote from: westfw on November 24, 2018, 03:41:09 amOh man, that brings up memories. I had a Star LC-10 dot matrix printer, and wrote a program to print a PCX image at "very high resolution" (vertically) by printing each strip at least twice. It was horribly slow, but I really liked the output. It could have been the first program I ever wrote that was actually useful in the real world: I remember printing some diagrams and a map of Zimbabwe for my older brother's presentation at school (for use with an opaque projector). I think he even colored them in by hand...

author: In Vacuo Veritas
author_rank: Frequent Contributor
timestamp: November 28, 2018, 07:06:28 pm
content: https://en.wikipedia.org/wiki/The_Print_Shop

author: technix
author_rank: Super Contributor
timestamp: November 28, 2018, 07:39:16 pm
content: How does this look like?Code:---------------------------------------------------------------------------------- @file HelloAX301.vhd---------------------------------------------------------------------------------- @brief AX301 physical layout file.---- @description-- This file describes the physical layout of Alinx AX301 FPGA learning kit.---- @note-- When building this module with the matching pinout of the board, make sure-- the dual-use pins are properly set to FPGA fabric mode.---- @author Max Chan <max@example.org>-- @date Nov. 11, 2018-- @version v0r2--------------------------------------------------------------------------------I haven't figured out how to get doxygen to work with VHDL yet, but this is cray to me that I ended up typing out this thing.

author: Nominal Animal
author_rank: Super Contributor
timestamp: November 28, 2018, 08:03:53 pm
content: technix, at least seven of those sixteen lines contains very useful information; that makes itpackedwith information, compared to an average fileI personally need to start adding SPDX license comments to my examples, like// SPDX-License-Identifier: CC0-1.0. I've always hated adding the legalese blurbs.

author: legacy
author_rank: Super Contributor
timestamp: November 28, 2018, 08:37:26 pm
content: Insightcosts 250 euro for a single minimal license but it handles this very neatly. It introduces a way to express headers and footnote in a text file by a sort of magic words which make the tool able to visualize the text (talking about C code, VHDL code, whatever is a source code) on the screen with the proper font and size. Brilliant!

author: bsudbrink
author_rank: Frequent Contributor
timestamp: November 28, 2018, 08:38:35 pm
content: Code:VV VV MM MMVV VV MMM MMMVV VV MMMM MMMMVV VV MM MM MM MM3333333333 777777777777MMMM 00000000333333333333 77777777777 MM 000000000033 VV33 77VV 77 00MM 00V33 VV 77M 00MM 0033 VV 77MM 00MM 003333VV VV 77 MM 00MM 003333 VVVV 77 MM 00MM 0033 VV 77 MM 00MM 0033 77 00 0033 33 77 00 00333333333333 77 00000000003333333333 77 00000000

author: legacy
author_rank: Super Contributor
timestamp: November 28, 2018, 08:46:42 pm
content: Quote from: Nominal Animal on November 28, 2018, 08:03:53 pmyup, no doubt it's so really boring that you risk forgetting it done.For publishing C code on the web in the form of HTML, I have created a C tool that creates an HTML pageCode:myC-2-html file.c file.htmlI have also added a special flag to add a header concerning the licenseCode:myC-2-html file.c file.html --header license.txtif not specified, it loads and applies a default license (BSD).You can do the same, even by a simple cat license.txt file.c > going_to_be_published_file.c_gtbpI use the file extension c_gtbp to remember that the file already contains the license in its headerso you cannot be wrong

author: SiliconWizard
author_rank: Super Contributor
timestamp: November 29, 2018, 12:46:44 am
content: Quote from: legacy on November 28, 2018, 08:46:42 pmDoes it implement syntax highlighting?

author: legacy
author_rank: Super Contributor
timestamp: November 29, 2018, 02:18:05 am
content: Quote from: SiliconWizard on November 29, 2018, 12:46:44 amcurrently no, it's super simple, but it can be added.Do you want the code? I might put it on DTB!

author: cdev
author_rank: Super Contributor
timestamp: November 29, 2018, 02:49:54 pm
content: What I miss are the color ASCII-artanimationswhich used to unroll when you connected to old dial up BBSs.(Not the same as viewing ASCII-art video in a frame buffer - Now we have libcaca, etc. not the same).

author: Nominal Animal
author_rank: Super Contributor
timestamp: November 29, 2018, 03:25:14 pm
content: You meanANSIart, cdev?The "animation" was basically just later parts of the output moving the cursor around, and overwriting stuff, usingANSI escape codesfor colors and moving the cursor; and non-ASCII characters. CP-437 with box drawing and block elements was one common one used, if I recall correctly. Because of low modem baud rates, it felt like animation.

author: SparkyFX
author_rank: Frequent Contributor
timestamp: November 29, 2018, 03:44:17 pm
content: Yeah, at some point those animations got too fast to keep reading it while it scrolled down the screen. And so "more" was born.

author: cdev
author_rank: Super Contributor
timestamp: November 30, 2018, 11:00:33 pm
content: Yes, thank you!of course that (ANSI-escape-code-art) is what I meant.Now you all can tell. I am very very old.Quote from: Nominal Animal on November 29, 2018, 03:25:14 pm