mirror of
https://github.com/dustinkirkland/byobu
synced 2025-08-22 06:23:19 -07:00
* screen-profiles: ensure that all registered keybindings get updated
if the user changes their escape sequence, LP: #368937 Signed-off-by: Dustin Kirkland <kirkland@canonical.com>
This commit is contained in:
parent
4e22fbbf80
commit
8be90fbec3
2 changed files with 11 additions and 14 deletions
4
debian/changelog
vendored
4
debian/changelog
vendored
|
@ -9,8 +9,10 @@ screen-profiles (1.52) unreleased; urgency=low
|
||||||
* profiles/common, screen: create a temp file to use on screen launch,
|
* profiles/common, screen: create a temp file to use on screen launch,
|
||||||
consisting of the profile plus the windows, but don't source default
|
consisting of the profile plus the windows, but don't source default
|
||||||
windows otherwise as this breaks F5-refresh, LP: #368786
|
windows otherwise as this breaks F5-refresh, LP: #368786
|
||||||
|
* screen-profiles: ensure that all registered keybindings get updated
|
||||||
|
if the user changes their escape sequence, LP: #368937
|
||||||
|
|
||||||
-- Dustin Kirkland <kirkland@ubuntu.com> Wed, 29 Apr 2009 01:14:27 -0500
|
-- Dustin Kirkland <kirkland@ubuntu.com> Wed, 29 Apr 2009 02:10:39 -0500
|
||||||
|
|
||||||
screen-profiles (1.51-0ubuntu1) karmic; urgency=low
|
screen-profiles (1.51-0ubuntu1) karmic; urgency=low
|
||||||
|
|
||||||
|
|
|
@ -411,19 +411,14 @@ def setesckey(key):
|
||||||
if key != "":
|
if key != "":
|
||||||
u = key[0].upper()
|
u = key[0].upper()
|
||||||
l = key[0].lower()
|
l = key[0].lower()
|
||||||
if not os.path.exists(path):
|
if os.path.exists(path):
|
||||||
appendtofile(path, "escape ^"+u+l+"\nregister n ^"+l+"^c^"+l+"A\n")
|
out = commands.getoutput("sed -i -e 's/^escape.*$//' "+path)
|
||||||
else:
|
appendtofile(path, "escape ^"+u+l+"\n")
|
||||||
out = commands.getoutput("grep ^escape "+path)
|
out = commands.getoutput("sed -i -e 's/^register.*$//' "+path)
|
||||||
if out == "":
|
out = commands.getoutput("grep ^register "+SHARE+"/keybindings/common")
|
||||||
appendtofile(path, "escape ^"+u+l+"\n")
|
appendtofile(path, out+"\n")
|
||||||
else:
|
out = commands.getoutput("sed -i -e 's/\"\^a/\"\^"+l+"/' "+path)
|
||||||
out = commands.getoutput("sed -i -e 's/^escape \^.*/escape ^"+u+l+"/' "+path)
|
out = commands.getoutput("sed -i -e '/^$/d' "+path)
|
||||||
out = commands.getoutput("grep \"^register n \" "+path)
|
|
||||||
if out == "":
|
|
||||||
appendtofile(path, "register n ^"+l+"^c^"+l+"A\n")
|
|
||||||
else:
|
|
||||||
out = commands.getoutput("sed -i -e 's/^register n .*/register n ^"+l+"^c^"+l+"A/' "+path)
|
|
||||||
|
|
||||||
def chgesc(screen, size):
|
def chgesc(screen, size):
|
||||||
esc=Entry(2, text=getesckey(), returnExit=1)
|
esc=Entry(2, text=getesckey(), returnExit=1)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue