delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2017/10/17/21:39:04

X-Recipient: archive-cygwin AT delorie DOT com
DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id
:list-unsubscribe:list-subscribe:list-archive:list-post
:list-help:sender:message-id:date:from:to:subject:content-type;
q=dns; s=default; b=GLSNgEqnRYz0/ZslnoBcFuXjqkNxw7NOBlBB3drxGTX
71Ezh1DTR/9WmzUsynoJYaEf/GMY5BgNc0HUCyNDkOTDfJSwvakREIlqLChFWmeM
WelVIWSBbSKKu8Fb/TINGs9G7uThLe0/8tyZtKBEptwF3GA6CHV0MOaKMMMTuufQ
=
DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id
:list-unsubscribe:list-subscribe:list-archive:list-post
:list-help:sender:message-id:date:from:to:subject:content-type;
s=default; bh=Me+/WFuhXF5XW+TguuoHCiLs6dM=; b=gWhmu0EDIcbpB3Qb/
Rpvvr4yFrypZUIKhTEXsPJNr8Y3HgqdnfEKfX0+Bc1zqFS8391X9gwJVZsJYtXkn
GhI8bmU007gZcs0qme192FmAEmYWpl7dthBV9OHwpiQIwNGPlvvxIKR1qNqT68VQ
k1qeOorJBimWoaqkesfpVpUmRI=
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com
Authentication-Results: sourceware.org; auth=none
X-Virus-Found: No
X-Spam-SWARE-Status: No, score=-1.4 required=5.0 tests=BAYES_00,FREEMAIL_FROM,RCVD_IN_DNSWL_NONE,RCVD_IN_SORBS_SPAM,SPF_PASS autolearn=no version=3.3.2 spammy=H*c:utf8, H*UA:github.com, H*MI:google, H*M:google
X-HELO: mail-oi0-f41.google.com
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:message-id:date:from:to:subject:user-agent; bh=K5Rl4XtT2/eAK+/JEuYAbWCwPfCLebASBNezidDNnC4=; b=oX6K/2Wcz1erudzIRoS+3AQcG9EOTKp5I1ygH7KsNhV+fxUABveE84RD6GlGWHrLaF /HkYnVt6wlkD8EzSPMSW8rZ0VgH5XX/w1C15Qoccoas6v2YagAZ+tB6GplGUisfg6rKs TrJdqQSI5Ug6LoDkJgDmHNJKdyUpqMOt6BhAeUbBk3AqzOiDX7QCVOrcUrwxcttKnK0N ztPUql4eMgcno2XtzmmKYYr294+ZKmV/vNV7tEHewUZlqc7IYYVYo+sJCxVhxNpwPrrx ldeuKbksSox+a71m7uz2aAEgTBrJgyXZFVPHlb3pesWSdUNncwJ1LfPZCton1c9p8G2g Ec4Q==
X-Gm-Message-State: AMCzsaV0o9sCDKNsn6yxmzZvK6mBlvrmVXEJH3IQWY4RprTbnllgsAxP FCjj47Z+Hslu3gbMq3/a/bXjdQ==
X-Google-Smtp-Source: ABhQp+Sx0T+48rjLWJ7jkqyMG06E+jBssH+z30K+nJK0vH6aJ6p5M1k47C7AqZOMKXUj3dzewYMUQw==
X-Received: by 10.157.95.5 with SMTP id f5mr3598437oti.195.1508290727524; Tue, 17 Oct 2017 18:38:47 -0700 (PDT)
Message-ID: <59e6b0a6.2e179d0a.c91f1.4e8c@mx.google.com>
Date: Tue, 17 Oct 2017 18:38:46 -0700 (PDT)
From: Steven Penny <svnpenn AT gmail DOT com>
X-Google-Original-From: Steven Penny
To: cygwin AT cygwin DOT com
Subject: tar checkpoint-action screen width padding
User-Agent: Tryst/2.0.1 (github.com/svnpenn/tryst)

You can run a command like this via mintty:

    $ tar -x -f php-7.1.10.tar.xz --checkpoint-action ttyout=%c
    2017-10-17 20:28:01: 0s, read: 81920 (80KiB, 5.1MiB/s)

and it updates the status on the same line. However if you run via Cygwin.bat,
it prints on multiple lines. If you break down "%c" via this page:

http://gnu.org/software/tar/manual/html_section/tar_26

You get this:

    %{%Y-%m-%d %H:%M:%S}t: %ds, %{read,wrote}T%*\r

after some troubleshooting this is the problem:

    %*

here is what that does:

    %{n}*
    Pad output with spaces to the nth column. If the {n} part is omitted, the
    current screen width is assumed.

So the issue is either that "%*" is printing 1 too many spaces, or that "\r" is
taking up a character when it should not be.


--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019