catpoint.1 (1402B)
1 .Dd December 28, 2020 2 .Dt CATPOINT 1 3 .Os 4 .Sh NAME 5 .Nm catpoint 6 .Nd simple viewer of text files 7 .Sh SYNOPSIS 8 .Nm 9 .Op Ar file... 10 .Sh DESCRIPTION 11 .Nm 12 reads text files from the 13 .Ar files 14 arguments and prints them to the terminal. 15 If the file is executable, it is run with the next slides as an argument. 16 The slides can be navigated with keybinds. 17 .Sh KEYBINDS 18 .Bl -tag -width Ds 19 .It ^D, q, ESCAPE, F5 20 Quit 21 .It l, j, SPACE, ARROW RIGHT, ARROW DOWN, PAGE DOWN 22 Go to next slide. 23 .It h, k, ARROW LEFT, ARROW UP, PAGE UP 24 Go to previous slide. 25 .It L, J, H, K 26 Go to next/previous slide without transition. 27 .It ., u, BEGIN KEY, HOME KEY 28 Go to the first slide. 29 .It i, END KEY 30 Go to the last slide. 31 .It r, ^L 32 Redraw the current slide contents. 33 .El 34 .Sh SIGNALS 35 .Bl -tag -width Ds 36 .It SIGHUP 37 Reload and redraw the current slide contents. 38 .It SIGINT, SIGQUIT, SIGTERM 39 Quit 40 .It SIGWINCH 41 Redraw the current slide contents. 42 .El 43 .Sh EXAMPLES 44 Present all the text files in the current directory: 45 .Pp 46 .Dl $ catpoint *.txt 47 .Pp 48 Run the 49 .Pa ./run.sh 50 executable before the slide 51 .Pa 2.txt 52 and 53 .Pa 5.txt 54 while rendering all the others normally: 55 .Pp 56 .Dl $ catpoint 1.txt ./run.sh 2.txt 3.txt 4.txt ./run.sh 5.txt 57 .Pp 58 Insert 59 .Pa ./run.sh 60 before every text file so that it runs on each slide: 61 .Pp 62 .Dl $ catpoint-wrap ./run.sh *.txt 63 .Sh EXIT STATUS 64 .Ex -std 65 .Sh SEE ALSO 66 .Xr cat 1 67 .Sh AUTHORS 68 .An Christoph Lohmann Aq Mt 20h@r-36.net