sacc, branch HEADsacc(omys), simple console gopher client
d9488c74f50b137dc91851437ffa4cbaf64c1d002025-03-31T15:55:39Z2025-03-31T16:08:12ZSome sort of maintenance of ui_rogueJulian Schweinsbergpazz0@0xfa.decommit d9488c74f50b137dc91851437ffa4cbaf64c1d00
parent e6daee96e9c73d29f6e51e8400d66a3511d36526
Author: Julian Schweinsberg <pazz0@0xfa.de>
Date: Mon, 31 Mar 2025 17:55:39 +0200
Some sort of maintenance of ui_rogue
- Add Rainer Holzner's fix, regarding Ctrl+D in uiprompt, to ui_rogue
- Change tparm to tiparm
- Add something important to the ui_rogue_readme
e6daee96e9c73d29f6e51e8400d66a3511d365262025-01-03T13:24:02Z2025-01-03T13:28:45Zui_ti: Use tiparm instead of tparmQuentin Rameauquinq@fifth.spacecommit e6daee96e9c73d29f6e51e8400d66a3511d36526
parent cef484cbcf0ba83757f853f235a6cc7497448fa2
Author: Quentin Rameau <quinq@fifth.space>
Date: Fri, 3 Jan 2025 14:24:02 +0100
ui_ti: Use tiparm instead of tparm
The tparm interface was deprecated,
and has definitely been removed in SUSv5.
It's not entirely clear anymore why tparm
was favored in the first place,
due to bad (incomplete) commit message.
Supposedly that was for bad implementations of curses.
cef484cbcf0ba83757f853f235a6cc7497448fa22024-12-20T17:01:52Z2025-01-03T08:57:17ZFix infinite loop caused by search promptRainer Holznerrholzner@web.decommit cef484cbcf0ba83757f853f235a6cc7497448fa2
parent 90a9d3c81f27588c62faa43f22d946740042a3ce
Author: Rainer Holzner <rholzner@web.de>
Date: Fri, 20 Dec 2024 18:01:52 +0100
Fix infinite loop caused by search prompt
This fixes an infinite loop when the user selects item type 7 (IND),
enters 1 or more characters and decides to cancel the search prompt
by pressing Ctrl+D without deleting the input line.
Note that the fixed version requires the user to press Ctrl-D twice
in this case.
90a9d3c81f27588c62faa43f22d946740042a3ce2024-10-28T14:17:33Z2025-01-03T08:53:33ZUpdate ui_rogueJulian Schweinsbergpazz0@0xfa.decommit 90a9d3c81f27588c62faa43f22d946740042a3ce
parent cc6a6881e06ab4b851c7778842374b953e51539c
Author: Julian Schweinsberg <pazz0@0xfa.de>
Date: Mon, 28 Oct 2024 15:17:33 +0100
Update ui_rogue
ui_rogue: Overengineered Edition
This adds a readme and notes (mostly ideas) file for ui_rogue, too.
These changes were made half a year ago and I don't do real
documentation of my changes...
(There is some git branch, but the commit messages aren't helpful:
"HuH?!", "Well, better than nothing...", "Typical
pazz0-overengineering.", ...)
Changes:
- Better menus
- Bigger maps (160x50)
- Moving scrolls the displayed map if needed
- Rooms and corridors use ASCII characters to look like hack
- Removes look mode for now
- Replaces xorshift PRNG algorithm with ranqd1 (this means that the
layout of gopherholes change with this update)
- Moved setupterm call out of signal handler (IIRC [you remember:
months] there were some crashes I had in combination with heap
allocations, my thought was that setupterm is using heap allocations)
- Parameters for room generation are randomly selected (based on the
hostname and port) from a list of "dungeontypes"
cc6a6881e06ab4b851c7778842374b953e51539c2024-10-27T14:50:08Z2024-10-27T15:22:31ZFix handling of invalid items in yankitem and delveJulian Schweinsbergpazz0@0xfa.decommit cc6a6881e06ab4b851c7778842374b953e51539c
parent d16bb53db353da7b817b18809adf57b57c4f973e
Author: Julian Schweinsberg <pazz0@0xfa.de>
Date: Sun, 27 Oct 2024 15:50:08 +0100
Fix handling of invalid items in yankitem and delve
An invalid item contains zeroes in all fields other than username.
That lead to an segmentation fault in itemuri. Additionally NULL strings
would have been printed in delve.
Error was observed on gopher://gopher.someodd.zip/1/phorum ( "mirror" of
erroneous content hosted at
gopher://gopher.0xfa.de/1/pazz0/p/someodd_phorum ).
d16bb53db353da7b817b18809adf57b57c4f973e2024-03-28T11:13:51Z2024-05-03T04:18:47ZUI: Add pazz0's dungeon-crawler-like interfaceQuentin Rameauquinq@fifth.spacecommit d16bb53db353da7b817b18809adf57b57c4f973e
parent 0fce134e1baa2ae47aeb0ee7c091e6c25651bcea
Author: Quentin Rameau <quinq@fifth.space>
Date: Thu, 28 Mar 2024 12:13:51 +0100
UI: Add pazz0's dungeon-crawler-like interface
This definitely looks fun and interesting
0fce134e1baa2ae47aeb0ee7c091e6c25651bcea2024-05-03T04:12:10Z2024-05-03T04:18:47Ztls: Improve certificat savingQuentin Rameauquinq@fifth.spacecommit 0fce134e1baa2ae47aeb0ee7c091e6c25651bcea
parent 314af1528acc78f62256043cb8a9c81f8f7833b8
Author: Quentin Rameau <quinq@fifth.space>
Date: Fri, 3 May 2024 06:12:10 +0200
tls: Improve certificat saving
While the original code wouldn't pose a problem in practice,
as we're not expecting a server to give us a certificate of over 1GB,
this should make it a tad more robust.
314af1528acc78f62256043cb8a9c81f8f7833b82024-05-03T03:27:32Z2024-05-03T04:18:47ZMakefile: Fix usage of BIN macroQuentin Rameauquinq@fifth.spacecommit 314af1528acc78f62256043cb8a9c81f8f7833b8
parent 20a51bafd3906aa0337fe221d0981293d94370a5
Author: Quentin Rameau <quinq@fifth.space>
Date: Fri, 3 May 2024 05:27:32 +0200
Makefile: Fix usage of BIN macro
20a51bafd3906aa0337fe221d0981293d94370a52024-03-19T21:52:09Z2024-03-22T23:06:38ZAvoid zero-length iowriteMichael Forneymforney@mforney.orgcommit 20a51bafd3906aa0337fe221d0981293d94370a5
parent 21d46d603a3697f04072e4c0edb0076b4a215a2e
Author: Michael Forney <mforney@mforney.org>
Date: Tue, 19 Mar 2024 14:52:09 -0700
Avoid zero-length iowrite
iowrite with bs==0 results in either a zero-length write() or
tls_write().
The former is unspecified by POSIX[0]:
> If nbyte is zero and the file is not a regular file, the results
> are unspecified.
The latter is not explicitly disallowed by tls_write(3), but libressl
implements tls_write with a call to SSL_write, which is documented
to have undefined behavior[1]:
> When calling SSL_write() with num=0 bytes to be sent, the behaviour
> is undefined.
[0] https://pubs.opengroup.org/onlinepubs/9699919799/functions/write.html
[1] https://man.openbsd.org/SSL_write.3
21d46d603a3697f04072e4c0edb0076b4a215a2e2024-02-03T10:30:50Z2024-02-03T11:20:28Zfix plumber for T typeHiltjo Posthumahiltjo@codemadness.orgcommit 21d46d603a3697f04072e4c0edb0076b4a215a2e
parent 4fe03eaa05536aac1704b92c0267fb099125a3a3
Author: Hiltjo Posthuma <hiltjo@codemadness.org>
Date: Sat, 3 Feb 2024 11:30:50 +0100
fix plumber for T type
4fe03eaa05536aac1704b92c0267fb099125a3a32024-01-28T14:25:55Z2024-01-28T14:40:36ZShow correct (gopher) URLs for menuentries pointing to HTML files.Julian Schweinsbergpazz0@0xfa.decommit 4fe03eaa05536aac1704b92c0267fb099125a3a3
parent d70616c357a135b8e251fe1974cf88f529dbc67f
Author: Julian Schweinsberg <pazz0@0xfa.de>
Date: Sun, 28 Jan 2024 15:25:55 +0100
Show correct (gopher) URLs for menuentries pointing to HTML files.
Only the 'h'tml links providing an external URI (prefixed with "URL:")
should be printed directly.
Otherwise print the link like any other gopher link.
Example for a menu pointing to HTML files in the real world:
gopher://gopher.metafilter.com/1/MetaFilter
d70616c357a135b8e251fe1974cf88f529dbc67f2023-07-31T20:01:45Z2023-07-31T20:01:45ZRelease version 1.07Quentin Rameauquinq@fifth.spacecommit d70616c357a135b8e251fe1974cf88f529dbc67f
parent 5b9bcbd0dcf3cf2c4edb995621de245ce6b80a9d
Author: Quentin Rameau <quinq@fifth.space>
Date: Mon, 31 Jul 2023 22:01:45 +0200
Release version 1.07
5b9bcbd0dcf3cf2c4edb995621de245ce6b80a9d2023-01-18T22:52:32Z2023-01-22T11:21:22Ztls: Fix a crash on invalid cert in non-interactive modeHiltjo Posthumahiltjo@codemadness.orgcommit 5b9bcbd0dcf3cf2c4edb995621de245ce6b80a9d
parent 4003310026b26f9c81b44fb07686e7301064c4bf
Author: Hiltjo Posthuma <hiltjo@codemadness.org>
Date: Wed, 18 Jan 2023 23:52:32 +0100
tls: Fix a crash on invalid cert in non-interactive mode
This is because uiprompt() cannot be used in non-interactive.
To reproduce:
Put a different certificate in ~/.share/sacc/cert/bitreich.org
Then run:
sacc gophers://bitreich.org > /tmp/plop
4003310026b26f9c81b44fb07686e7301064c4bf2022-10-30T22:19:42Z2022-10-30T22:24:20Ztls: Fix local certificates patheidolonsvickova@alright.macommit 4003310026b26f9c81b44fb07686e7301064c4bf
parent 68934acac9cff7b2b6e1ee42cb2dd912341c0f5c
Author: eidolon <svickova@alright.ma>
Date: Sun, 30 Oct 2022 18:19:42 -0400
tls: Fix local certificates path
68934acac9cff7b2b6e1ee42cb2dd912341c0f5c2022-10-17T19:48:02Z2022-10-17T19:49:54Zui_ti: Revert line jump change commited by mistakeQuentin Rameauquinq@fifth.spacecommit 68934acac9cff7b2b6e1ee42cb2dd912341c0f5c
parent c3638488ce9b1d5d23e33f292710a35d14a6cc72
Author: Quentin Rameau <quinq@fifth.space>
Date: Mon, 17 Oct 2022 21:48:02 +0200
ui_ti: Revert line jump change commited by mistake
Those lines added in 392dcb24732c88f500266b923bafdda8eb631220
where for testing and not supposed to stay.
c3638488ce9b1d5d23e33f292710a35d14a6cc722022-10-15T21:19:06Z2022-10-16T08:38:04Zman: Add TLS descriptionQuentin Rameauquinq@fifth.spacecommit c3638488ce9b1d5d23e33f292710a35d14a6cc72
parent 8b2a2eaf79da098717fe9a7d87fca9fa1f6c6579
Author: Quentin Rameau <quinq@fifth.space>
Date: Sat, 15 Oct 2022 23:19:06 +0200
man: Add TLS description
Thanks to Hiltjo for the suggestion!
8b2a2eaf79da098717fe9a7d87fca9fa1f6c65792022-10-15T21:10:38Z2022-10-16T08:38:04Ztls: Fix certificate path length calculationQuentin Rameauquinq@fifth.spacecommit 8b2a2eaf79da098717fe9a7d87fca9fa1f6c6579
parent 9dec9b200c1bddd6d12f4aa6b43e2c329f513235
Author: Quentin Rameau <quinq@fifth.space>
Date: Sat, 15 Oct 2022 23:10:38 +0200
tls: Fix certificate path length calculation
Thanks to Hiltjo for spotting this!
9dec9b200c1bddd6d12f4aa6b43e2c329f5132352022-10-15T10:50:09Z2022-10-15T13:39:15Ztls: Handle local certificate pathQuentin Rameauquinq@fifth.spacecommit 9dec9b200c1bddd6d12f4aa6b43e2c329f513235
parent 392dcb24732c88f500266b923bafdda8eb631220
Author: Quentin Rameau <quinq@fifth.space>
Date: Sat, 15 Oct 2022 12:50:09 +0200
tls: Handle local certificate path
Although I believe that every computer should have a user "quinq",
use "~/share/sacc/cert" path by default for looking up certificates.
Also, let the user override this default with the environment variable
SACC_CERT_DIR.
392dcb24732c88f500266b923bafdda8eb6312202022-09-20T21:30:55Z2022-09-21T06:27:42Zio: Use defines instead of constantsQuentin Rameauquinq@fifth.spacecommit 392dcb24732c88f500266b923bafdda8eb631220
parent e8930420e7c31a3cea0484314bd38aba5197fa39
Author: Quentin Rameau <quinq@fifth.space>
Date: Tue, 20 Sep 2022 23:30:55 +0200
io: Use defines instead of constants
e8930420e7c31a3cea0484314bd38aba5197fa392022-09-20T21:04:00Z2022-09-20T21:07:17Ztls: Add support for TOFU (Trusted On First Use)Quentin Rameauquinq@fifth.spacecommit e8930420e7c31a3cea0484314bd38aba5197fa39
parent 7d3b71e31c73e122b62fec68a7196586f1b93082
Author: Quentin Rameau <quinq@fifth.space>
Date: Tue, 20 Sep 2022 23:04:00 +0200
tls: Add support for TOFU (Trusted On First Use)
7d3b71e31c73e122b62fec68a7196586f1b930822022-09-11T22:22:30Z2022-09-20T21:07:17Ztls: Refactor codeQuentin Rameauquinq@fifth.spacecommit 7d3b71e31c73e122b62fec68a7196586f1b93082
parent b567fedfe014dc5c795b5bc8703bc187efd13e27
Author: Quentin Rameau <quinq@fifth.space>
Date: Mon, 12 Sep 2022 00:22:30 +0200
tls: Refactor code
b567fedfe014dc5c795b5bc8703bc187efd13e272022-07-20T21:30:14Z2022-07-20T21:51:58ZMakefile: Add NetBSD compile flagsQuentin Rameauquinq@fifth.spacecommit b567fedfe014dc5c795b5bc8703bc187efd13e27
parent 6b0f1c92c58fcff0de4724a1c005264e86794244
Author: Quentin Rameau <quinq@fifth.space>
Date: Wed, 20 Jul 2022 23:30:14 +0200
Makefile: Add NetBSD compile flags
6b0f1c92c58fcff0de4724a1c005264e867942442022-07-20T21:27:03Z2022-07-20T21:27:03Zcommon: Move gopher type enum out of common headerQuentin Rameauquinq@fifth.spacecommit 6b0f1c92c58fcff0de4724a1c005264e86794244
parent cf707964fe31a4987713b4ae89eea96e63640c6a
Author: Quentin Rameau <quinq@fifth.space>
Date: Wed, 20 Jul 2022 23:27:03 +0200
common: Move gopher type enum out of common header
cf707964fe31a4987713b4ae89eea96e63640c6a2022-07-20T18:47:34Z2022-07-20T19:08:23ZMakefile: Generate version only onceQuentin Rameauquinq@fifth.spacecommit cf707964fe31a4987713b4ae89eea96e63640c6a
parent 572915c3d29428773577739e54647c4dfd0daa5d
Author: Quentin Rameau <quinq@fifth.space>
Date: Wed, 20 Jul 2022 20:47:34 +0200
Makefile: Generate version only once
572915c3d29428773577739e54647c4dfd0daa5d2022-07-20T18:25:37Z2022-07-20T19:08:08ZMakefile: Refine header build dependenciesQuentin Rameauquinq@fifth.spacecommit 572915c3d29428773577739e54647c4dfd0daa5d
parent 239ecedf18b5fdb0650a1b5468d2b75de2a38731
Author: Quentin Rameau <quinq@fifth.space>
Date: Wed, 20 Jul 2022 20:25:37 +0200
Makefile: Refine header build dependencies
239ecedf18b5fdb0650a1b5468d2b75de2a387312022-07-20T18:14:26Z2022-07-20T19:08:08ZMakefile: Add default build flagsQuentin Rameauquinq@fifth.spacecommit 239ecedf18b5fdb0650a1b5468d2b75de2a38731
parent 0e5be464cdcab2d17d9f9ab5cf75015bd18c1632
Author: Quentin Rameau <quinq@fifth.space>
Date: Wed, 20 Jul 2022 20:14:26 +0200
Makefile: Add default build flags
0e5be464cdcab2d17d9f9ab5cf75015bd18c16322022-07-20T18:07:55Z2022-07-20T19:07:52ZMakefile: Add system compilation flagsQuentin Rameauquinq@fifth.spacecommit 0e5be464cdcab2d17d9f9ab5cf75015bd18c1632
parent edb683070a46f17242618569dacff02b6075115e
Author: Quentin Rameau <quinq@fifth.space>
Date: Wed, 20 Jul 2022 20:07:55 +0200
Makefile: Add system compilation flags
edb683070a46f17242618569dacff02b6075115e2022-07-06T17:17:36Z2022-07-06T17:27:32Zui_txt: fix a crash while searchingHiltjo Posthumahiltjo@codemadness.orgcommit edb683070a46f17242618569dacff02b6075115e
parent c29025f3cc818b8e0f43d41d9a7d4b3220503cfa
Author: Hiltjo Posthuma <hiltjo@codemadness.org>
Date: Wed, 6 Jul 2022 19:17:36 +0200
ui_txt: fix a crash while searching
Reproducable with an empty search string when using '/'.
Reported by pi31415 on IRC in #gopherproject, thanks!
c29025f3cc818b8e0f43d41d9a7d4b3220503cfa2022-07-06T17:17:36Z2022-07-06T17:27:28Zui_txt: fix forgotten continue in switchHiltjo Posthumahiltjo@codemadness.orgcommit c29025f3cc818b8e0f43d41d9a7d4b3220503cfa
parent 69ee789f16787da6a3065d911a44fc7d4991e366
Author: Hiltjo Posthuma <hiltjo@codemadness.org>
Date: Wed, 6 Jul 2022 19:17:36 +0200
ui_txt: fix forgotten continue in switch
69ee789f16787da6a3065d911a44fc7d4991e3662022-04-10T22:13:25Z2022-07-06T17:21:04Zman: Add versionQuentin Rameauquinq@fifth.spacecommit 69ee789f16787da6a3065d911a44fc7d4991e366
parent b2b6ca98bae9bac2b36cb4a13f66adaf876743aa
Author: Quentin Rameau <quinq@fifth.space>
Date: Mon, 11 Apr 2022 00:13:25 +0200
man: Add version
b2b6ca98bae9bac2b36cb4a13f66adaf876743aa2022-04-10T22:04:42Z2022-07-06T17:21:04ZDocument and fix sacc versionQuentin Rameauquinq@fifth.spacecommit b2b6ca98bae9bac2b36cb4a13f66adaf876743aa
parent df1d4c0a7b17bd56c27d3805c8316aab21d1c19d
Author: Quentin Rameau <quinq@fifth.space>
Date: Mon, 11 Apr 2022 00:04:42 +0200
Document and fix sacc version
df1d4c0a7b17bd56c27d3805c8316aab21d1c19d2022-04-10T21:50:22Z2022-04-10T22:05:10ZRelease version 1.06Quentin Rameauquinq@fifth.spacecommit df1d4c0a7b17bd56c27d3805c8316aab21d1c19d
parent 64be22d4516d31613a4a2c4a4a746c7076b1bfab
Author: Quentin Rameau <quinq@fifth.space>
Date: Sun, 10 Apr 2022 23:50:22 +0200
Release version 1.06
64be22d4516d31613a4a2c4a4a746c7076b1bfab2022-04-10T22:04:42Z2022-04-10T22:05:10ZDocument and fix sacc versionQuentin Rameauquinq@fifth.spacecommit 64be22d4516d31613a4a2c4a4a746c7076b1bfab
parent 1f9509a7c5ab03ab79d64212113bd83f194dcbcb
Author: Quentin Rameau <quinq@fifth.space>
Date: Mon, 11 Apr 2022 00:04:42 +0200
Document and fix sacc version
1f9509a7c5ab03ab79d64212113bd83f194dcbcb2022-03-27T11:21:25Z2022-03-27T12:37:34Zfix compilation without TLS support enabled in config.mkHiltjo Posthumahiltjo@codemadness.orgcommit 1f9509a7c5ab03ab79d64212113bd83f194dcbcb
parent cb05caeda420012e03188d8f2cde8b80a166aeb1
Author: Hiltjo Posthuma <hiltjo@codemadness.org>
Date: Sun, 27 Mar 2022 13:21:25 +0200
fix compilation without TLS support enabled in config.mk
Clear the struct cnx so no extra #ifdef for USE_TLS is needed.
cb05caeda420012e03188d8f2cde8b80a166aeb12022-03-27T11:30:25Z2022-03-27T12:37:34Zui_ti: add support for more DEC function keysHiltjo Posthumahiltjo@codemadness.orgcommit cb05caeda420012e03188d8f2cde8b80a166aeb1
parent b4f6ed2bf2344c5717523313bc666eb297a6fe36
Author: Hiltjo Posthuma <hiltjo@codemadness.org>
Date: Sun, 27 Mar 2022 13:30:25 +0200
ui_ti: add support for more DEC function keys
This makes these keys work on a default configured urxvt and putty.
b4f6ed2bf2344c5717523313bc666eb297a6fe362022-03-27T11:28:02Z2022-03-27T12:37:33Zui_ti: refactor DEC function key handling a bit for an upcoming commitHiltjo Posthumahiltjo@codemadness.orgcommit b4f6ed2bf2344c5717523313bc666eb297a6fe36
parent 100d8ae55fc598a2c898bd6b5d33e15f131cee0c
Author: Hiltjo Posthuma <hiltjo@codemadness.org>
Date: Sun, 27 Mar 2022 13:28:02 +0200
ui_ti: refactor DEC function key handling a bit for an upcoming commit
No functional change intended.
100d8ae55fc598a2c898bd6b5d33e15f131cee0c2022-03-27T11:22:50Z2022-03-27T12:33:50Zui_ti: add application key supportHiltjo Posthumahiltjo@codemadness.orgcommit 100d8ae55fc598a2c898bd6b5d33e15f131cee0c
parent b15d084107da05069a3cf70cd81475f26d8e563e
Author: Hiltjo Posthuma <hiltjo@codemadness.org>
Date: Sun, 27 Mar 2022 13:22:50 +0200
ui_ti: add application key support
This is a sequence like ESC O A (arrow key in application key mode).
This is a default mode in some terminals, like the terminal in HaikuOS.
It makes the arrow keys work nicely.
b15d084107da05069a3cf70cd81475f26d8e563e2022-03-27T09:47:44Z2022-03-27T10:57:05ZIgnore SIGCHLD to prevent zombie processes for non-modal plumbingHiltjo Posthumahiltjo@codemadness.orgcommit b15d084107da05069a3cf70cd81475f26d8e563e
parent edbf8409a1e281d17422e7b12b5edd3832b4429d
Author: Hiltjo Posthuma <hiltjo@codemadness.org>
Date: Sun, 27 Mar 2022 11:47:44 +0200
Ignore SIGCHLD to prevent zombie processes for non-modal plumbing
In config.h, when modalplumber = 0 is set (the default),
sacc does not wait(2) on the process
when a child process exits
and it then becomes a zombie on Linux.
edbf8409a1e281d17422e7b12b5edd3832b4429d2021-11-28T14:29:13Z2021-11-28T14:29:13ZRelease version 1.05Quentin Rameauquinq@fifth.spacecommit edbf8409a1e281d17422e7b12b5edd3832b4429d
parent c2e060c906af4fd970cb2b9ee2e3c05c83db1582
Author: Quentin Rameau <quinq@fifth.space>
Date: Sun, 28 Nov 2021 15:29:13 +0100
Release version 1.05
c2e060c906af4fd970cb2b9ee2e3c05c83db15822021-11-13T11:34:01Z2021-11-13T12:02:18ZAdd yank feature to saccQuentin Rameauquinq@fifth.spacecommit c2e060c906af4fd970cb2b9ee2e3c05c83db1582
parent e80d8bfc3241d197f387a7cbe40ec924853bdc83
Author: Quentin Rameau <quinq@fifth.space>
Date: Sat, 13 Nov 2021 12:34:01 +0100
Add yank feature to sacc
Thanks to adc (Anders Damsgaard <anders@adamsgaard.dk>) and
Evil_Bob (Hiltjo Posthuma <hiltjo@codemadness.org>) for
their suggestions, patches, and peer pressure.
e80d8bfc3241d197f387a7cbe40ec924853bdc832021-11-13T10:43:16Z2021-11-13T10:43:16ZMake plumb function a generic execuri functionQuentin Rameauquinq@fifth.spacecommit e80d8bfc3241d197f387a7cbe40ec924853bdc83
parent 55a9e8d63e4a4ab5188eacbee3ef48f0170f7230
Author: Quentin Rameau <quinq@fifth.space>
Date: Sat, 13 Nov 2021 11:43:16 +0100
Make plumb function a generic execuri function
55a9e8d63e4a4ab5188eacbee3ef48f0170f72302021-11-08T23:26:41Z2021-11-08T23:26:41Zconfig: Declare variable only where actually neededQuentin Rameauquinq@fifth.spacecommit 55a9e8d63e4a4ab5188eacbee3ef48f0170f7230
parent 5c2c788d7cda17dfadca2d12738792be1b140387
Author: Quentin Rameau <quinq@fifth.space>
Date: Tue, 9 Nov 2021 00:26:41 +0100
config: Declare variable only where actually needed
5c2c788d7cda17dfadca2d12738792be1b1403872021-11-08T23:14:12Z2021-11-08T23:17:13ZRemove unused variable / labelsQuentin Rameauquinq@fifth.spacecommit 5c2c788d7cda17dfadca2d12738792be1b140387
parent 6b520eb8b70b98a311a13a62606567095af28290
Author: Quentin Rameau <quinq@fifth.space>
Date: Tue, 9 Nov 2021 00:14:12 +0100
Remove unused variable / labels
6b520eb8b70b98a311a13a62606567095af282902021-11-08T23:13:45Z2021-11-08T23:17:13ZMark prototypes as extern in common.hQuentin Rameauquinq@fifth.spacecommit 6b520eb8b70b98a311a13a62606567095af28290
parent 575c12bd0606717a2e7312669decc9a8197e41bd
Author: Quentin Rameau <quinq@fifth.space>
Date: Tue, 9 Nov 2021 00:13:45 +0100
Mark prototypes as extern in common.h
575c12bd0606717a2e7312669decc9a8197e41bd2021-11-08T22:53:41Z2021-11-08T23:17:12ZMake some internal symbols staticQuentin Rameauquinq@fifth.spacecommit 575c12bd0606717a2e7312669decc9a8197e41bd
parent 6272b9a65812c9f653d693941b3317fe2f98a028
Author: Quentin Rameau <quinq@fifth.space>
Date: Mon, 8 Nov 2021 23:53:41 +0100
Make some internal symbols static
6272b9a65812c9f653d693941b3317fe2f98a0282021-11-08T22:44:06Z2021-11-08T22:45:40ZDo not null-terminate strings printed by snprintfQuentin Rameauquinq@fifth.spacecommit 6272b9a65812c9f653d693941b3317fe2f98a028
parent 89d3a0bd06d2345ffa98675e356a17be24a61210
Author: Quentin Rameau <quinq@fifth.space>
Date: Mon, 8 Nov 2021 23:44:06 +0100
Do not null-terminate strings printed by snprintf
89d3a0bd06d2345ffa98675e356a17be24a612102021-11-08T22:21:44Z2021-11-08T22:45:40ZFactorize URI formatting into sacc.cQuentin Rameauquinq@fifth.spacecommit 89d3a0bd06d2345ffa98675e356a17be24a61210
parent ed632c2c8f6b6c64acda2883a04a2739ebf3cf0f
Author: Quentin Rameau <quinq@fifth.space>
Date: Mon, 8 Nov 2021 23:21:44 +0100
Factorize URI formatting into sacc.c
ed632c2c8f6b6c64acda2883a04a2739ebf3cf0f2021-10-10T21:08:23Z2021-10-10T21:18:01ZRelease version 1.04Quentin Rameauquinq@fifth.spacecommit ed632c2c8f6b6c64acda2883a04a2739ebf3cf0f
parent 1bd2e5661b9c3646a8ddf2862eadf766666f52c6
Author: Quentin Rameau <quinq@fifth.space>
Date: Sun, 10 Oct 2021 23:08:23 +0200
Release version 1.04
1bd2e5661b9c3646a8ddf2862eadf766666f52c62021-10-10T21:17:12Z2021-10-10T21:18:01ZAdd escapeinsert to the LICENSE fileQuentin Rameauquinq@fifth.spacecommit 1bd2e5661b9c3646a8ddf2862eadf766666f52c6
parent cd9b3f4f082f0581942db3a1ecdc2bf520416ad9
Author: Quentin Rameau <quinq@fifth.space>
Date: Sun, 10 Oct 2021 23:17:12 +0200
Add escapeinsert to the LICENSE file
cd9b3f4f082f0581942db3a1ecdc2bf520416ad92021-10-10T21:12:25Z2021-10-10T21:12:33ZExplain the nameQuentin Rameauquinq@fifth.spacecommit cd9b3f4f082f0581942db3a1ecdc2bf520416ad9
parent 69f77f767e52e21b1a40182d03180da73f2f9021
Author: Quentin Rameau <quinq@fifth.space>
Date: Sun, 10 Oct 2021 23:12:25 +0200
Explain the name
69f77f767e52e21b1a40182d03180da73f2f90212021-10-10T21:04:06Z2021-10-10T21:05:51ZAdd an ident version string to the binaryQuentin Rameauquinq@fifth.spacecommit 69f77f767e52e21b1a40182d03180da73f2f9021
parent 12b8b8a338d1791ce2d200f7cad99c9f0b5804d1
Author: Quentin Rameau <quinq@fifth.space>
Date: Sun, 10 Oct 2021 23:04:06 +0200
Add an ident version string to the binary
This lets users get the current binary version
using what(1) in an automated way.
12b8b8a338d1791ce2d200f7cad99c9f0b5804d12021-10-02T19:19:30Z2021-10-03T20:26:59ZAdd modal plumberescapeinsertben@0x1bi.netcommit 12b8b8a338d1791ce2d200f7cad99c9f0b5804d1
parent 7e0793d8395184b5b21ecdd0b13bccb524d1e414
Author: escapeinsert <ben@0x1bi.net>
Date: Sat, 2 Oct 2021 15:19:30 -0400
Add modal plumber
With this option activated, sacc will wait for the plumber to return
before continuing its execution.
7e0793d8395184b5b21ecdd0b13bccb524d1e4142021-04-11T15:12:00Z2021-07-05T20:42:47ZRetry cleartext connection in case TLS failedQuentin Rameauquinq@fifth.spacecommit 7e0793d8395184b5b21ecdd0b13bccb524d1e414
parent 4aa1ecfaf6c97cb02c7e34c88cc67c070b600b67
Author: Quentin Rameau <quinq@fifth.space>
Date: Sun, 11 Apr 2021 17:12:00 +0200
Retry cleartext connection in case TLS failed
4aa1ecfaf6c97cb02c7e34c88cc67c070b600b672021-04-10T16:26:58Z2021-07-04T22:22:00ZFix code styleQuentin Rameauquinq@fifth.spacecommit 4aa1ecfaf6c97cb02c7e34c88cc67c070b600b67
parent aa35a9899f7ce8e67a4801ff131d0cf96f7dc37c
Author: Quentin Rameau <quinq@fifth.space>
Date: Sat, 10 Apr 2021 18:26:58 +0200
Fix code style
aa35a9899f7ce8e67a4801ff131d0cf96f7dc37c2021-04-10T16:06:10Z2021-07-04T22:22:00ZMake sighandler() staticQuentin Rameauquinq@fifth.spacecommit aa35a9899f7ce8e67a4801ff131d0cf96f7dc37c
parent 031f781dfa1e657a9c9eb6677d78de4d82c455b1
Author: Quentin Rameau <quinq@fifth.space>
Date: Sat, 10 Apr 2021 18:06:10 +0200
Make sighandler() static
031f781dfa1e657a9c9eb6677d78de4d82c455b12021-04-10T16:21:58Z2021-07-04T22:22:00ZExport diag() functionQuentin Rameauquinq@fifth.spacecommit 031f781dfa1e657a9c9eb6677d78de4d82c455b1
parent 5a5611b3293eaac0b26832a54b845c6822736b65
Author: Quentin Rameau <quinq@fifth.space>
Date: Sat, 10 Apr 2021 18:21:58 +0200
Export diag() function
5a5611b3293eaac0b26832a54b845c6822736b652021-04-10T13:56:05Z2021-07-04T22:22:00ZTLS: use wrapper functionsQuentin Rameauquinq@fifth.spacecommit 5a5611b3293eaac0b26832a54b845c6822736b65
parent e3535c1405eac56a658886023b057944b4b91bc0
Author: Quentin Rameau <quinq@fifth.space>
Date: Sat, 10 Apr 2021 15:56:05 +0200
TLS: use wrapper functions
e3535c1405eac56a658886023b057944b4b91bc02021-04-09T22:42:08Z2021-07-04T21:59:11ZCheck for errors with expected -1 instead of < 0Quentin Rameauquinq@fifth.spacecommit e3535c1405eac56a658886023b057944b4b91bc0
parent 92394502830c460c78633f56a69da4ce5f01d5fa
Author: Quentin Rameau <quinq@fifth.space>
Date: Sat, 10 Apr 2021 00:42:08 +0200
Check for errors with expected -1 instead of < 0
92394502830c460c78633f56a69da4ce5f01d5fa2021-04-09T21:58:34Z2021-07-04T21:59:11ZAdd TLS supportQuentin Rameauquinq@fifth.spacecommit 92394502830c460c78633f56a69da4ce5f01d5fa
parent a58414c67ddf05ff48b8a86fb2d3cf5e58cea4b9
Author: Quentin Rameau <quinq@fifth.space>
Date: Fri, 9 Apr 2021 23:58:34 +0200
Add TLS support
TLS will be used when a gophers:// URL is requested.
a58414c67ddf05ff48b8a86fb2d3cf5e58cea4b92021-07-04T21:52:54Z2021-07-04T21:56:45ZRemove separator in text UI statusQuentin Rameauquinq@fifth.spacecommit a58414c67ddf05ff48b8a86fb2d3cf5e58cea4b9
parent 80db85ac77a36eb3f591ea7f38816b6339607821
Author: Quentin Rameau <quinq@fifth.space>
Date: Sun, 4 Jul 2021 23:52:54 +0200
Remove separator in text UI status
80db85ac77a36eb3f591ea7f38816b63396078212018-08-13T09:08:36Z2021-07-04T21:56:41ZLet the user configure the displayed menu itemsQuentin Rameauquinq@fifth.spacecommit 80db85ac77a36eb3f591ea7f38816b6339607821
parent 0cb0ce0bb84aca55dd9d66d22fd6550ee0a58ada
Author: Quentin Rameau <quinq@fifth.space>
Date: Mon, 13 Aug 2018 11:08:36 +0200
Let the user configure the displayed menu items
0cb0ce0bb84aca55dd9d66d22fd6550ee0a58ada2021-06-23T20:33:51Z2021-06-23T20:33:51ZLICENSE: update authorsQuentin Rameauquinq@fifth.spacecommit 0cb0ce0bb84aca55dd9d66d22fd6550ee0a58ada
parent b35d9b876df14d24dcd3e6fc98222b75955d0f6b
Author: Quentin Rameau <quinq@fifth.space>
Date: Wed, 23 Jun 2021 22:33:51 +0200
LICENSE: update authors
b35d9b876df14d24dcd3e6fc98222b75955d0f6b2021-06-23T20:26:46Z2021-06-23T20:26:46Zman: fix and add some highlightsQuentin Rameauquinq@fifth.spacecommit b35d9b876df14d24dcd3e6fc98222b75955d0f6b
parent 356726d76e8d082d6702401bbd6bffea47a84b1f
Author: Quentin Rameau <quinq@fifth.space>
Date: Wed, 23 Jun 2021 22:26:46 +0200
man: fix and add some highlights
356726d76e8d082d6702401bbd6bffea47a84b1f2021-06-23T20:22:36Z2021-06-23T20:22:36Zman: clarify a bit pager handlingQuentin Rameauquinq@fifth.spacecommit 356726d76e8d082d6702401bbd6bffea47a84b1f
parent 8c49538793ad14ace0230ada9f4fb5f0c951ba32
Author: Quentin Rameau <quinq@fifth.space>
Date: Wed, 23 Jun 2021 22:22:36 +0200
man: clarify a bit pager handling
8c49538793ad14ace0230ada9f4fb5f0c951ba322021-05-28T17:13:36Z2021-05-28T17:16:43Zui_ti: keep the current line when resizingQuentin Rameauquinq@fifth.spacecommit 8c49538793ad14ace0230ada9f4fb5f0c951ba32
parent 0573022ce4ceab92394c35c5701abe061f2ec35a
Author: Quentin Rameau <quinq@fifth.space>
Date: Fri, 28 May 2021 19:13:36 +0200
ui_ti: keep the current line when resizing
Previously the current line would change to fit in the new screen size.
Instead, change the current screen offset to keep the current line on
screen.
0573022ce4ceab92394c35c5701abe061f2ec35a2021-05-26T14:18:22Z2021-05-28T17:16:43Zreset SIGWINCH when spawning a child program for displaying text itemsHiltjo Posthumahiltjo@codemadness.orgcommit 0573022ce4ceab92394c35c5701abe061f2ec35a
parent eae2a995544b2b48c3a7debcb186a00aa0c400b3
Author: Hiltjo Posthuma <hiltjo@codemadness.org>
Date: Wed, 26 May 2021 16:18:22 +0200
reset SIGWINCH when spawning a child program for displaying text items
When opening a text item in the pager such as less and then resizing the
terminal it would garble/overwrite the terminal output because sacc was
redrawn.
eae2a995544b2b48c3a7debcb186a00aa0c400b32021-03-22T17:44:01Z2021-03-22T17:44:59ZAlways restore terminal mode in TUI cleanupQuentin Rameauquinq@fifth.spacecommit eae2a995544b2b48c3a7debcb186a00aa0c400b3
parent 6582965f7a534eb82339208980582fcb661fe7c3
Author: Quentin Rameau <quinq@fifth.space>
Date: Mon, 22 Mar 2021 18:44:01 +0100
Always restore terminal mode in TUI cleanup
Thanks to Hiltjo for spotting that
6582965f7a534eb82339208980582fcb661fe7c32021-03-21T15:15:55Z2021-03-21T15:17:48ZFix a memory leak on TUI window resizeQuentin Rameauquinq@fifth.spacecommit 6582965f7a534eb82339208980582fcb661fe7c3
parent 17674fcc4257afa53e81fdeab49b21f0f57528c7
Author: Quentin Rameau <quinq@fifth.space>
Date: Sun, 21 Mar 2021 16:15:55 +0100
Fix a memory leak on TUI window resize
Memory is allocated by setupterm,
which is called on window resizing
for setting new values for lines and cols.
Thanks to Hiltjo for spotting that!
17674fcc4257afa53e81fdeab49b21f0f57528c72021-02-08T21:59:52Z2021-02-08T21:59:52ZClose connection when a single-dot line is readQuentin Rameauquinq@fifth.spacecommit 17674fcc4257afa53e81fdeab49b21f0f57528c7
parent 34fd4f17068b408353bb6ae1df3eb4a58c259e25
Author: Quentin Rameau <quinq@fifth.space>
Date: Mon, 8 Feb 2021 22:59:52 +0100
Close connection when a single-dot line is read
This approach instead of always warning that something might have been
wrong in case the message isn't terminated single-dot line is more
forgiving as not all gopher server follow that aspect of the standard.
34fd4f17068b408353bb6ae1df3eb4a58c259e252021-01-30T18:44:16Z2021-01-30T18:44:16ZCheck that non-binary types end with ".\r\n"Quentin Rameauquinq@fifth.spacecommit 34fd4f17068b408353bb6ae1df3eb4a58c259e25
parent cd386e712b7587740115c0fb0815a43052758ae2
Author: Quentin Rameau <quinq@fifth.space>
Date: Sat, 30 Jan 2021 19:44:16 +0100
Check that non-binary types end with ".\r\n"
Otherwise that means that the remote end send incomplete data.
Thanks to jhumphrey for spotting that!
cd386e712b7587740115c0fb0815a43052758ae22021-01-24T13:53:06Z2021-01-24T14:16:33Zmbsprint: fix character encoding errors handlingQuentin Rameauquinq@fifth.spacecommit cd386e712b7587740115c0fb0815a43052758ae2
parent 0a5b9f60e25411cf2fbd6688e8be5a7326f2b28d
Author: Quentin Rameau <quinq@fifth.space>
Date: Sun, 24 Jan 2021 14:53:06 +0100
mbsprint: fix character encoding errors handling
We were not advancing the input string correctly in case of error.
Now we do that and print in a slightly more unified way.
Send remarks to Hiltjo@melikenobugs.tk
0a5b9f60e25411cf2fbd6688e8be5a7326f2b28d2021-01-24T13:53:40Z2021-01-24T13:54:48Zxreallocarray: remove unuseful const parametersQuentin Rameauquinq@fifth.spacecommit 0a5b9f60e25411cf2fbd6688e8be5a7326f2b28d
parent edab539b23594219bbfc83729822da917a18a243
Author: Quentin Rameau <quinq@fifth.space>
Date: Sun, 24 Jan 2021 14:53:40 +0100
xreallocarray: remove unuseful const parameters
edab539b23594219bbfc83729822da917a18a2432021-01-05T20:21:03Z2021-01-05T20:38:29Zmbsprint: improve printing output when it has invalid UTF dataHiltjo Posthumahiltjo@codemadness.orgcommit edab539b23594219bbfc83729822da917a18a243
parent c416c8c73d0a33eb8c428b1a9b9eaaffc098ee5b
Author: Hiltjo Posthuma <hiltjo@codemadness.org>
Date: Tue, 5 Jan 2021 21:21:03 +0100
mbsprint: improve printing output when it has invalid UTF data
Reset the decode state when mbtowc returns -1. The OpenBSD mbtowc(3)
man page says: "If a call to mbtowc() resulted in an undefined internal
state, mbtowc() must be called with s set to NULL to reset the internal
state before it can safely be used again."
Print the UTF replacement character (codepoint 0xfffd) for the invalid
codepoint or incomplete sequence and continue printing the line
(instead of stopping).
Remove the 0 return code as it can't happen because we're already
checking the string length in the loop.
c416c8c73d0a33eb8c428b1a9b9eaaffc098ee5b2020-12-03T17:30:27Z2020-12-03T17:30:27Zsacc.1: Document use of PAGER environment variableQuentin Rameauquinq@fifth.spacecommit c416c8c73d0a33eb8c428b1a9b9eaaffc098ee5b
parent fe6bd5b52afc219737bd22f94ec3d679ac624de3
Author: Quentin Rameau <quinq@fifth.space>
Date: Thu, 3 Dec 2020 18:30:27 +0100
sacc.1: Document use of PAGER environment variable
Thanks to vigoux for the hint.
fe6bd5b52afc219737bd22f94ec3d679ac624de32020-09-26T15:14:45Z2020-09-26T15:14:45Zui_ti: replace manual padding with clr_eolQuentin Rameauquinq@fifth.spacecommit fe6bd5b52afc219737bd22f94ec3d679ac624de3
parent c0a79c0424a99180ed4c79e3335dc3f7ced2322c
Author: Quentin Rameau <quinq@fifth.space>
Date: Sat, 26 Sep 2020 17:14:45 +0200
ui_ti: replace manual padding with clr_eol
Thanks to Marcin and Hiltjo for the hint!
c0a79c0424a99180ed4c79e3335dc3f7ced2322c2020-08-19T20:57:57Z2020-08-23T10:04:55Zui_ti: explicitly define VMIN and VTIME values for read()Hiltjo Posthumahiltjo@codemadness.orgcommit c0a79c0424a99180ed4c79e3335dc3f7ced2322c
parent f1432f5a5c56bad44485d9dee8fe92e6d09e1f4c
Author: Hiltjo Posthuma <hiltjo@codemadness.org>
Date: Wed, 19 Aug 2020 22:57:57 +0200
ui_ti: explicitly define VMIN and VTIME values for read()
VMIN represents the minimum number of bytes that should be received when the
read(2) function successfully returns.
VTIME is a timer of 0.1 second granularity that is used to time out bursty and
short term data transmissions.
On some systems VMIN is not 1 causing input processing issues.
f1432f5a5c56bad44485d9dee8fe92e6d09e1f4c2020-07-02T21:26:09Z2020-07-04T13:05:46Zpopen: remove close-on-exec flag to increase portability a bitHiltjo Posthumahiltjo@codemadness.orgcommit f1432f5a5c56bad44485d9dee8fe92e6d09e1f4c
parent 62d746cb6d34ed43068386bcd4a75f828055ee5e
Author: Hiltjo Posthuma <hiltjo@codemadness.org>
Date: Thu, 2 Jul 2020 23:26:09 +0200
popen: remove close-on-exec flag to increase portability a bit
POSIX says:
"If mode is any other value, the result is unspecified.".
On atleast older glibc versions (afaik 2008 and older) and on current HaikuOS
it seems to not execute popen when "e" is set and set errno to EINVAL.
62d746cb6d34ed43068386bcd4a75f828055ee5e2020-07-02T21:24:53Z2020-07-04T13:05:36Zexit with 128 + signo on receiving SIGHUP, SIGINT, SIGTERMHiltjo Posthumahiltjo@codemadness.orgcommit 62d746cb6d34ed43068386bcd4a75f828055ee5e
parent f2b48c669ee5b69e3b46f64979739d15f41338c2
Author: Hiltjo Posthuma <hiltjo@codemadness.org>
Date: Thu, 2 Jul 2020 23:24:53 +0200
exit with 128 + signo on receiving SIGHUP, SIGINT, SIGTERM
This also makes a better distinction between SIGHUP (=1) and die(),
which is also 1.
f2b48c669ee5b69e3b46f64979739d15f41338c22020-02-19T20:36:37Z2020-02-19T20:41:12ZUse a random temporary directory instead of a fixed oneQuentin Rameauquinq@fifth.spacecommit f2b48c669ee5b69e3b46f64979739d15f41338c2
parent 49292644fd4a8c983928738fe36ac9daaebc755d
Author: Quentin Rameau <quinq@fifth.space>
Date: Wed, 19 Feb 2020 21:36:37 +0100
Use a random temporary directory instead of a fixed one
Thanks to the persons who asked for this.
49292644fd4a8c983928738fe36ac9daaebc755d2020-01-01T17:01:17Z2020-01-01T17:22:44Zfor displayuri for 'h' types show only the url and not the username fieldHiltjo Posthumahiltjo@codemadness.orgcommit 49292644fd4a8c983928738fe36ac9daaebc755d
parent 7f2e86d875364e7828b2af55721e784ca0de5298
Author: Hiltjo Posthuma <hiltjo@codemadness.org>
Date: Wed, 1 Jan 2020 18:01:17 +0100
for displayuri for 'h' types show only the url and not the username field
the username is already visible.
7f2e86d875364e7828b2af55721e784ca0de52982019-11-06T16:05:26Z2019-11-06T16:05:26ZAdd missing help for next/previous item jump to TI ui.Quentin Rameauquinq@fifth.spacecommit 7f2e86d875364e7828b2af55721e784ca0de5298
parent 88d7f160cb44cdb08634b034b23d2f2d640bf7fd
Author: Quentin Rameau <quinq@fifth.space>
Date: Wed, 6 Nov 2019 17:05:26 +0100
Add missing help for next/previous item jump to TI ui.
Thanks to William Casarin for spotting this!
88d7f160cb44cdb08634b034b23d2f2d640bf7fd2019-11-02T13:59:59Z2019-11-02T14:27:51Zremove unused variablesHiltjo Posthumahiltjo@codemadness.orgcommit 88d7f160cb44cdb08634b034b23d2f2d640bf7fd
parent 5b8bd6016a9bc52b643e55335b46de1aaeae2940
Author: Hiltjo Posthuma <hiltjo@codemadness.org>
Date: Sat, 2 Nov 2019 14:59:59 +0100
remove unused variables
found by cppcheck
5b8bd6016a9bc52b643e55335b46de1aaeae29402019-11-02T13:58:47Z2019-11-02T14:08:26ZOnly block SIGWINCH when connectingQuentin Rameauquinq@fifth.spacecommit 5b8bd6016a9bc52b643e55335b46de1aaeae2940
parent 250ea3842c49c0f1b8224a607e5a4d7fd5dd7ae3
Author: Quentin Rameau <quinq@fifth.space>
Date: Sat, 2 Nov 2019 14:58:47 +0100
Only block SIGWINCH when connecting
This relaxes a bit the mask set in dba0b8d.
250ea3842c49c0f1b8224a607e5a4d7fd5dd7ae32019-10-28T23:24:07Z2019-10-28T23:24:42ZFix initial URI search string parsingQuentin Rameauquinq@fifth.spacecommit 250ea3842c49c0f1b8224a607e5a4d7fd5dd7ae3
parent 7bd48fa9930dca90e24e17b78b451b014ae287e8
Author: Quentin Rameau <quinq@fifth.space>
Date: Tue, 29 Oct 2019 00:24:07 +0100
Fix initial URI search string parsing
Thanks to Hiltjo for spotting this!
7bd48fa9930dca90e24e17b78b451b014ae287e82019-10-28T23:02:02Z2019-10-28T23:03:59ZParse %09 as a search string separator in initial URIsQuentin Rameauquinq@fifth.spacecommit 7bd48fa9930dca90e24e17b78b451b014ae287e8
parent aeb6afa41ddf42eeb865079c7d218a2cbdfe2ef3
Author: Quentin Rameau <quinq@fifth.space>
Date: Tue, 29 Oct 2019 00:02:02 +0100
Parse %09 as a search string separator in initial URIs
aeb6afa41ddf42eeb865079c7d218a2cbdfe2ef32019-10-28T22:37:31Z2019-10-28T22:37:31ZSeparate search strings with "%09" in URIs, as per RFCQuentin Rameauquinq@fifth.spacecommit aeb6afa41ddf42eeb865079c7d218a2cbdfe2ef3
parent 864e9c534956afb2a429174e10cc9b4d6196fa05
Author: Quentin Rameau <quinq@fifth.space>
Date: Mon, 28 Oct 2019 23:37:31 +0100
Separate search strings with "%09" in URIs, as per RFC
864e9c534956afb2a429174e10cc9b4d6196fa052019-10-28T11:42:32Z2019-10-28T11:42:32ZRevert "Fix memory leak in search items"Quentin Rameauquinq@fifth.spacecommit 864e9c534956afb2a429174e10cc9b4d6196fa05
parent 95c60192368eb92fd706aff387aa99df29c8f216
Author: Quentin Rameau <quinq@fifth.space>
Date: Mon, 28 Oct 2019 12:42:32 +0100
Revert "Fix memory leak in search items"
This reverts commit 26bc04284d9becc870a6a036a9a6f9bdfba8ba2a.
There is actually no leek here as an item without data would not
already have a tag.
95c60192368eb92fd706aff387aa99df29c8f2162019-10-28T01:54:38Z2019-10-28T01:54:38ZAdd new keybinding for displaying page URI in the manpageQuentin Rameauquinq@fifth.spacecommit 95c60192368eb92fd706aff387aa99df29c8f216
parent 1e11d7ef08cfe5deb5e6adb2845fffd48d5f64d9
Author: Quentin Rameau <quinq@fifth.space>
Date: Mon, 28 Oct 2019 02:54:38 +0100
Add new keybinding for displaying page URI in the manpage
1e11d7ef08cfe5deb5e6adb2845fffd48d5f64d92019-10-28T01:31:26Z2019-10-28T01:34:30ZRephrase txt UI help messageQuentin Rameauquinq@fifth.spacecommit 1e11d7ef08cfe5deb5e6adb2845fffd48d5f64d9
parent 3a53a319d4ade0631accac3fd9177e6fbfc49c7f
Author: Quentin Rameau <quinq@fifth.space>
Date: Mon, 28 Oct 2019 02:31:26 +0100
Rephrase txt UI help message
3a53a319d4ade0631accac3fd9177e6fbfc49c7f2019-10-28T01:12:50Z2019-10-28T01:33:28ZPrint better URIQuentin Rameauquinq@fifth.spacecommit 3a53a319d4ade0631accac3fd9177e6fbfc49c7f
parent 26bc04284d9becc870a6a036a9a6f9bdfba8ba2a
Author: Quentin Rameau <quinq@fifth.space>
Date: Mon, 28 Oct 2019 02:12:50 +0100
Print better URI
26bc04284d9becc870a6a036a9a6f9bdfba8ba2a2019-10-28T00:34:11Z2019-10-28T01:33:28ZFix memory leak in search itemsQuentin Rameauquinq@fifth.spacecommit 26bc04284d9becc870a6a036a9a6f9bdfba8ba2a
parent 0a187a5d95a708254d99a2cdec6bb54b732481a1
Author: Quentin Rameau <quinq@fifth.space>
Date: Mon, 28 Oct 2019 01:34:11 +0100
Fix memory leak in search items
0a187a5d95a708254d99a2cdec6bb54b732481a12019-10-28T00:17:23Z2019-10-28T01:33:28ZAdd a keybinding for displaying current page URIQuentin Rameauquinq@fifth.spacecommit 0a187a5d95a708254d99a2cdec6bb54b732481a1
parent 7ab95c658cf1dd546ec39603851742db65233204
Author: Quentin Rameau <quinq@fifth.space>
Date: Mon, 28 Oct 2019 01:17:23 +0100
Add a keybinding for displaying current page URI
7ab95c658cf1dd546ec39603851742db652332042019-10-11T15:17:49Z2019-10-11T15:17:49ZInverse logic in TI uiselectitem on non-matchQuentin Rameauquinq@fifth.spacecommit 7ab95c658cf1dd546ec39603851742db65233204
parent 904cd0f37ae4028597cb85cb08190e998dfac62b
Author: Quentin Rameau <quinq@fifth.space>
Date: Fri, 11 Oct 2019 17:17:49 +0200
Inverse logic in TI uiselectitem on non-match
904cd0f37ae4028597cb85cb08190e998dfac62b2019-10-11T15:09:31Z2019-10-11T15:09:31ZFix potential uninitialized value in printoutQuentin Rameauquinq@fifth.spacecommit 904cd0f37ae4028597cb85cb08190e998dfac62b
parent e01ac82824ccd60b4a77498f8e49a443296fcba2
Author: Quentin Rameau <quinq@fifth.space>
Date: Fri, 11 Oct 2019 17:09:31 +0200
Fix potential uninitialized value in printout
e01ac82824ccd60b4a77498f8e49a443296fcba22019-10-11T15:05:57Z2019-10-11T15:05:57ZFix potential undefined socket value in connecttoQuentin Rameauquinq@fifth.spacecommit e01ac82824ccd60b4a77498f8e49a443296fcba2
parent 827820f5580b8880939337772d85e59ae87721b6
Author: Quentin Rameau <quinq@fifth.space>
Date: Fri, 11 Oct 2019 17:05:57 +0200
Fix potential undefined socket value in connectto
827820f5580b8880939337772d85e59ae87721b62019-10-11T15:02:19Z2019-10-11T15:02:19ZFix memory leak in downloaditemQuentin Rameauquinq@fifth.spacecommit 827820f5580b8880939337772d85e59ae87721b6
parent 2cc14415ea4515db3271d8af0cc8b36dc62b3f71
Author: Quentin Rameau <quinq@fifth.space>
Date: Fri, 11 Oct 2019 17:02:19 +0200
Fix memory leak in downloaditem
Thanks to solene for spotting this!
2cc14415ea4515db3271d8af0cc8b36dc62b3f712018-12-28T23:37:34Z2018-12-28T23:37:34ZFix telnet displayed menu entryQuentin Rameauquinq@fifth.spacecommit 2cc14415ea4515db3271d8af0cc8b36dc62b3f71
parent dba0b8d682e77ac33fbdc6f75dee9ee9f08553f9
Author: Quentin Rameau <quinq@fifth.space>
Date: Sat, 29 Dec 2018 00:37:34 +0100
Fix telnet displayed menu entry
dba0b8d682e77ac33fbdc6f75dee9ee9f08553f92018-12-25T19:44:18Z2018-12-26T10:49:38Zmask signals while using connect(2) in connectto()Hiltjo Posthumahiltjo@codemadness.orgcommit dba0b8d682e77ac33fbdc6f75dee9ee9f08553f9
parent c7ab5157ebc7e7d502e0970770a7e7be48e61ea2
Author: Hiltjo Posthuma <hiltjo@codemadness.org>
Date: Tue, 25 Dec 2018 20:44:18 +0100
mask signals while using connect(2) in connectto()
This makes sure connect(2) don't return a possible < 0 and errno = EINTR.
POSIX says for connect(2): "
[EINTR] The connection attempt was interrupted by a signal.
The attempt will continue asynchronously as if the
socket was non-blocking."
This was reproducable by launching with st -e sacc bitreich.org . When sacc was
signaled with SIGWINCH while it was connecting the connect(2) would be handled
as a failure and the next interface was tried. This gave a vague message "no
route to host", because the next interfaces could fail.
c7ab5157ebc7e7d502e0970770a7e7be48e61ea22018-12-25T18:33:21Z2018-12-26T10:46:21Zui_txt: check for curentry is NULL like ui_tiHiltjo Posthumahiltjo@codemadness.orgcommit c7ab5157ebc7e7d502e0970770a7e7be48e61ea2
parent 10ed3e55246b65f39aa19f3c63bb0241c62d4f6c
Author: Hiltjo Posthuma <hiltjo@codemadness.org>
Date: Tue, 25 Dec 2018 19:33:21 +0100
ui_txt: check for curentry is NULL like ui_ti
This can happen if SIGWINCH is signaled before a connection is made,
reproducable with: st -e sacc bitreich.org.
10ed3e55246b65f39aa19f3c63bb0241c62d4f6c2018-12-25T18:32:54Z2018-12-26T10:46:21Zfreeaddrinfo can leak if a connection fails in connectto()Hiltjo Posthumahiltjo@codemadness.orgcommit 10ed3e55246b65f39aa19f3c63bb0241c62d4f6c
parent 18a92be39ac2fea50ce2d63c7a03ad64528eb843
Author: Hiltjo Posthuma <hiltjo@codemadness.org>
Date: Tue, 25 Dec 2018 19:32:54 +0100
freeaddrinfo can leak if a connection fails in connectto()