Blob


1 .\" Copyright (c) 2021 Omar Polo <op@omarpolo.com>
2 .\"
3 .\" Permission to use, copy, modify, and distribute this software for any
4 .\" purpose with or without fee is hereby granted, provided that the above
5 .\" copyright notice and this permission notice appear in all copies.
6 .\"
7 .\" THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
8 .\" WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
9 .\" MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
10 .\" ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
11 .\" WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
12 .\" ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
13 .\" OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
14 .Dd $Mdocdate: September 15 2021$
15 .Dt TELESCOPE 1
16 .Os
17 .Sh NAME
18 .Nm telescope
19 .Nd multi-protocol browser
20 .Sh SYNOPSIS
21 .Nm
22 .Bk -words
23 .Op Fl ChnSv
24 .Op Fl c Pa config
25 .Op Ar URL
26 .Ek
27 .Sh DESCRIPTION
28 .Nm
29 is an interactive browser that supports the Finger, Gemini and Gopher
30 protocols.
31 .Nm
32 features tabs, a minibuffer, interactive completions, bookmarks and
33 out-of-band TOFU verification.
34 .Pp
35 The arguments are as follows:
36 .Bl -tag -width xxxxxxxxxxxxx
37 .It Fl C , Fl -colors
38 Show all available colors and exit.
39 .It Fl c Pa config
40 Specify an alternative configuration file.
41 By default
42 .Pa $HOME/.telescope/config
43 is loaded.
44 .It Fl h , Fl -help
45 Display version and usage.
46 .It Fl n
47 Configtest mode.
48 Only check the configuration file for validity.
49 .It Fl S , Fl -safe
50 .Dq Safe
51 .Pq or Dq sandbox
52 mode.
53 Prevent
54 .Nm
55 from writing files to the disk.
56 .It Fl v , Fl -version
57 Display version.
58 .El
59 .Sh UI CONCEPTS
60 .Nm
61 interface is divided into four areas: the tabline, the body, the
62 modeline and the echoarea/minibuffer.
63 .Pp
64 The tabline is always at the top of the screen and displays the tabs
65 separated by a vertical line.
66 When there are more tabs than the size of the window allow to display,
67 the characters
68 .Sq \&<
69 or
70 .Sq \&>
71 are shown at the start/end of the tabline to indicate that there are
72 more tabs in that direction.
73 .Pp
74 The body occupies the majority of the visible area.
75 It contains the current page and optionally a side window.
76 .Pp
77 The modeline is the second to last row of the screen.
78 It shows some information about the page: a spinner when the page is
79 loading, the trust level, the document type, the scroll offset and the
80 URL.
81 .Pp
82 The echoarea is usually the last line of the screen.
83 Messages are often showed there, and link addresses too.
84 The echoarea is also used to obtain input from the user.
85 When commands like
86 .Ic swiper
87 or
88 .Ic link-select
89 are invoked, the minibuffer area grows to show possible completions.
90 .Sh TOFU
91 .Nm
92 aims to use the
93 .Dq Trust, but Verify Pq where appropriate
94 approach for
95 TOFU
96 .Pq Dq Trust On First Use .
97 The idea is to define three level of verification for a certificate:
98 .Bl -tag -width 12m
99 .It untrusted
100 .Pq Sq \&!
101 the server fingerprint does NOT match the stored value.
102 .It trusted
103 .Pq Sq v
104 the server fingerprint matches the store one.
105 .It verified
106 .Pq Sq V
107 the fingerprint matches and has been verified out-of-band.
108 .El
109 .Pp
110 The trust level of the page is indicated in the modeline with the
111 indicated character.
112 .Pp
113 Most of the time the
114 .Dq trusted
115 level is enough, but where is appropriate users should be able to
116 verify out-of-band the certificate.
117 .Pp
118 At the moment, there is no built-in support for an out-of-band
119 verification though.
120 .Sh SUPPORTED PROTOCOLS
121 The following protocols are supported:
122 .Bl -tag -width gemini://
123 .It about:
124 About pages are
125 .Nm
126 internal page.
127 See about:about for a list of all these pages.
128 .It file://
129 File types know to
130 .Nm ,
131 such as .gmi, .gemini, .txt, .md, .markdown, .diff or .patch, can be
132 viewed inside the application.
133 Types of local files are detected solely based on the file extension.
134 On some systems, such as
135 .Ox ,
136 only files inside special directories
137 .Pq like Pa /tmp No or Pa ~/Downloads
138 are available.
139 .It finger://
140 Finger URLs are interpreted as follows:
141 .Bl -bullet -compact
142 .It
143 the host is determined by the host name portion of the URL
144 .It
145 if the user portion of the URL is provided, it's interpreted as the
146 user to finger, otherwise the path component will be used
147 .El
148 thus
149 .Lk finger://user@hostname
150 and
151 .Lk finger://hostname/user
152 are treated as the same URL.
153 .It gemini://
154 Gemini is fully supported, with the exception of client-certificates.
155 .It gopher://
156 Gopher support is limited to items type 0, 1 and 7.
157 All text is assumed to be encoded in UTF-8 (or ASCII).
158 .El
159 .Pp
160 User-entered URLs, given as argument on the command line or entered
161 with
162 .Ic load-url ,
163 are intepreted with a simple heuristic:
164 .Bl -bullet -compact
165 .It
166 if it's a proper absolute URL then use it as-is,
167 .It
168 if it starts with
169 .Dq ./
170 or
171 .Dq /
172 assume it's a file:// URL,
173 .It
174 otherwise assume it's a Gemini URL.
175 .El
176 .Sh DEFAULT KEY BINDINGS
177 The default key bindings are very similar to GNU Emacs, but care has
178 been taken to include also bindings familiar for
179 .Xr vi 1
180 and
181 .Dq CUA
182 users.
183 In the following examples, C-x means Control-x, M-x means Meta-x,
184 where the Meta key may be either a special key on the keyboard or the
185 ALT key; otherwise ESC followed by the key X works as well, and C-M-x
186 means to press the key X together with both Control and Meta.
187 .Pp
188 Keys are usually a single character, like
189 .Sq p
190 or
191 .Sq n ,
192 but some special keys are accepted as well.
193 .Pp
194 .Bl -tag -width 16m -offset indent -compact
195 .It <up>
196 Up arrow
197 .It <down>
198 Down arrow
199 .It <left>
200 Left arrow
201 .It <right>
202 Right arrow
203 .It <prior>
204 Previous page/Page up
205 .It <next>
206 Next page/Page down
207 .It <home>
208 Home
209 .It <end>
210 End
211 .It <f0> thru <f63>
212 Function keys
213 .It del or backspace
214 Backspace
215 .It esc
216 Escape
217 .It space or spc
218 Space
219 .It enter or ret
220 Enter
221 .It tab
222 Tab
223 .It backtab
224 Depends on the configuration of the terminal emulator; usually shift
225 tab.
226 .El
227 .Ss GNU Emacs-like keys
228 .Bl -tag -width xxxxxxxxxxxx -offset indent -compact
229 .It C-p
230 previous-line
231 .It C-n
232 next-line
233 .It C-f
234 forward-char
235 .It C-b
236 backward-char
237 .It M-{
238 backward-paragraph
239 .It M-}
240 forward-paragraph
241 .It C-a
242 move-beginning-of-line
243 .It C-e
244 move-end-of-line
245 .It M-v, M-space
246 scroll-up
247 .It C-v, space
248 scroll-down
249 .It M-<
250 beginning-of-buffer
251 .It M->
252 end-of-buffer
253 .It C-x C-c
254 kill-telescope
255 .It C-g
256 clear-minibuf
257 .It M-x
258 execute-extended-command
259 .It C-c {
260 dec-fill-column
261 .It C-c }
262 inc-fill-column
263 .It C-c p
264 previous-heading
265 .It C-c n
266 next-heading
267 .It >
268 load-url
269 .It <
270 load-current-url
271 .It C-x C-f
272 load-url
273 .It C-x M-f
274 load-current-url
275 .It C-x o
276 other-window
277 .It C-x t 0
278 tab-close
279 .It C-x t 1
280 tab-close-other
281 .It C-x t 2
282 tab-new
283 .It C-x t o
284 tab-next
285 .It C-x t O
286 tab-previous
287 .It C-x t m
288 tab-move
289 .It C-x t M
290 tab-move-to
291 .It B, C-M-b
292 previous-page
293 .It F, C-M-f
294 next-page
295 .It <f7> a
296 bookmark-page
297 .It <f7> <f7>
298 list-bookmarks
299 .It C-z
300 suspend-telescope
301 .El
302 .Ss Xr vi 1 Ns -like keys
303 .Bl -tag -width xxxxxxxxxxxx -offset indent -compact
304 .It k
305 previous-line
306 .It j
307 next-line
308 .It l
309 forward-char
310 .It h
311 backward-char
312 .It {
313 backward-paragraph
314 .It }
315 forward-paragraph
316 .It ^
317 move-beginning-of-line
318 .It $
319 move-end-of-line
320 .It K
321 scroll-line-up
322 .It J
323 scroll-line-down
324 .It g g
325 beginning-of-buffer
326 .It G
327 end-of-buffer
328 .It g D
329 tab-close
330 .It g N
331 tab-new
332 .It g t
333 tab-next
334 .It g T
335 tab-previous
336 .It g M-t
337 tab-move
338 .It g M-T
339 tab-move-to
340 .It H
341 previous-page
342 .It L
343 next-page
344 .It q
345 kill-telescope
346 .It ESC
347 clear-minibuf
348 .It :
349 execute-extended-command
350 .El
351 .Ss CUA-like keys
352 .Bl -tag -width xxxxxxxxxxxx -offset indent -compact
353 .It <up>
354 previous-line
355 .It <down>
356 next-line
357 .It <right>
358 forward-char
359 .It <left>
360 backward-char
361 .It <home>
362 move-beginning-of-line
363 .It <end>
364 move-end-of-line
365 .It <prior>
366 scroll-up
367 .It <next>
368 scroll-down
369 .It C-w
370 tab-close
371 .It C-t
372 tab-new
373 .It M-<prior>
374 tab-previous
375 .It M-<next>
376 tab-next
377 .It M-<left>
378 previous-page
379 .It M-<right>
380 next-page
381 .It <f5>
382 reload-page
383 .It r
384 reload-page
385 .El
386 .Ss Neither Emacs nor vi specific
387 .Bl -tag -width xxxxxxxxxxxx -offset indent -compact
388 .It <f1>
389 toggle-help
390 .It enter
391 push-button
392 .It M-enter
393 push-button-new-tab
394 .It M-tab
395 previous-button
396 .It backtab
397 previous-button
398 .It tab
399 next-button
400 .It M-t
401 tab-select
402 .It \&[
403 tab-previous
404 .It \&]
405 tab-next
406 .It M-\&[
407 tab-move-to
408 .It M-\&]
409 tab-move
410 .It M-l
411 link-select
412 .It M-/
413 swiper
414 .El
415 .Ss Minibuffer-specific keys
416 .Bl -tag -width xxxxxxxxxxxx -offset indent -compact
417 .It enter
418 mini-complete-and-exit
419 .It C-g
420 mini-abort
421 .It ESC
422 mini-abort
423 .It C-d
424 mini-delete-char
425 .It del
426 mini-delete-backward-char
427 .It backspace
428 mini-delete-backward-char
429 .It C-h
430 mini-delete-backward-char
431 .It C-b
432 backward-char
433 .It C-f
434 forward-char
435 .It <left>
436 backward-char
437 .It <right>
438 forward-char
439 .It C-e
440 move-end-of-line
441 .It C-a
442 move-beginning-of-line
443 .It <end>
444 move-end-of-line
445 .It <home>
446 move-beginning-of-line
447 .It C-k
448 mini-kill-line
449 .It M-p
450 mini-previous-history-element
451 .It M-n
452 mini-next-history-element
453 .It C-p
454 previous-completion
455 .It C-n
456 next-completion
457 .It <up>
458 previous-completion
459 .It <down>
460 next-completion
461 .It tab
462 insert-current-candidate
463 .It M-<
464 mini-goto-beginning
465 .It M->
466 mini-goto-end
467 .El
468 .Sh INTERACTIVE COMMANDS
469 Follows the documentation for the interactive commands.
470 These commands can be bound to a key or executed with
471 .Ic execute-extended-command .
472 .Ss Movement commands
473 .Bl -tag -width execute-extended-command -compact
474 .It Ic backward-char
475 Move point one character backward.
476 .It Ic backward-paragraph
477 Move point one paragraph backward.
478 .It Ic beginning-of-buffer
479 Move point to the beginning of the buffer.
480 .It Ic end-of-buffer
481 Move point to the end of the buffer.
482 .It Ic forward-char
483 Move point one character forward.
484 .It Ic forward-paragraph
485 Move point one paragraph forward.
486 .It Ic insert-current-candidate
487 Copy the current selection text as minibuffer input.
488 .It Ic move-beginning-of-line
489 Move point at the beginning of the current (visual) line.
490 .It Ic move-end-of-line
491 Move point at the end of the current (visual) line.
492 .It Ic next-button
493 Move point to the next link.
494 .It Ic next-completion
495 Select the next completion.
496 .It Ic next-heading
497 Move point to the next heading.
498 .It Ic next-line
499 Move point to the next (visual) line, in the same column if possible.
500 .It Ic previous-button
501 Move point to the previous link.
502 .It Ic previous-completion
503 Select the previous completion.
504 .It Ic previous-heading
505 Move point to the previous heading.
506 .It Ic previous-line
507 Move point to the previous (visual) line.
508 .El
509 .Ss Bookmark-related commands
510 .Bl -tag -width execute-extended-command -compact
511 .It Ic bookmark-page
512 Save a page in the bookmark file.
513 It preloads the minibuffer with the current URL.
514 .It Ic list-bookmarks
515 Load the bookmarks page.
516 .El
517 .Ss Tab-related commands
518 .Bl -tag -width execute-extended-command -compact
519 .It Ic tab-close
520 Close the current tab.
521 .It Ic tab-close-other
522 Close all tabs but the current one.
523 .It Ic tab-move
524 Move the current tab after the next one, wrapping around if
525 needed.
526 .It Ic tab-move-to
527 Move the current tab before the previous one, wrapping around if needed.
528 .It Ic tab-new
529 Open a new tab.
530 .It Ic tab-next
531 Focus next tab, wrapping around eventually.
532 .It Ic tab-previous
533 Focus the previous tab, wrapping around eventually.
534 .It Ic tab-select
535 Switch to a tab using the minibuffer.
536 .El
537 .Ss Misc commands
538 .Bl -tag -width execute-extended-command -compact
539 .It Ic clear-minibuf
540 Clear the echo area.
541 .It Ic dec-fill-column
542 Decrement fill-column by two.
543 .It Ic execute-extended-command
544 Execute an internal command.
545 .It Ic kill-telescope
546 Quit
547 .Nm .
548 .It Ic inc-fill-column
549 Increment fill-column by two.
550 .It Ic link-select
551 Select and visit a link using the minibuffer.
552 .It Ic load-current-url
553 Edit the current URL.
554 .It Ic load-url
555 Prompt for an URL.
556 .It Ic next-page
557 Go forward in the page history.
558 .It Ic olivetti-mode
559 Toggle olivetti mode (i.e. horizontal centering of the lines of the
560 window.)
561 .It Ic other-window
562 Select the other window.
563 .It Ic previous-page
564 Go backward in the page history.
565 .It Ic push-button
566 Follow link at point, or toggle the visibility of the following
567 preformatted block if called when the cursor is on the heading of the block.
568 .It Ic push-button-new-tab
569 Follow link at point in a new tab.
570 .It Ic redraw
571 Redraw the screen, useful if some background program messed up the
572 display.
573 .It Ic reload-page
574 Reload the current page.
575 .It Ic scroll-down
576 Scroll down by one visual page.
577 .It Ic scroll-line-down
578 Scroll down by one line.
579 .It Ic scroll-line-up
580 Scroll up by one line.
581 .It Ic scroll-up
582 Scroll up by one visual page.
583 .It Ic suspend-telescope
584 Suspend the current
585 .Nm
586 session.
587 .It Ic swiper
588 Jump to a line using the minibuffer.
589 .It Ic toc
590 Jump to a heading using the minibuffer.
591 .It Ic toggle-help
592 Toggle side window with help about available keys and their associated
593 interactive command.
594 .It Ic toggle-pre-wrap
595 Toggle the wrapping of preformatted blocks.
596 .El
597 .Ss Minibuffer commands
598 .Bl -tag -width execute-extended-command -compact
599 .It Ic mini-abort
600 Abort the current minibuffer action.
601 .It Ic mini-complete-and-exit
602 Complete the current minibuffer action.
603 .It Ic mini-delete-backward-char
604 Delete the character before the point.
605 .It Ic mini-delete-char
606 Delete the character after the point.
607 .It Ic mini-goto-beginning
608 Select the first completion, if any.
609 .It Ic mini-goto-end
610 Select the last completion, if any.
611 .It Ic mini-kill-line
612 Delete from point until the end of the line.
613 .It Ic mini-next-history-element
614 Load the previous history element.
615 .It Ic mini-previous-history-element
616 Load the next history element.
617 .El
618 .Ss Aliases
619 The following aliases are available during
620 .Ic execute-extended-command :
621 .Bl -tag -width 16m -compact
622 .It Ic tabn
623 .Ic tab-next
624 .It Ic tabnew
625 .Ic tab-new
626 .It Ic tabp
627 .Ic tab-previous
628 .It Ic q No and Ic wq
629 .Ic kill-telescope
630 .El
631 .Sh CONFIGURATION FILE
632 During the startup,
633 .Nm
634 reads the configuration file at
635 .Pa ~/.telescope/config
636 or the one given with the
637 .Fl c
638 flag.
639 .Pp
640 .Nm
641 will also load a file called
642 .Pa config-TERM ,
643 where
644 .Dq TERM
645 is the name of the terminal type
646 .Pq i.e. the TERM environment variable ,
647 if it exists.
648 .Pp
649 The format of the configuration file is fairly flexible.
650 The current line can be extended over multiple ones using a
651 backslash
652 .Pq Sq \e .
653 Comments can be put anywhere in the file using a hash mark
654 .Pq Sq # ,
655 and extend to the end of the current line, but backslashes can't be
656 used to extend comments over multiple lines.
657 .Pp
658 The following constructs are available:
659 .Bl -tag -width Ds
660 .It Ic bind Ar map Ar key Ar cmd
661 Bind
662 .Ar key
663 to the function
664 .Ar cmd
665 in the keymap
666 .Ar map .
667 Valid values for map are
668 .Dq global-map
669 .Pq i.e. when the user is viewing a page
670 and
671 .Dq minibuffer-map
672 .Pq i.e. when the minibuffer has the focus.
673 .Ar key
674 follows the same syntax described in
675 .Sx DEFAULT KEY BINDINGS
676 and all the possible functions are listed in
677 .Sx INTERACTIVE COMMANDS .
678 .It Ic proxy Ar proto Ic via Ar url
679 Use
680 .Ar url
681 as proxy for all URLs with
682 protocol
683 .Ar proto .
684 .Ar url
685 must be a Gemini URI without path, query and fragment component.
686 .It Ic set Ar opt No = Ar val
687 Set the option
688 .Ar opt
689 to the value
690 .Ar val .
691 Valid options are:
692 .Pp
693 .Bl -tag -width twelveletters -compact
694 .It autosave
695 .Pq integer
696 If greater than zero, save the session after the specified amount of
697 seconds after some events happens
698 .Pq new or closed tabs, visited a link ...
699 Defaults to 20.
700 .It dont-wrap-pre
701 .Pq integer
702 If nonzero, don't wrap preformatted blocks.
703 Defaults to 0.
704 .It download-path
705 .Pq string
706 The default download path.
707 Defaults to
708 .Pa /tmp .
709 .It emojify-link
710 .Pq integer
711 If nonzero, when the text of a link starts with an emoji followed by a
712 space, use that emoji as line prefix.
713 Defaults to 1.
714 .It enable-colors
715 .Pq integer
716 If nonzero, enable colours.
717 Defaults to 0 if
718 .Ev NO_COLORS
719 is set, 1 otherwise.
720 .It fill-column
721 .Pq integer
722 If greater than zero, lines of text will be formatted in a way that
723 don't exceed the given number of columns.
724 Defaults to 80.
725 .It hide-pre-blocks
726 .Pq integer
727 If nonzero, hide by default the body of the preformatted blocks.
728 Defaults to zero.
729 .Ic push-button
730 can be used to toggle the visibility per-block.
731 .It hide-pre-closing-line
732 .Pq integer
733 If nonzero, hide the closing line of preformatted blocks.
734 Defaults to 0.
735 .It hide-pre-context
736 .Pq integer
737 If nonzero, hide the start and end line of the preformatted blocks.
738 If both hide-pre-context and hide-pre-blocks are nonzero, preformatted
739 blocks are irremediably hidden.
740 Defaults to zero.
741 .It new-tab-url
742 .Pq string
743 URL for the new tab page.
744 Defaults to
745 .Dq about:new .
746 .It olivetti-mode
747 .Pq integer
748 If nonzero, enable
749 .Ic olivetti-mode
750 Defaults to 1.
751 .It set-title
752 .Pq integer
753 If nonzero, set the terminal title to the page title.
754 Defaults to 1.
755 .It tab-bar-show
756 .Pq integer
757 If tab-bar-show is -1 hide the tab bar permanently, if 0 show it
758 unconditionally.
759 If it's 1, show the bar only when there is more than one tab.
760 Defaults to 1.
761 .El
762 .It Ic style Ar name Ar option
763 Change the styling of the element identified by
764 .Ar name .
765 Multiple options may be specified within curly braces.
766 Valid style identifiers are:
767 .Bl -tag -width line.compl.current -compact -offset Ds
768 .It line
769 the area outside the lines in the body of the page.
770 .It line.compl
771 the completions.
772 .It line.compl.current
773 the current completion.
774 .It line.help
775 text in the *Help* buffer.
776 .It line.text
777 text lines.
778 .It line.link
779 link lines.
780 .It line.title1..3
781 headings
782 .It line.item
783 item lines.
784 .It line.quote
785 quotes.
786 .It line.pre.start
787 the heading of a preformatted block.
788 .It line.pre
789 the content of a preformatted block.
790 .It line.pre.end
791 the closing line of a preformatted block.
792 .It minibuffer
793 the minibuffer.
794 .It modeline
795 the modeline.
796 .It tabline
797 the tabline.
798 .It tabline.tab
799 the non-focused tabs.
800 .It tabline.current
801 the focused tab.
802 .El
803 .Pp
804 Valid options are:
805 .Bl -tag -width Ds
806 .It Ic attr Ar prefix Oo Ar line Oo Ar trail Oc Oc
807 Sets the text attributes.
808 If only one value is given,
809 .Ar line
810 and
811 .Ar trail
812 default to that; if two values are given then
813 .Ar trail
814 defaults to
815 .Ar prefix .
816 Each attribute is a comma-separated list of keywords:
817 .Bl -tag -width underline -compact -offset Ds
818 .It Ic normal
819 no attributes.
820 .It Ic standout
821 best highlighting mode for the terminal.
822 .It Ic underline
823 underlines the text.
824 .It Ic reverse
825 reverses background/foreground colors.
826 .It Ic blink
827 makes the text blinking.
828 .It Ic dim
829 half bright.
830 .It Ic bold
831 extra bright or bold.
832 .El
833 .Pp
834 Only the style identifiers with the
835 .Dq line.
836 prefix accept up to three attributes.
837 The other will only use the first one given.
838 .It Ic bg Ar prefix Oo Ar line Oo Ar trail Oc Oc
839 Sets the background color.
840 Follows the same behaviour as
841 .Ic attr
842 regarding the optional parameters.
843 The colour is one of black, red, green, yellow, blue,
844 magenta, cyan and white; colour0 to colour255
845 .Pq or color0 to color255
846 from the 256-colour set;
847 default for the default colour.
848 .It Ic fg Ar prefix Oo Ar line Oo Ar trail Oc Oc
849 Sets the foreground color.
850 It behaves just like
851 .Ic bg .
852 .It Ic prefix Ar prfx Op Ar cont
853 Sets the prefix for the current line type to
854 .Ar prfx
855 and
856 .Ar cont
857 as the prefix for the continuation lines
858 .Pq i.e. when a long line gets wrapped.
859 If
860 .Ar cont
861 is not given its value will be the same of
862 .Ar prfx .
863 .El
864 .El
865 .Sh ENVIRONMENT
866 When
867 .Nm
868 is started, it inspects the following environment variables:
869 .Bl -tag -width NO_COLORS
870 .It Ev HOME
871 The user's login directory.
872 .It Ev NO_COLORS
873 To decide whether to use colors or not.
874 The content of the variable doesn't matter.
875 .It Ev TERM
876 The user's terminal name.
877 .El
878 .Sh FILES
879 .Bl -tag -width Ds -compact
880 .It Pa ~/.telescope/bookmarks.gmi
881 Bookmarks file.
882 .It Pa ~/.telescope/config
883 Default configuration file.
884 .It Pa ~/.telescope/known_hosts
885 Hash of the certificates for all the known hosts.
886 Each line contains three fields: hostname with optional port number,
887 hash of the certificate and a numeric flag.
888 .It Pa ~/.telescope/lock
889 Lock file used to prevent multiple instance of
890 .Nm
891 from running at the same time.
892 .It Pa ~/.telescope/pages/about_*.gmi
893 Overrides for built-in about: pages.
894 .It Pa ~/.telescope/session
895 The list of tabs from the last session.
896 Every line identifies a tab and contains three space-separated fields:
897 the full URL, a comma-separated list of attributes and the cached
898 title.
899 Is written by
900 .Ic kill-telescope
901 and loaded during startup.
902 .El
903 .Sh EXAMPLES
904 It's possible to browse
905 .Dq the small web
906 .Pq i.e. simple websites
907 by using programs like the duckling-proxy by defining a proxy in
908 .Pa ~/.telescope/config :
909 .Bd -literal -offset indent
910 proxy http via "gemini://127.0.0.1:1965"
911 proxy https via "gemini://127.0.0.1:1965"
912 .Ed
913 .Pp
914 To load
915 .Nm
916 without any configuration
917 .Bd -literal -offset indent
918 telescope -c /dev/null
919 .Ed
920 .Sh AUTHORS
921 .An -nosplit
922 The
923 .Nm
924 program was written by
925 .An Omar Polo Aq Mt op@omarpolo.com .
926 .Sh BUGS
927 There's no UI for out-of-band certificates validation.