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

 
 

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

Submitted by:  yzlin <yzlin>
Submitted on:  Tue 29 Jul 2008 03:56:06 AM UTC  
 
Category: Feature RequestSeverity: 1 - Wish
Priority: 1 - LaterStatus: Need Discussion
Privacy: PublicAssigned to: None
Open/Closed: OpenRelease: 4.0.3
Fixed Release: NonePlanned Release: Later
Work Required: None

Add a New Comment(Rich Markup)
   

You are not logged in

Please log in, so followups can be emailed to you.

 

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 File(s):
   
   
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
  • -unavailable- added by micahcowan (Posted a comment)
  • -unavailable- added by yzlin (Submitted the item)
  •  

    Do you think this task is very important?
    If so, you can click here to add your encouragement to it.
    This task has 0 encouragements so far.

    Only logged-in users can vote.

     

    Please enter the title of George Orwell's famous dystopian book (it's a date):

     

     

    Follow 6 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Tue 29 Jul 2008 06:19:09 AM UTCmicahcowanSeverity3 - Normal=>1 - Wish
      Priority5 - Normal=>1 - Later
      StatusNone=>Need Discussion
      Planned Release4.1.0=>Later
    Tue 29 Jul 2008 03:56:06 AM UTCyzlinAttached File-=>Added patch-process.c, #16204
      Attached File-=>Added patch-screen.c, #16205

    Back to the top


    Powered by Savane 3.1-cleanup1