mirror of
https://github.com/ascii-boxes/boxes.git
synced 2025-06-25 04:02:05 +02:00
Completely revised code of "tjc" design
This commit is contained in:
parent
f0c4f546d6
commit
6677c2a115
52
boxes-config
52
boxes-config
@ -3,7 +3,7 @@
|
|||||||
# Date created: March 17, 1999 (Wednesday, 17:02h)
|
# Date created: March 17, 1999 (Wednesday, 17:02h)
|
||||||
# Author: Thomas Jensen
|
# Author: Thomas Jensen
|
||||||
# tsjensen@stud.informatik.uni-erlangen.de
|
# tsjensen@stud.informatik.uni-erlangen.de
|
||||||
# Version: $Id: boxes-config,v 1.8 1999/06/28 18:42:19 tsjensen Exp tsjensen $
|
# Version: $Id: boxes-config,v 1.9 1999/07/12 18:34:14 tsjensen Exp tsjensen $
|
||||||
# Format: ASCII Text
|
# Format: ASCII Text
|
||||||
# World Wide Web: http://home.pages.de/~jensen/boxes/
|
# World Wide Web: http://home.pages.de/~jensen/boxes/
|
||||||
# Purpose: Example configuration file for the boxes program
|
# Purpose: Example configuration file for the boxes program
|
||||||
@ -11,6 +11,11 @@
|
|||||||
# Revision History:
|
# Revision History:
|
||||||
#
|
#
|
||||||
# $Log: boxes-config,v $
|
# $Log: boxes-config,v $
|
||||||
|
# Revision 1.9 1999/07/12 18:34:14 tsjensen
|
||||||
|
# Added "headline" design to show useful example of regexp backreferences
|
||||||
|
# Fixed small bug in sample block of "stark2" design
|
||||||
|
# Added padding of t1 for design "parchment"
|
||||||
|
#
|
||||||
# Revision 1.8 1999/06/28 18:42:19 tsjensen
|
# Revision 1.8 1999/06/28 18:42:19 tsjensen
|
||||||
# Moved "C" design to first position in file, so it remains the default
|
# Moved "C" design to first position in file, so it remains the default
|
||||||
# Changed netdata design to use padding option and reversion
|
# Changed netdata design to use padding option and reversion
|
||||||
@ -729,28 +734,25 @@ END girl
|
|||||||
BOX tjc
|
BOX tjc
|
||||||
|
|
||||||
author "Thomas Jensen <tsjensen@stud.informatik.uni-erlangen.de>"
|
author "Thomas Jensen <tsjensen@stud.informatik.uni-erlangen.de>"
|
||||||
revision "1.0"
|
revision "1.1"
|
||||||
revdate "April 02, 1999 (Friday, 19:26h)"
|
revdate "July 16, 1999 (Friday, 18:55h)"
|
||||||
created "April 02, 1999 (Friday, 19:26h)"
|
created "April 02, 1999 (Friday, 19:26h)"
|
||||||
|
|
||||||
SAMple {
|
SAmple {
|
||||||
static size_t expand_tabs_into (const char *input_buffer, const int in_len,
|
static char *foo (const int a, const int b)
|
||||||
const int tabstop, char **text)
|
|
||||||
/*
|
/*
|
||||||
* Expand tab chars in input_buffer and store result in text.
|
* Do the foo on the bar and around again.
|
||||||
*
|
*
|
||||||
* input_buffer Line of text with tab chars
|
* a number of doodlefrobs
|
||||||
* in_len length of the string in input_buffer
|
* b barfoo mode (0 == off)
|
||||||
* tabstop tab stop distance
|
|
||||||
* text address of the pointer that will take the result
|
|
||||||
*
|
*
|
||||||
* Memory will be allocated for the result.
|
* Memory will be allocated for the result.
|
||||||
* Should only be called for lines of length > 0;
|
* Should only be called for lines of length > 0;
|
||||||
*
|
*
|
||||||
* RETURNS: Success: Length of the result line in characters (> 0)
|
* RETURNS: Success: Pointer to result line
|
||||||
* Error: 0 (e.g. out of memory)
|
* Error: 0 (e.g. out of memory)
|
||||||
*
|
*
|
||||||
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
|
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
|
||||||
*/
|
*/
|
||||||
{
|
{
|
||||||
static char temp ....
|
static char temp ....
|
||||||
@ -759,21 +761,27 @@ SAMple {
|
|||||||
|
|
||||||
indent "none" # alternatives: "box", "text"
|
indent "none" # alternatives: "box", "text"
|
||||||
|
|
||||||
replace "\\*/" with "*\\/"
|
replace "\\*/" with "*\\/" # quote closing comment tags
|
||||||
|
reverse "\\*\\\\/" to "*/"
|
||||||
|
|
||||||
shapes {
|
shapes {
|
||||||
w (" * ")
|
wnw ("/*")
|
||||||
sw (" * ", "* * ", " */ ")
|
w (" *")
|
||||||
nw ("/* ")
|
sw ("* ", " *")
|
||||||
s (" ", "* ", " ")
|
ssw ("*", "/")
|
||||||
se (" ", "*", " ")
|
s (" *", " ")
|
||||||
ne (" ")
|
|
||||||
n (" ")
|
ne(" ") n(" ") nw(" ") # empty north side
|
||||||
e (" ")
|
se(" "," ") e (" ") # empty east side
|
||||||
}
|
}
|
||||||
|
|
||||||
elastic (n, e, s, w)
|
elastic (n, e, s, w)
|
||||||
|
|
||||||
|
padding {
|
||||||
|
left 2
|
||||||
|
vertical 1
|
||||||
|
}
|
||||||
|
|
||||||
END tjc
|
END tjc
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user