Programming Tools Guide
Chapter 8, adb: absolute debugger

Setting output width

Setting output width

To set the maximum width (in characters) of each line of output created by adb, use the $w command. The command has the following form:

n$w

where n is an integer number giving the width in characters of the display. The default width, when adb is first invoked, is 80 characters.

The command is typically used when redirecting output to a line printer or special terminal. For example, the following command sets the display width to 120 characters, a common maximum width for line printers:

   120$w