cgmnlm

Unnamed repository; edit this file 'description' to name the repository.
git clone git://code.clttr.info/cgmnlm.git
Log | Files | Refs | README | LICENSE

commit b127d7439f97b8a0de617fd217cef9f71a314bc3
parent e67e16b268f12eb7794012ebe9948bc6324efc61
Author: René Wagner <rwa@clttr.info>
Date:   Sat, 19 Mar 2022 09:30:43 +0100

set the URL of the current page as terminal title

additional some small adjustments to help

Diffstat:
Msrc/gmnlm.c | 7++++---
1 file changed, 4 insertions(+), 3 deletions(-)

diff --git a/src/gmnlm.c b/src/gmnlm.c @@ -94,7 +94,7 @@ const char *help_msg = "f[N]\t\tJump forward N entries in history (N is optional, default 1)\n" "u\t\tNavigate one path element up\n" "H\t\tView all page history\n" - "m [title]\t\tSave bookmark\n" + "m [title]\t\tSave bookmark with name, uses first header as name if title is omitted\n" "M\t\tBrowse bookmarks\n" "k\t\tRemove bookmark for current page\n" "r\t\tReload the page\n" @@ -102,13 +102,13 @@ const char *help_msg = "l\t\tSearch backlinks to current URI via geminispace.info\n" "/<text>\t\tSearch for text (POSIX regular expression)\n" "n\t\tJump to next search match\n" - "d [path>\tDownload page to path\n" + "d [path>\tDownload page to path, uses pwd & filename if path is omitted\n" "|<prog>\t\tPipe page into program\n" "[N]|<prog>\tPipe content of Nth link into program\n" "a\t\tToggle usage of alt text instead of preformatted text\n" "q\t\tQuit\n" "\n" - "[N] must be replaced with a number > 0\n" + "[N] must be replaced with a number >= 0\n" "\n" ; @@ -1181,6 +1181,7 @@ display_response(struct browser *browser, struct gemini_response *resp) if (gemini_response_class(resp->status) != GEMINI_STATUS_CLASS_SUCCESS) { return false; } + printf("%c]0;%s%s%c", '\033', "cgmnlm - ", browser->plain_url, '\007'); if (strcmp(resp->meta, "text/gemini") == 0 || strncmp(resp->meta, "text/gemini;", 12) == 0) { return display_gemini(browser, resp);