aboutsummaryrefslogtreecommitdiff
path: root/src/renderers/gophermaprenderer.cpp
Commit message (Collapse)AuthorAgeFilesLines
* Use startsWith() instead of left(4)Michael Steenbeek2023-08-301-2/+2
|
* Support URLs in GophermapsMichael Steenbeek2023-08-301-14/+25
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Paths in Gophermaps that start with “URL:” should be interpreted as direct URLs, rather than references to files or directories on the Gopher server itself. An excerpt from the standard document: ``` Links to URLs from a gopher directory shall be defined as follows: Type -- the appropriate character corresponding to the type of the document on the remote end; h if HTML. Path -- the full URL, preceeded by "URL:". For instance: URL:http://www.complete.org/ Host, Port -- pointing back to the gopher server that provided the directory for compatibility reasons. Name -- as usual for a Gopher directory entry. ``` Source: gopher://quux.org/0/Archives/Mailing Lists/gopher/gopher.2002-02?/MBOX-MESSAGE/34 An example of this in the wild can be seen at gopher://gopher.floodgap.com , at the bottom of the page. Note that above link carries a fallback for clients that do not support it, as described by the Bucktooth server software: ``` [...] most people will want to add web links to their gophers anyway. In 0.1-pr4 and up, this is supported in a protocol independent fashion; simply specify any URL and an 'h' item type, like so: hYour Web Link<TAB>URL:http://www.floodgap.com/ Note that the URL must be preceded by a literal "URL:" and that the itemtype is h. Smart clients will automatically take the URL portion and use it, but even if they do not, Bucktooth will generate an HTML page with a Refresh: header and forward them on automatically. ``` Other clients supporting this standard include the OverbiteWX extension. (Most likely, there will be others, but I haven’t tested them all.)
* Add multi-line ansi escape sequencesMike Skec2021-03-071-1/+3
|
* Moves all globals into a structure that can be deleted before the app ↵Felix (xq) Queißner2021-03-061-1/+1
| | | | exists. Fixes #193.
* Resolves gophermap rendering. Closes #22.Felix (xq) Queißner2021-03-061-12/+20
|
* renderhelpers: move global funcs to namespaceMike Skec2021-02-131-1/+1
|
* Margins are now split into seperate horizontal/vertical optionsMike Skec2021-02-131-1/+1
|
* GophermapRenderer: set default font to the icon formatKarol Kosek2021-01-201-0/+1
| | | | This fixes the icon padding change on Ctrl+Scroll.
* initial work on ansi escape char renderingJohn Sennesael2020-10-201-1/+3
|
* Huge refacoring of the settings stuff. Provides automated migration between ↵Felix (xq) Queißner2020-06-281-1/+1
| | | | old and new configuration file stuff. Themes are now just files in a folder instead of encoded data in the config file.
* Restructures the project source and cleans up a bitFelix (xq) Queißner2020-06-221-0/+192