bugGNU Screen - Bugs: bug #23955, [PATCH] show encoding on status...

 
 

bug #23955: [PATCH] show encoding on status line

Submitter:  yzlin <yzlin>
Submitted:  Tue 29 Jul 2008 03:56:06 AM UTC
   
 
Category:  Feature Request Severity:  1 - Wish
Priority:  * 1 - Later Status:  Need Discussion
Privacy:  Public Assigned to:  None
Open/Closed:  Open Release:  4.0.3
Fixed Release:  None Planned Release:  Later
Work Required:  None
* Mandatory Fields

Add a New Comment Rich Markup
   

Tue 29 Jul 2008 06:19:09 AM UTC, comment #1: 

Hello, and thank you for your feature request.

Unfortunately, accepting every escape sequence that brings benefit to users of Screen will lead to bloat extremely quickly. A better approach is to introduce scriptability to screen, an undertaking which is in the beginnings of discussion, and some development work has been done. That way everyone can make the status line/caption say anything that could be said, without introducing an array of escapes for each new thing.

I'm not disparaging the usefulness of this feature, but there are several other proposed useful escapes that have been proposed, and quite a few more that may be. Some more so, some less so, but I'd like to avoid grafting more features to a fundamentally inflexible system, and instead make the beginning moves towards fixing it.

Someone's made the first steps towards scriptability in Screen here:
http://lists.gnu.org/archive/html/screen-users/2008-07/msg00045.html

Micah Cowan <micahcowan>
Tue 29 Jul 2008 03:56:06 AM UTC, original submission:  

A new status line parameter is added. With this patch, screen could show encoding of every window
on status line (caption or hardstatus) by adding a parameter "%e".
Here is an example:
hardstatus alwayslastline "%=%e %H %c %d/%m/%Y Load: %l "

It's an useful feature for switching between windows with different encodings such as Big5 & UTF-8.
And we don't have to use "^A + i" to check which encoding used.

yzlin <yzlin>

 

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

Attach Files:
   
   
Comment:
   

Attached Files
file #16204:  patch-process.c added by yzlin (288B - application/octet-stream)
file #16205:  patch-screen.c added by yzlin (491B - application/octet-stream)

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by micahcowan (Posted a comment)
  • -email is unavailable- added by yzlin (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.

     

    Follow 6 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2008-07-29 micahcowan Severity3 - Normal 1 - Wish
        Priority5 - Normal 1 - Later
        StatusNone Need Discussion
        Planned Release4.1.0 Later
    2008-07-29 yzlin Attached File- Added patch-process.c, #16204
        Attached File- Added patch-screen.c, #16205

    Back to the top

    Powered by Savane 3.13-02a9.
    Corresponding source code