bugGNU Screen - Bugs: bug #51186, In screenrc, 'te' should be...


bug #51186: In screenrc, 'te' should be present when 'ti' is

Submitter:  Jeff Smith <whydoubt>
Submitted:  Tue 06 Jun 2017 02:26:22 AM UTC
Category:  None Severity:  3 - Normal
Priority:  * 5 - Normal Status:  None
Privacy:  Public Assigned to:  None
Open/Closed:  Open Release:  None
Fixed Release:  None Planned Release:  None
Work Required:  None
* Mandatory Fields

Add a New Comment Rich Markup

Tue 06 Jun 2017 02:26:22 AM UTC, original submission:  

I have noticed in terminal emulators where TERM=xterm, exiting screen returns the cursor to where it was upon entering screen.  However, it does not clear the terminal, which sometimes leads to garbled results.

In src/etc/etcscreenrc, 'ti' is being set (to \E7\E[?47l) for xterm|xterms|xs but 'te' is not.  When one is set (or re-set as it were), the other should be too.  I think one of these choices for 'te' would be best:
 1. te=
 2. te=\E[H\E[2J

Choice 2 matches the standard terminfo 'clear' for xterm, and is the one I prefer.  Choice 1 does not clear the terminal, but does avoid the strange results by exiting at the bottom of the terminal.

Jeff Smith <whydoubt>


(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach Files:

No files currently attached


Depends on the following items: None found

Items that depend on this one: None found


Carbon-Copy List
  • -email is unavailable- added by whydoubt (Submitted the item)

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

    Only logged-in users can vote.


    No changes have been made to this item

    Back to the top

    Powered by Savane 3.13-b921.
    Corresponding source code