Screen : 10 Window Settings | Linux Today

Screen : 10 Window Settings

Written By
Web Webster
Web Webster
Aug 7, 2009

[ Thanks to dipinkrishna for this link.
]

“10.1.2 Dynamic Titles
screen has a shell-specific heuristic that is enabled by setting
the window’s name to search|name and arranging to have a null title
escape-sequence output as a part of your prompt. The search portion
specifies an end-of-prompt search string, while the name portion
specifies the default shell name for the window. If the name ends
in a `:’ screen will add what it believes to be the current command
running in the window to the end of the specified name (e.g.
name:cmd). Otherwise the current command name supersedes the shell
name while it is running.

“Here’s how it works: you must modify your shell prompt to
output a null title-escape-sequence (ESC k ESC ) as a part of your
prompt. The last part of your prompt must be the same as the string
you specified for the search portion of the title.”


Complete Story

Web Webster

Web Webster

Web Webster has more than 20 years of writing and editorial experience in the tech sector. He’s written and edited news, demand generation, user-focused, and thought leadership content for business software solutions, consumer tech, and Linux Today, he edits and writes for a portfolio of tech industry news and analysis websites including webopedia.com, and DatabaseJournal.com.

Linux Today Logo

LinuxToday is a trusted, contributor-driven news resource supporting all types of Linux users. Our thriving international community engages with us through social media and frequent content contributions aimed at solving problems ranging from personal computing to enterprise-level IT operations. LinuxToday serves as a home for a community that struggles to find comparable information elsewhere on the web.

Property of TechnologyAdvice. © 2026 TechnologyAdvice. All Rights Reserved

Advertiser Disclosure: Some of the products that appear on this site are from companies from which TechnologyAdvice receives compensation. This compensation may impact how and where products appear on this site including, for example, the order in which they appear. TechnologyAdvice does not include all companies or all types of products available in the marketplace.