forked from zigalenarcic/mangl
-
Notifications
You must be signed in to change notification settings - Fork 0
/
mangl.1
94 lines (94 loc) · 2.12 KB
/
mangl.1
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
.\"
.Dd $Mdocdate: January 17 2020 $
.Dt MANGL 1
.Os
.Sh NAME
.Nm mangl
.Nd graphical man page viewer
.Sh SYNOPSIS
.Nm mangl
.Op Fl fhlV
.Op Oo Ar section Oc Ar page
.Sh DESCRIPTION
The
.Nm
utility uses OpenGL to display man pages with clickable hyperlinks
and smooth scrolling.
.Pp
The options are as follows:
.Bl -tag -width Ds
.It Fl f , Fl -no-fork
Don't fork the GUI in the background.
.It Fl h , Fl -help
Show the usage and quit.
.It Fl l , Fl -local-file
Interpret
.Ar page
as a local filename.
.It Fl V , Fl -version
Print the version and quit.
.El
.Sh MANGL STARTUP FILE
The
.Ar .manglrc
file may contain configuration options.
The defaults are
.Bd -literal -offset indent
font: Anonymous Pro
font_size: 10
gui_scale: 1
line_spacing: 1
initial_window_rows: 40
color_background: #151515
color_foreground: #fdfde8
color_bold: #a4d4f1
color_italic: #ffce79
color_dim: #7b7b7b
color_scrollbar_background: #262626
color_scrollbar_thumb: #454545
color_scrollbar_thumb_hover: #545454
color_link: #4515ff
color_gui_1: #ebb470
color_gui_2: #8fbfdc
color_error: #ff1515
color_searches: #1515ff
color_search_selected: #15ff15
.Ed
font parameter uses the fc-match external program to find the font
file.
The font file can also be specified directly.
.Sh KEYBOARD AND MOUSE COMMANDS
.Bl -tag -width Ds
.It Cm j
Move the cursor down one line.
.It Cm k
Move the cursor up one line.
.It Aq Cm cursor-arrows
The cursor arrow keys should work, too.
.It Ao Cm space Ac , Ao shift-space Ac
Scroll by one page.
.It Ao Cm page-up Ac , Ao page-down Ac
Scroll by one page.
.It Ao Cm Alt-v Ac , Ao Cm Ctrl-v Ac
Scroll by one page.
.It Cm gg , Ao Home Ac
Go to beginning of the page.
.It Cm G , Ao End Ac
Go to the end of the page.
.It Cm b , Ao Esc Ac , Ao right-mouse-click Ac
Go back to the previous page.
.It Cm f
Go forward to the next page after going back with b.
.It Aq Cm Ctrl-F
Open search for manpages.
.It Cm q , Ao Ctrl-C Ac , Ao Ctrl-D Ac
Exit the program.
.It Cm / Ns text
Search for the string
.Dq text
in the file,
and move the cursor to its first character.
Case insensitive unless text is mixed-case.
.It Cm n, N
Move to the next (N:previous) location of text.
.El