mirror of
https://github.com/dustinkirkland/byobu
synced 2025-08-22 22:34:23 -07:00
byobu-config, byobu-select-profile: make color selection more readable;
support ctrl-<space> escape sequence
This commit is contained in:
parent
995ba10d16
commit
025029fb32
2 changed files with 8 additions and 2 deletions
|
@ -444,11 +444,16 @@ def getesckey():
|
||||||
line = commands.getoutput("grep ^escape "+path)
|
line = commands.getoutput("grep ^escape "+path)
|
||||||
if line == "":
|
if line == "":
|
||||||
return DEF_ESC
|
return DEF_ESC
|
||||||
return line[line.find('^')+1]
|
esc = line[line.find('^')+1]
|
||||||
|
if esc == "`":
|
||||||
|
esc = " "
|
||||||
|
return esc
|
||||||
|
|
||||||
def setesckey(key):
|
def setesckey(key):
|
||||||
path = HOME+'/.'+PKG+'/keybindings'
|
path = HOME+'/.'+PKG+'/keybindings'
|
||||||
if key != "":
|
if key != "":
|
||||||
|
if key == " ":
|
||||||
|
key = "`"
|
||||||
u = key[0].upper()
|
u = key[0].upper()
|
||||||
l = key[0].lower()
|
l = key[0].lower()
|
||||||
if os.path.exists(path):
|
if os.path.exists(path):
|
||||||
|
|
3
debian/changelog
vendored
3
debian/changelog
vendored
|
@ -47,7 +47,8 @@ byobu (2.40) unreleased; urgency=low
|
||||||
default values, making it easier for users to customize themselves
|
default values, making it easier for users to customize themselves
|
||||||
* bin/custom, byobu-config, byobu.1, profiles/common, rpm/byobu.spec,
|
* bin/custom, byobu-config, byobu.1, profiles/common, rpm/byobu.spec,
|
||||||
statusrc: add support for a custom status script indicator
|
statusrc: add support for a custom status script indicator
|
||||||
* byobu-config, byobu-select-profile: make color selection more readable
|
* byobu-config, byobu-select-profile: make color selection more readable;
|
||||||
|
support ctrl-<space> escape sequence
|
||||||
|
|
||||||
-- Dustin Kirkland <kirkland@ubuntu.com> Tue, 10 Nov 2009 10:18:20 -0600
|
-- Dustin Kirkland <kirkland@ubuntu.com> Tue, 10 Nov 2009 10:18:20 -0600
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue