Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7609993
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 31, 20262026-05-31T01:18:42+00:00 2026-05-31T01:18:42+00:00

I am currently trying to write a script that uses expect to logon to

  • 0

I am currently trying to write a script that uses expect to logon to SSH. Logging on to a server every prompt appears as [user@host]~/directory$ when I use a xterm color terminal. However, if I read the output from SSH directly with expect I see the following <ESC>]0;user@host:~/directory[user@host]~/directory$. Using export PS1="#-->" changes the result to <ESC>]0;user@host:~/directory#-->.

My question is: What does the sequence <ESC>]0;do? And which class of terminals does it belong to? I could not find it for neither VT52 nor VT100.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-31T01:18:44+00:00Added an answer on May 31, 2026 at 1:18 am

    by default, the label of each tab is the name of the job that’s running in that session. some systems are configured to augment this with additional information such as the hostname you’re logged in to or your current directory; this is done by sending a special code of:

    ESC]0;<string>^G
    

    such as, ESC]0;david@Scott:~^G, would put “david@Scott:~” in my tab title

    this is referred to as the XTERM hardstatus hack.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm currently trying to write a simple script that looks in a folder, and
In the process of trying to write a Python script that uses PIL today,
I'm currently trying to write a .cmd Windows Shell script that would iterate over
I'm trying to write a perl script that determines which users are currently logged
I'm currently trying to write a python script that, among many things, calls an
I am currently trying to write an addin for PowerPoint that whenever any PowerPoint
Alright, so here's my problem. I'm trying to write a script in PHP that
I'm trying to write a SQL Server database update script. I want to test
Im trying to build a simple AJAX script that uses a form to send
I am currently trying to write a little powershell script (I have no experience

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.