tpp 1.3.1

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,9 @@
1
+ --author Andreas Krennmair
2
+ --title exec fbi /home/nion/privat/bilder/linux/bart.gif
3
+ --newpage
4
+ --heading heading
5
+
6
+ bla. bla. bla.
7
+ ---
8
+ --exec echo "foobar - this is the exec output"
9
+ more bla.
@@ -0,0 +1,6 @@
1
+ --author Nico Golde <nico@ngolde.de>
2
+ --date today
3
+ --heading Test of horizon line
4
+ --newpage
5
+ --heading TPP can display a horizontal line too.
6
+ --horline
@@ -0,0 +1,22 @@
1
+ --author Andreas Krennmair
2
+ --title Huge Text
3
+ --newpage asdf
4
+ --huge Test!
5
+ --newpage jkl�
6
+ --huge Text!
7
+ --newpage qwertz
8
+ --huge Abrakadabra!
9
+ --newpage
10
+ Normaler Text
11
+ ---
12
+ --huge Simsalabim!
13
+ ---
14
+ --huge Is that a stupid presentation!
15
+ ---
16
+ Normal text.
17
+ --newpage
18
+ --sethugefont block
19
+ --huge other font
20
+ --newpage
21
+ --sethugefont standard
22
+ --huge This is the end...
@@ -0,0 +1,26 @@
1
+ --author Andreas Krennmair <ak@synflood.at>
2
+ --title Some presentation
3
+ --date today
4
+ --newpage
5
+ --center This Presentation's Agenda
6
+
7
+ * Introduction
8
+ ---
9
+
10
+ * Historic Overview
11
+ ---
12
+
13
+ * Basic Concepts
14
+ ---
15
+
16
+ * Implementation
17
+ ---
18
+
19
+ * Examples
20
+ ---
21
+
22
+ * Conclusions
23
+ ---
24
+
25
+ And now for the inofficial part
26
+ --center PARTY, PARTY, PARTY !!!
@@ -0,0 +1,204 @@
1
+ --author Andreas Krennmair
2
+ --title Many Slides
3
+ --date today
4
+ this is the abstract. bla. bla. bla.
5
+ --newpage slide1
6
+ this is slide 1
7
+ --newpage slide2
8
+ this is slide 2
9
+ --newpage slide3
10
+ this is slide 3
11
+ --newpage slide4
12
+ this is slide 4
13
+ --newpage slide5
14
+ this is slide 5
15
+ --newpage slide6
16
+ this is slide 6
17
+ --newpage slide7
18
+ this is slide 7
19
+ --newpage slide8
20
+ this is slide 8
21
+ --newpage slide9
22
+ this is slide 9
23
+ --newpage slide10
24
+ this is slide 10
25
+ --newpage slide11
26
+ this is slide 11
27
+ --newpage slide12
28
+ this is slide 12
29
+ --newpage slide13
30
+ this is slide 13
31
+ --newpage slide14
32
+ this is slide 14
33
+ --newpage slide15
34
+ this is slide 15
35
+ --newpage slide16
36
+ this is slide 16
37
+ --newpage slide17
38
+ this is slide 17
39
+ --newpage slide18
40
+ this is slide 18
41
+ --newpage slide19
42
+ this is slide 19
43
+ --newpage slide20
44
+ this is slide 20
45
+ --newpage slide21
46
+ this is slide 21
47
+ --newpage slide22
48
+ this is slide 22
49
+ --newpage slide23
50
+ this is slide 23
51
+ --newpage slide24
52
+ this is slide 24
53
+ --newpage slide25
54
+ this is slide 25
55
+ --newpage slide26
56
+ this is slide 26
57
+ --newpage slide27
58
+ this is slide 27
59
+ --newpage slide28
60
+ this is slide 28
61
+ --newpage slide29
62
+ this is slide 29
63
+ --newpage slide30
64
+ this is slide 30
65
+ --newpage slide31
66
+ this is slide 31
67
+ --newpage slide32
68
+ this is slide 32
69
+ --newpage slide33
70
+ this is slide 33
71
+ --newpage slide34
72
+ this is slide 34
73
+ --newpage slide35
74
+ this is slide 35
75
+ --newpage slide36
76
+ this is slide 36
77
+ --newpage slide37
78
+ this is slide 37
79
+ --newpage slide38
80
+ this is slide 38
81
+ --newpage slide39
82
+ this is slide 39
83
+ --newpage slide40
84
+ this is slide 40
85
+ --newpage slide41
86
+ this is slide 41
87
+ --newpage slide42
88
+ this is slide 42
89
+ --newpage slide43
90
+ this is slide 43
91
+ --newpage slide44
92
+ this is slide 44
93
+ --newpage slide45
94
+ this is slide 45
95
+ --newpage slide46
96
+ this is slide 46
97
+ --newpage slide47
98
+ this is slide 47
99
+ --newpage slide48
100
+ this is slide 48
101
+ --newpage slide49
102
+ this is slide 49
103
+ --newpage slide50
104
+ this is slide 50
105
+ --newpage slide51
106
+ this is slide 51
107
+ --newpage slide52
108
+ this is slide 52
109
+ --newpage slide53
110
+ this is slide 53
111
+ --newpage slide54
112
+ this is slide 54
113
+ --newpage slide55
114
+ this is slide 55
115
+ --newpage slide56
116
+ this is slide 56
117
+ --newpage slide57
118
+ this is slide 57
119
+ --newpage slide58
120
+ this is slide 58
121
+ --newpage slide59
122
+ this is slide 59
123
+ --newpage slide60
124
+ this is slide 60
125
+ --newpage slide61
126
+ this is slide 61
127
+ --newpage slide62
128
+ this is slide 62
129
+ --newpage slide63
130
+ this is slide 63
131
+ --newpage slide64
132
+ this is slide 64
133
+ --newpage slide65
134
+ this is slide 65
135
+ --newpage slide66
136
+ this is slide 66
137
+ --newpage slide67
138
+ this is slide 67
139
+ --newpage slide68
140
+ this is slide 68
141
+ --newpage slide69
142
+ this is slide 69
143
+ --newpage slide70
144
+ this is slide 70
145
+ --newpage slide71
146
+ this is slide 71
147
+ --newpage slide72
148
+ this is slide 72
149
+ --newpage slide73
150
+ this is slide 73
151
+ --newpage slide74
152
+ this is slide 74
153
+ --newpage slide75
154
+ this is slide 75
155
+ --newpage slide76
156
+ this is slide 76
157
+ --newpage slide77
158
+ this is slide 77
159
+ --newpage slide78
160
+ this is slide 78
161
+ --newpage slide79
162
+ this is slide 79
163
+ --newpage slide80
164
+ this is slide 80
165
+ --newpage slide81
166
+ this is slide 81
167
+ --newpage slide82
168
+ this is slide 82
169
+ --newpage slide83
170
+ this is slide 83
171
+ --newpage slide84
172
+ this is slide 84
173
+ --newpage slide85
174
+ this is slide 85
175
+ --newpage slide86
176
+ this is slide 86
177
+ --newpage slide87
178
+ this is slide 87
179
+ --newpage slide88
180
+ this is slide 88
181
+ --newpage slide89
182
+ this is slide 89
183
+ --newpage slide90
184
+ this is slide 90
185
+ --newpage slide91
186
+ this is slide 91
187
+ --newpage slide92
188
+ this is slide 92
189
+ --newpage slide93
190
+ this is slide 93
191
+ --newpage slide94
192
+ this is slide 94
193
+ --newpage slide95
194
+ this is slide 95
195
+ --newpage slide96
196
+ this is slide 96
197
+ --newpage slide97
198
+ this is slide 97
199
+ --newpage slide98
200
+ this is slide 98
201
+ --newpage slide99
202
+ this is slide 99
203
+ --newpage slide100
204
+ this is slide 100
@@ -0,0 +1,40 @@
1
+ --author Andreas Krennmair
2
+ --title Some shell examples
3
+ --date foobar
4
+ --newpage
5
+ --center Some "funny" shell tricks
6
+ This example shows some of the so-called "funny" shell tricks on csh/sh
7
+ --beginshelloutput
8
+ $ make love
9
+ Make: Don't know how to make love. Stop.
10
+ $ %blow
11
+ %blow: No such job.
12
+ $ PATH=pretending! /usr/ucb/which sense
13
+ no sense in pretending!
14
+ ---
15
+ $ drink < bottle; opener
16
+ bottle: cannot open
17
+ opener: not found
18
+ ---
19
+ $ If I had a ( for every $ Congress spent, what would I have?
20
+ Too many ('s.
21
+ $
22
+ --endshelloutput
23
+ ---
24
+ And here some more text.
25
+ --newpage
26
+ --center And here some more serious shell things
27
+ --beginshelloutput
28
+ $ ls /
29
+ bin/ dev/ initrd/ lost+found/ repos/ tftpboot/ vmlinuz@
30
+ boot/ etc/ initrd.img@ mnt/ root/ tmp/ vmlinuz.old@
31
+ cdrom/ floppy/ initrd.img.old@ opt/ sbin/ usr/
32
+ data/ home/ lib/ proc/ sys/ var/
33
+ $ uptime
34
+ 23:22:41 up 23 days, 4:18, 8 users, load average: 0.10, 0.25, 0.25
35
+ $ sleep 3
36
+ --sleep 3
37
+ $ uname -rnsm
38
+ Linux tintifax 2.6.6-1-686-smp i686
39
+ $
40
+ --endshelloutput
@@ -0,0 +1,51 @@
1
+ --author Nico Golde <nico@ngolde.de>
2
+ --title Slide text test
3
+ --newpage
4
+ --beginslideleft
5
+ Hallo, ich bin Nico
6
+ Hallo, ich bin Andreas
7
+ --endslideleft
8
+ ---
9
+ --beginslideright
10
+ Das ist der Slide-Right-Test
11
+ --endslideright
12
+ --newpage
13
+ --heading jjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjj
14
+ asdf jkl� asdf jkl� asdf jkl�
15
+ asdf jkl� asdf jkl� asdf jkl�
16
+ asdf jkl� asdf jkl� asdf jkl�
17
+ asdf jkl� asdf jkl� asdf jkl�
18
+ asdf jkl� asdf jkl� asdf jkl�
19
+ asdf jkl� asdf jkl� asdf jkl�
20
+
21
+ --beginslidetop
22
+ * Testtesttesttest
23
+
24
+ * Test 2 TEst 2 TEst 2
25
+
26
+ * Test 3 Test 3 Test 3
27
+ ---
28
+
29
+ * Test4Test4Test4Test4Test4
30
+ --endslidetop
31
+ --newpage
32
+ --heading jjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjj
33
+ text first.
34
+ ---
35
+ more text.
36
+
37
+ and even more text. bla. bla. bla.
38
+ --beginslidetop
39
+ aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
40
+ --endslidetop
41
+ --newpage
42
+ --heading jjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjj
43
+ some text
44
+ --beginslidebottom
45
+
46
+ * foobar
47
+
48
+ * baz quux xyzzy
49
+
50
+ * blubber blubber blubber.
51
+ --endslidebottom
@@ -0,0 +1,49 @@
1
+ --title Some Source Code Examples
2
+ --author Andreas Krennmair
3
+ --date today
4
+ --newpage
5
+ --center The Famous "Hello World" Source Code
6
+ --beginoutput
7
+ #include <stdio.h>
8
+
9
+ int main(void) {
10
+ puts("Hello World");
11
+ return 0;
12
+ }
13
+ --endoutput
14
+ --newpage
15
+ --center The Very Same Example, But This Time In Pieces
16
+ --beginoutput
17
+ #include <stdio.h>
18
+ ---
19
+
20
+ int main(void) {
21
+ ---
22
+ puts("Hello World");
23
+ ---
24
+ return 0;
25
+ ---
26
+ }
27
+ --endoutput
28
+ --newpage
29
+ --heading This is some example source code
30
+
31
+ --beginoutput
32
+ static void run_command(char *cmd, char *ip) {
33
+ int pid;
34
+ pid = fork();
35
+ if (pid == 0) {
36
+ char env_ip[20], env_cmd[strlen(cmd)+10];
37
+ char *const envp[] = { env_ip, env_cmd, "PATH=/bin:/usr/bin", 0 };
38
+ snprintf(env_cmd, sizeof(env_cmd), "CMD=%s", cmd);
39
+ snprintf(env_ip, sizeof(env_ip), "IP=%s", ip);
40
+ execle("/bin/sh", "/bin/sh", "-c", cmd, NULL, envp);
41
+ limit_syslog(LOG_ERR, "execl of %s failed: %s", cmd, strerror(errno));
42
+ exit(EXIT_FAILURE);
43
+ } else if (pid == -1) {
44
+ limit_syslog(LOG_ERR, "fork failed: %s", strerror(errno));
45
+ } else {
46
+ (void) waitpid(pid, NULL, 0);
47
+ }
48
+ }
49
+ --endoutput
@@ -0,0 +1,17 @@
1
+ --##comment in the beginning
2
+ --author Nico Golde <nico@ngolde.de>
3
+ --title Test for TPP
4
+ --date today
5
+ --withborder
6
+ The next line in the source file is a comment and will not be displayed.
7
+ --##This is the abstract, which is pretty cool.
8
+ It consists of several lines.
9
+ --newpage
10
+ --withborder
11
+ This is the next page, which also consists of
12
+ several lines
13
+ blubber. bla.
14
+ --## comment somewhere else
15
+ --newpage
16
+ --withborder
17
+ asdf jkl� asdf jkl� asdf jkl� asdf jkl�
@@ -0,0 +1,161 @@
1
+ --bgcolor white
2
+ --fgcolor black
3
+ --title TPP Feature Show
4
+ --author Andreas Krennmair
5
+ --date today
6
+ --newpage intro
7
+ --heading What is TPP?
8
+
9
+ * A text console application
10
+ ---
11
+
12
+ * "Powerpoint for Sven G^W^Wtext tool users"
13
+ ---
14
+
15
+ * Simple file format, only text editor required
16
+ ---
17
+
18
+ * First version: 4-hour hack in Ruby + ruby-ncurses
19
+ ---
20
+
21
+ * Extension until source code was f*cked up,
22
+ then complete rewrite w/ generic design
23
+ --newpage slide
24
+ --heading Basic TPP Features
25
+
26
+ Simple text that is in one line
27
+ ---
28
+
29
+ What TPP also does is that it also takes very long lines, but doesn't simply output them, but break those long lines into a series of shorter ones, which are then printed to screen. Like this one. :-)
30
+ ---
31
+
32
+ --center You can also center text (long lines will be wrapped, too)
33
+ ---
34
+
35
+ --right And everything on the right side
36
+ ---
37
+
38
+ --beginslideleft
39
+ * You can slide it in from the left
40
+ * or from the right:
41
+ --endslideleft
42
+
43
+ --beginslideright
44
+ * Like this line, for example
45
+ --endslideright
46
+ ---
47
+ --beginslidetop
48
+ O R L O O K A T T H I S ! ! !
49
+ --endslidetop
50
+ ---
51
+ --beginslidebottom
52
+ O R T H I S ! ! !
53
+ --endslidetop
54
+ --newpage attrib
55
+ --heading Attributes
56
+
57
+ This should be normal
58
+ ---
59
+ --ulon
60
+ This should be underlined
61
+ ---
62
+ --revon
63
+ This should be underlined and reverse
64
+ ---
65
+ --boldon
66
+ This should be underlined, reverse and bold
67
+ --center This should be underlined, reverse, bold and centered
68
+ ---
69
+ --uloff
70
+ This should be reverse and bold
71
+ ---
72
+ --revoff
73
+ This should be bold
74
+ ---
75
+ --boldoff
76
+ This should be normal again
77
+ --newpage keys
78
+ --heading Keys to Control TPP
79
+
80
+ --beginoutput
81
+ space bar ............................... display next entry within page
82
+ space bar, cursor-down, cursor-right .... display next page
83
+ b, cursor-up, cursor-left ............... display previous page
84
+ q, Q .................................... quit tpp
85
+ j, J .................................... jump directly to page
86
+ s, S .................................... jump to the first page
87
+ e, E .................................... jump to the last page
88
+ c, C .................................... start command line
89
+ ?, h .................................... help screen
90
+ --endoutput
91
+ --newpage source
92
+ --heading Source Code Example
93
+
94
+ --beginoutput
95
+ --##comment in the beginning
96
+ --author Nico Golde <nico@ngolde.de>
97
+ --title Test for TPP
98
+ --date today
99
+ --withborder
100
+ The next line in the source file is a comment and will not be displayed.
101
+ --##This is the abstract, which is pretty cool.
102
+ It consists of several lines.
103
+ --newpage
104
+ --withborder
105
+ This is the next page, which also consists of
106
+ several lines
107
+ blubber. bla.
108
+ --## comment somewhere else
109
+ --newpage
110
+ --withborder
111
+ asdf jkl� asdf jkl� asdf jkl� asdf jkl�
112
+ --endoutput
113
+ --newpage other
114
+ --heading Other Things
115
+
116
+ This is supposed to be shell output:
117
+ --beginshelloutput
118
+ $ ls ~/bin
119
+ c89 cat if.pl seq ssh-agent ssh-agent.sh
120
+ $ cd ~/bin
121
+ $ ls -l
122
+ total 36
123
+ -rwxr-xr-x 1 ak staff 27 Jul 11 2003 c89
124
+ -rwxr-xr-x 1 ak staff 14732 Aug 26 2002 cat
125
+ -rwxr-xr-x 1 ak staff 236 Apr 27 2003 if.pl
126
+ -rwxr-xr-x 1 ak staff 73 Feb 19 2004 seq
127
+ -rwxr-xr-x 1 ak staff 126 Dec 21 20:45 ssh-agent
128
+ -rwxr-xr-x 1 ak staff 94 Jul 24 15:01 ssh-agent.sh
129
+ $
130
+ --endshelloutput
131
+ --newpage figlet
132
+ --heading FIGlet support!
133
+
134
+ --huge This is FIGlet
135
+ ---
136
+ --sethugefont mini
137
+ --huge This is the mini font
138
+ --newpage future
139
+ --heading Future Goals
140
+
141
+ * Release refactored version
142
+
143
+ ---
144
+ * More features (i.e. effects that make PowerPoint look lousy)
145
+
146
+ ---
147
+ * Stable support for export formats
148
+ --newpage thx
149
+ --heading Thanks To...
150
+
151
+ * Nico Golde, the TPP co-author, who came up with lots of nice features, and brought TPP into Debian
152
+
153
+ * Sven Guckes, who had the initial idea and established contact with Nico Golde, the TPP co-author
154
+
155
+ * Alfie, for writing a VIM syntax file
156
+
157
+ * arved, for bringing TPP into FreeBSD
158
+
159
+ * Patricia "trish" Jung, for writing a very good article about TPP
160
+ - "Linux User" and
161
+ - "Linux Magasinet" (Norway)