mirror of
https://codeberg.org/dnkl/foot.git
synced 2026-02-05 04:06:08 -05:00
scripts: generate-builtin-terminfo: fix syntax error
This commit is contained in:
parent
3c4669061b
commit
3a7ea1f44b
1 changed files with 1 additions and 1 deletions
|
|
@ -57,7 +57,7 @@ class StringCapability(Capability):
|
||||||
ctrl = m.group(1)
|
ctrl = m.group(1)
|
||||||
if ctrl == '?':
|
if ctrl == '?':
|
||||||
return '\\x7f'
|
return '\\x7f'
|
||||||
return f'\\x{ord(ctrl) - ord('@'):02x}'
|
return f'\\x{ord(ctrl) - ord("@"):02x}'
|
||||||
value = re.sub(r'\^([@A-Z[\\\\\]^_?])', translate_ctrl_chr, value)
|
value = re.sub(r'\^([@A-Z[\\\\\]^_?])', translate_ctrl_chr, value)
|
||||||
|
|
||||||
# Ensure e.g. \E7 (or \e7) doesn’t get translated to “\0337”,
|
# Ensure e.g. \E7 (or \e7) doesn’t get translated to “\0337”,
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue