nano-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Nano-devel] set the terminal emulator's titlebar


From: Brand Huntsman
Subject: Re: [Nano-devel] set the terminal emulator's titlebar
Date: Sat, 27 Jan 2018 02:59:56 -0700

On Sat, 27 Jan 2018 01:41:52 -0500
Mike Frysinger <address@hidden> wrote:

> would be nice if the string was customizable with like % replacements,
> but i don't think anything in nano supports that currently.

That could be added if wanted. Something similar to the syntax variable 
interpolation function could be used to find % or ${} sequences and replace 
them with text. What else would you want besides filename and pwd? Username? 
Hostname?

Might be more useful if nano's titlebar could also be customized with the same 
code, but with a separate option string.


> curses will take care of escaping sequences so it doesn't mess things
> up. this code doesn't.

New patch uses the same path string displayed on nano's titlebar and only sends 
the titlebar sequence if DISPLAY is set.

Attachment: set-the-terminal-emulator-s-titlebar.patch
Description: Text Data


reply via email to

[Prev in Thread] Current Thread [Next in Thread]