[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Re: New lines in notify.c

From: Branko Čibej <brane_at_apache.org>
Date: Sun, 3 Mar 2019 14:20:45 +0100

On 03.03.2019 14:07, Jonathan Guy wrote:
> Hi all
>
> Just out of curiosity in notify.c we have the two lines
>
> SVN_ERR(svn_cmdline_printf(pool, "\rChecking r "));
> SVN_ERR(svn_cmdline_printf(pool, "\rChecking r%ld...", n->revision));
>
> Is there a specific reason \r is used and not \n?

Yes. \r is the carriage-return control code. If your screen were a
teletype, it would do something like this:

https://www.youtube.com/watch?v=UxKqOdQx-9k

-- Brane
Received on 2019-03-03 14:21:00 CET

This is an archived mail posted to the Subversion Dev mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.