Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

I've started to play with GNU Screen setting.

What's the difference between hardstatus and caption in GNU Screen?

hardstatus seems to appear at the bottom on the Terminal, but I don't even know what caption really is yet.

share|improve this question

2 Answers 2

up vote 1 down vote accepted

For me, using PuTTY in Windows, hardstatus is displayed in the Windows window title (hstatus string), while caption is displayed at the bottom of each screen window when the screen is split (caption splitonly string) or at the bottom of any screen window whether it's split or not (caption always string).

You can find further documentation in info screen.

share|improve this answer
    
Using Putty in Windows, hardstatus alwayslastline displays the status at the bottom of the window, as the last line. –  matt b Feb 12 '10 at 14:34

Position where these two statuses are displayed depends on your configuration. But the logical meaning of them is as follows:

The hardstatus line is used for status messages from screen - for example to alert you to activity, or other similar messages. The caption line is usually only shown if there is more than one window open, and allows you to view details of them.

You'll have the statuses on last two lines of screen, if you configure them like this in your ~/.screenrc:

caption string ...
hardstatus alwayslastline ...

You can read further details on An introduction to the visual features of GNU Screen.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.