mirror of
https://github.com/mirror/wget.git
synced 2025-03-27 20:40:27 +08:00
Remove special handling for Emacs in progress bar code
* src/progress.c: Remove special 'emacs' code Fixes #47989
This commit is contained in:
parent
42cc84b6b6
commit
a952f81f3e
@ -1198,8 +1198,6 @@ display_image (char *buf)
|
|||||||
static void
|
static void
|
||||||
bar_set_params (char *params)
|
bar_set_params (char *params)
|
||||||
{
|
{
|
||||||
char *term = getenv ("TERM");
|
|
||||||
|
|
||||||
if (params)
|
if (params)
|
||||||
{
|
{
|
||||||
char *param = strtok (params, ":");
|
char *param = strtok (params, ":");
|
||||||
@ -1219,12 +1217,6 @@ bar_set_params (char *params)
|
|||||||
dots. */
|
dots. */
|
||||||
|| !isatty (fileno (stderr))
|
|| !isatty (fileno (stderr))
|
||||||
#endif
|
#endif
|
||||||
/* Normally we don't depend on terminal type because the
|
|
||||||
progress bar only uses ^M to move the cursor to the
|
|
||||||
beginning of line, which works even on dumb terminals. But
|
|
||||||
Jamie Zawinski reports that ^M and ^H tricks don't work in
|
|
||||||
Emacs shell buffers, and only make a mess. */
|
|
||||||
|| (term && 0 == strcmp (term, "emacs"))
|
|
||||||
)
|
)
|
||||||
&& !current_impl_locked)
|
&& !current_impl_locked)
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user