|80cols||The 80cols file has a line of 80 numbers. I use it to see if the window has exactly 80 columns, as in Figure 42.1.|
The pattern repeats every ten characters, making it easy to count how many columns the window has.
Some UNIX programs are set for 80-column screens - even if you can make wider windows, you may not want to. If you want other widths, you can make cols files for them, too.
The screensize file has 69 lines of numbers, starting at 69 and
ending at 1.
In Figure 2, the top number is 9. So, the window has 10 lines (counting the prompt on the last line).
The screensize file is also handy
with a full-screen application like
to see if the
right number of lines and columns are displayed.
When more shows the first screenful, the line labeled
be at the top of the screen (the command line might be displayed above it).
The last line should have the prompt, like
When you ask for the next screenful, you should see the next consecutive
line at the top of the screen, maybe with a line or two from the
The same thing should work with editors like vi.
The file longlines in
is like screensize, but the 200-character
lines in it are too long for most screens.
You can use it for two things:
This figure shows an example with the GNU Emacs editor, which shows a backslash
On an 80-column screen, if line wrapping is working right, each line of longlines should take exactly two and one-half lines to display. (If you're using Emacs, remember that because it adds a backslash at the line break, the third part of each line will have two more characters.) As the previous figure shows, there shouldn't be any missing numbers or blank lines.
If you're using a windowing system like , look for a resize or window info function. For example, in the X Window System, the twm window manager will show a small box with the window dimensions as you hold down the mouse button to resize a window. You don't have to resize the window; just look at the size-box. The X command xwininfo gives lots of information-including the window size in pixels.