diff --git a/catpoint/Makefile b/catpoint/Makefile deleted file mode 100644 index b764a56..0000000 --- a/catpoint/Makefile +++ /dev/null @@ -1,9 +0,0 @@ -# catpoint - -LDLIBS = -lcurses - -BIN = catpoint -all: $(BIN) - -clean: - rm -f $(BIN) diff --git a/catpoint/README b/catpoint/README deleted file mode 100644 index 9bb9cec..0000000 --- a/catpoint/README +++ /dev/null @@ -1,10 +0,0 @@ -# Synopsis - -Catpoint is a simple viewer of text files written in curses. -Further documentation comes in a series of slides. Just do: - - $ make && ./catpoint showoff/*.txt - -# Usage - - catpoint file ... diff --git a/catpoint/SOURCE b/catpoint/SOURCE deleted file mode 100644 index f184add..0000000 --- a/catpoint/SOURCE +++ /dev/null @@ -1,11 +0,0 @@ -This source has been taken from - - http://www.2f30.org/~lostd - -Sadly the source seems to not work when this repository was created so I added -the file as-is. There was no LICENSE included, so assume the work to be public -domain. - - -Christoph Lohmann, 2014-01-21 - diff --git a/catpoint/catpoint.c b/catpoint/catpoint.c deleted file mode 100644 index c20daa0..0000000 --- a/catpoint/catpoint.c +++ /dev/null @@ -1,88 +0,0 @@ -/* $Id: catpoint.c,v 1.2 2013/03/28 12:00:48 lostd Exp $ */ - -#include -#include - -#include -#include -#include -#include -#include -#include - -int -main(int argc, char *argv[]) -{ - int c, i, fd; - char **p; /* the slides */ - - if (argc == 1) - errx(1, "usage: %s file ...", argv[0]); - argv++; - argc--; - - p = calloc(argc, sizeof(char *)); - - /* map files to mem */ - for (i = 0; argv[i] != NULL; i++) { - fd = open(argv[i], O_RDONLY, 0); - if (fd == -1) - err(1, "open: %s", argv[i]); - p[i] = mmap(NULL, 0x1000, PROT_READ, MAP_PRIVATE, fd, 0); - if (p[i] == MAP_FAILED) - err(1, "mmap"); - close(fd); - } - - /* init curses */ - initscr(); - cbreak(); - noecho(); - nonl(); - intrflush(stdscr, FALSE); - keypad(stdscr, TRUE); - curs_set(FALSE); /* hide cursor */ - - /* start */ - i = 0; -show: - /* display slide */ - clear(); - printw(p[i]); -again: - c = getch(); - switch (c) { - case 'q': - break; - /* next */ - case 'l': - case 'j': - case KEY_RIGHT: - case KEY_DOWN: - if (i < argc - 1) { - i++; - goto show; - } - goto again; - /* prev */ - case 'h': - case 'k': - case KEY_LEFT: - case KEY_UP: - if (i > 0) { - i--; - goto show; - } - goto again; - default: - goto again; - } - - /* unmap mem */ - for (i = 0; argv[i] != NULL; i++) - munmap(p[i], 0x1000); - - endwin(); /* restore terminal */ - - return (0); -} diff --git a/catpoint/showoff/00-intro.txt b/catpoint/showoff/00-intro.txt deleted file mode 100644 index dcb6ce5..0000000 --- a/catpoint/showoff/00-intro.txt +++ /dev/null @@ -1,13 +0,0 @@ - - - - - - .----------------------------------------------------------------. - | How to transform your presentation into pure art with catpoint | - '----------------------------------------------------------------' - - - Lazaros Koromilas - - http://www.2f30.org/~lostd diff --git a/catpoint/showoff/01-files.txt b/catpoint/showoff/01-files.txt deleted file mode 100644 index cd6cb25..0000000 --- a/catpoint/showoff/01-files.txt +++ /dev/null @@ -1,18 +0,0 @@ - - Create the slides - ================= - - o Create a text file for every slide - - 00-intro.txt - 01-files.txt - 02-config.txt - 03-run.txt - 04-graph.txt - 99-end.txt - - o You can use banner or figlet to generate text art - - o You can use gnuplot to produce graphs using - - set term dumb diff --git a/catpoint/showoff/02-config.txt b/catpoint/showoff/02-config.txt deleted file mode 100644 index 65d7107..0000000 --- a/catpoint/showoff/02-config.txt +++ /dev/null @@ -1,12 +0,0 @@ - - Configure the environment - ========================= - - o You can alter your xterm defaults by adding the - following lines to your ~/.Xdefaults: - - XTerm*background: white - XTerm*foreground: black - XTerm*faceName: xft:Monospace:size=16 - - o Open an xterm and maximize its window diff --git a/catpoint/showoff/03-run.txt b/catpoint/showoff/03-run.txt deleted file mode 100644 index 4ea3501..0000000 --- a/catpoint/showoff/03-run.txt +++ /dev/null @@ -1,9 +0,0 @@ - - Run the presentation - ==================== - - o Go to the directory where the files live - - o Run catpoint with the list of files as arguments - - $ catpoint *.txt diff --git a/catpoint/showoff/04-graph.txt b/catpoint/showoff/04-graph.txt deleted file mode 100644 index 5a899ac..0000000 --- a/catpoint/showoff/04-graph.txt +++ /dev/null @@ -1,22 +0,0 @@ - - Show graphs - =========== - - +---------+---------+---------+---------+---------+---------+---------+ - | Rate +----+ | - | | - 20 ++ +-+ ++ - | +-+ | | +-+ | - | | | | | | | | - 15 ++ +-+ | | | | | | ++ - | | | | | | | | | | - | | | | | | | | | | - 10 ++ +-+ | | | | | | | | ++ - | | | | | | | | | | | | - | | | | | | | | | | | | - 5 ++ +-+ | | | | | | | | | | ++ - | | | | | | | | | | | | | | - | | | | | | | | | | | | | | - 0 ++--------+---------+---------+---------+---------+---------+--------++ - 60 128 256 512 1024 1514 - Packet size (bytes) diff --git a/catpoint/showoff/05-export.txt b/catpoint/showoff/05-export.txt deleted file mode 100644 index 67733db..0000000 --- a/catpoint/showoff/05-export.txt +++ /dev/null @@ -1,8 +0,0 @@ - - Exporting - ========= - - o Easily create a basic Black on White PDF export like that: - - $ enscript *.txt -Brf "Courier16" -p - > slides.ps - $ ps2pdf slides.ps diff --git a/catpoint/showoff/99-end.txt b/catpoint/showoff/99-end.txt deleted file mode 100644 index 3e5b718..0000000 --- a/catpoint/showoff/99-end.txt +++ /dev/null @@ -1,12 +0,0 @@ - - EOF - === - - - - - _____ _ _ _ - |_ _| |__ __ _ _ __ | | _____| | - | | | '_ \ / _` | '_ \| |/ / __| | - | | | | | | (_| | | | | <\__ \_| - |_| |_| |_|\__,_|_| |_|_|\_\___(_)