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

  • Home
  • SEARCH
  • 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 7734123
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 1, 20262026-06-01T07:10:17+00:00 2026-06-01T07:10:17+00:00

In a regular bash session if I type vi , or emacs -nw and

  • 0

In a regular bash session if I type vi, or emacs -nw and then I exit or suspend them, I return to my shell unscathed (with the previous couple commands I had typed still visible). The shell is intact as If I had never launched emacs or vi. When using GNU Screen, however, after exiting I still see vi/emacs with whatever I was doing, forcing me to use screen scroll or history to recall even the last command I had run before launching emacs/vi. How do I toggle this cluttering behavior off? Is it possible?

  • 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-06-01T07:10:19+00:00Added an answer on June 1, 2026 at 7:10 am

    The unscathed aspect is because vi/emacs is using your terminal’s alternate screen for curses (the library that lets them put characters in arbitrary positions on the terminal screen). screen(1) the program is already using the alternate terminal screen, and doesn’t, by default, create an alternate screen of its own for programs run inside of it to access via curses.

    However, you can enable it in screen with:

       altscreen on
    

    in your ~/.screenrc file.

    See the screen manpage for more info.

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

Sidebar

Related Questions

I wonder the general rule to use regular expression in if clause in bash?
Regular expressions can become quite complex. The lack of white space makes them difficult
I need to convert Julian timestamp to Regular timestamp in UNIX using Bash. On
Using Git Bash or MinGW Shell , if I put in a command with
Possible Duplicate: How do I use regular expressions in bash scripts? Why isn't this
bash-3.2$ sed -i.bakkk -e s#/sa/#/he/#g .* sed: .: in-place editing only works for regular
I'm writing this little program in shell: #!/bin/bash #*************************************************************** # Synopsis: # Read from
In a shell script (Linux, bash, #!/bin/sh) I have a variable containing XML data
Regular Expressions are usually expressed as strings, but they also have properties (ie. single
At regular intervals we are receiving CSV files from an external source that we

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.