Commit Graph

20 Commits

Author SHA1 Message Date
188989e067 Update copyright year 2024-01-07 12:41:02 +01:00
15ba1db248 Update copyrights 2023-08-31 12:57:30 +02:00
3bf44e3c00 Enable native VT support on windows (fixes cmdhost etc usages)
* libwget/console.c: New function SetupConsoleHandle(),
  (wget_console_init): Call SetupConsoleHandle().
* src/wget.c: New function is_tty(),
  (main): Call is_tty() instead of isatty().

disable progress bar if VT mode is not supported (unless force is used)
2023-07-29 17:20:09 +02:00
3dc7f71098 Update copyright year 2022-02-25 17:46:43 +01:00
22162f82b2 Update copyright year 2021-01-22 21:58:38 +01:00
59d9ecd9c0 * Update copyright year to 2020 2020-01-10 00:33:02 +01:00
14897b5aaf * libwget/console.c: Improve C99 compliancy 2019-09-18 16:56:59 +02:00
4b9edbad2d Update Copyright statements to be compatible with update-copyright module 2019-09-10 23:41:56 +02:00
12f1a03693 Changed G_GNUC_WGET prefix to WGET_GCC
* include/wget/wget.h: Changed G_GNUC_WGET prefix to WGET_GCC
* */*.[ch]: Likewise
2019-08-08 17:13:24 +02:00
97731f06ac Rename wget_console_color_t -> wget_console_color
* include/wget/wget.h: Rename wget_console_color_t -> wget_console_color
* libwget/console.c: Likewise
* src/log.c: Likewise
2019-07-19 17:05:47 +02:00
cdb3600791 Update copyrigght to 2019 2019-01-02 12:42:53 +01:00
3688ffb941 Update copyright to 2018 2018-04-30 20:52:11 +02:00
40cef71282 Reduce scope of variables
* libwget/bar.c: Likewise
* libwget/console.c: Likewise
* libwget/encoding.c: Likewise
* libwget/hashmap.c: Likewise
* libwget/io.c: Likewise
* libwget/md5.c: Likewise
* libwget/netrc.c: Likewise
* libwget/ssl_gnutls.c: Likewise
* libwget/xml.c: Likewise
* src/job.c: Likewise
* src/plugin.c: Likewise
* libwget/hashfile.c: Include local private.h
* src/host.c: Remove unused find_free_job_context struct

Found by: cppcheck
2017-10-05 00:27:31 +05:30
e606417a4a Fix doxygen warnings
* README.md: Mark options
* docs/wget2_manual.md: Mark URLs
* libwget/bar.c: Fix doc for bar_init(),
  add doxygen close tag at end of file
* libwget/buffer.c: Fix doc for wget_buffer_reset()
* libwget/console.c: Move unused tag to front of param
* libwget/hpkp.c: Fix documented params for wget_hpkp_new()
* libwget/iri.c: Fix doc for wget_iri_supported()
* libwget/net.c: Fix doc for wget_tcp_printf()
* libwget/utils.c: Move unused tag to front of param
2017-07-21 11:12:23 +02:00
c6ee3d79ad Fix syntax-check 'sc_prohibit_have_config_h'
* cfg.mk: Remove sc_prohibit_have_config_h from local-checks-to-skip
* libwget/*.c: Include <config.h> unconditionally
* src/*.c: Likewise
* tests/*.c: Likewise
2017-04-30 22:01:34 +02:00
6bfd00b75c * libwget/console.c (_reset_color): Do not reset color if stdout is not a TTY 2017-04-12 11:34:26 +02:00
13371152f8 Fix console colors for Windows
* include/wget/wget.h: Add WGET_CONSOLE_COLOR_MAGENTA
* libwget/console.c: Add WGET_CONSOLE_COLOR_MAGENTA
* src/log.c: Add colors to write functions

Reported-by: Gisle Vanem
2017-03-21 12:54:54 +01:00
e41ae5298a * libwget/console.c (wget_console_set_fg_color): Fix WIN32 code 2017-03-21 10:25:34 +01:00
ec396c577f Fix URLs to HTTPS where possible 2017-02-28 15:31:30 +01:00
8248bfecd1 Add console color abstraction
* docs/Makefile.am: Add libwget-console.3
* include/wget/wget.h: Add console routines
* libwget/Makefile.am: Add libwget/console.c
* libwget/console.c: New file with console functions
* src/log.c: Add WIN32 and console function calls
2017-01-06 14:23:37 +01:00