W

wget2

Clone of the GNU Wget2 repository for collaboration via GitLab

  • Darshit Shah's avatar
    Support terminal hyperlinks in output · 9ab3c2a8
    Darshit Shah authored
    Some terminal emulators now allow printing hyperlinks through escape
    sequences. See
    https://gist.github.com/egmontkob/eb114294efbcd5adb1944c9f3cb5feda for
    more information.
    
    Hyperlink support cannot be gauged accurately. And while most terminals
    just ignore the extra escape sequences, older versions of vte actually
    print the URI along with some garbage. So, in this patch, the hyperlink
    support is disabled by default and used only if the user explicitly
    requests it. Once there is a way to query for feature support in
    terminals, this can be intelligently enabled automatically.
    
    * bootstrap.conf: Add new module xgethostname
    * src/wget_options.h: Add a new option hyperlink and a global variable
      hostname
    * src/options.c: Add a new command line option --hyperlink. This is the
      same option name as `ls` from coreutils for consistency across
      programs
      (init): If the user requests hyperlink support, get the hostname and
      store it. This is to prevent having to get the hostname for each
      downloaded file
    * src/wget.c (prepare_file): Print the filename with a hyperlink if the
      user requests it.
    * docs/wget2.md: Add documentation entry for hyperlinks
    9ab3c2a8
Name
Last commit
Last update
benchmarks Loading commit data...
ci-test.d Loading commit data...
contrib Loading commit data...
data Loading commit data...
docs Loading commit data...
examples Loading commit data...
fuzz Loading commit data...
gnulib @ de255f87 Loading commit data...
include Loading commit data...
lib Loading commit data...
libwget Loading commit data...
m4 Loading commit data...
po Loading commit data...
src Loading commit data...
tests Loading commit data...
unit-tests Loading commit data...
.dir-locals.el Loading commit data...
.gitignore Loading commit data...
.gitlab-ci.yml Loading commit data...
.gitmodules Loading commit data...
.lgtm.yml Loading commit data...
.mailmap Loading commit data...
.travis.sh Loading commit data...
.travis.yml Loading commit data...
.travis_setup.sh Loading commit data...
AUTHORS Loading commit data...
COPYING Loading commit data...
COPYING.LESSER Loading commit data...
ChangeLog Loading commit data...
Makefile.am Loading commit data...
NEWS Loading commit data...
README Loading commit data...
README.md Loading commit data...
bootstrap Loading commit data...
bootstrap.conf Loading commit data...
cfg.mk Loading commit data...
ci-test Loading commit data...
configure.ac Loading commit data...
libwget.pc.in Loading commit data...
pthread_sigmask.c.mingw Loading commit data...
todo.txt Loading commit data...