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

[PATCH, svnmerge] Try "stty -a" to find out console width

From: Giovanni Bajo <rasky_at_develer.com>
Date: 2006-01-07 16:54:10 CET


svnmerge automatically formats and word-wraps its help screens to the user
console width (if it manages to extract it). It has several methods (for
different operating systems), and this patch adds another fallback: it tries
calling "stty -a" and parsing its output with a simple regular expression.
This should work well on some UNIX flavours (including Linux).

Committed as r18008.

When trying to get the width of the console, also try parsing the output
of "stty -a" which usually contains this information.

* contrib/client-side/svnmerge.py:
  (console_width): Try parsing 'stty -a' output.

Giovanni Bajo

To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org

Received on Sat Jan 7 16:54:56 2006

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.