21
Apr

Set Linux Terminal Console Column Width

A quick trick I learned today was how to set the column width for a terminal console with stty. This way, the shell acts a bit more normal.

stty cols 80

A snippit from the stty man page reveals some more information and tricks:

* cols N
	      tell the kernel that the terminal has N columns
* rows N
	      tell the kernel that the terminal has N rows
* size print the number of rows and columns according to the kernel

I didn’t realize how useful this program was! Certainly worth taking a deeper look into if your always consoled into your embedded Linux system.

Feel free to donate if this post prevented any headaches! Another way to show your appreciation is to take a gander at these relative ads that you may be interested in:


There's 0 Comment So Far

Share your thoughts, leave a comment!