summaryrefslogtreecommitdiff
path: root/poezio/windows
diff options
context:
space:
mode:
authormathieui <mathieui@mathieui.net>2017-11-14 19:23:35 +0100
committermathieui <mathieui@mathieui.net>2017-11-14 19:23:35 +0100
commit156d170d13dd3268728767adf9147e8c4d53d01f (patch)
tree366020f073c1f2dc7e73f7513a939f4c6b5fcc6b /poezio/windows
parentbd7b52988c99ef34fd49f52c8a9d335941144450 (diff)
downloadpoezio-156d170d13dd3268728767adf9147e8c4d53d01f.tar.gz
poezio-156d170d13dd3268728767adf9147e8c4d53d01f.tar.bz2
poezio-156d170d13dd3268728767adf9147e8c4d53d01f.tar.xz
poezio-156d170d13dd3268728767adf9147e8c4d53d01f.zip
Make italics work
Diffstat (limited to 'poezio/windows')
-rw-r--r--poezio/windows/base_wins.py4
-rw-r--r--poezio/windows/inputs.py2
2 files changed, 3 insertions, 3 deletions
diff --git a/poezio/windows/base_wins.py b/poezio/windows/base_wins.py
index 70271765..b54a7b37 100644
--- a/poezio/windows/base_wins.py
+++ b/poezio/windows/base_wins.py
@@ -20,7 +20,7 @@ from poezio.theming import to_curses_attr, read_tuple
FORMAT_CHAR = '\x19'
# These are non-printable chars, so they should never appear in the input,
# I guess. But maybe we can find better chars that are even less risky.
-format_chars = '\x0E\x0F\x10\x11\x12\x13\x14\x15\x16\x17\x18'
+format_chars = '\x0E\x0F\x10\x11\x12\x13\x14\x15\x16\x17\x18\x1A'
class DummyWin(object):
@@ -132,7 +132,7 @@ class Win(object):
self._win.attron(curses.A_UNDERLINE)
elif char == 'b':
self._win.attron(curses.A_BOLD)
- elif char == 'i' and has_italic:
+ elif char == 'i':
self._win.attron(attr_italic)
else:
# this will reset previous bold/uderline sequences if any was used
diff --git a/poezio/windows/inputs.py b/poezio/windows/inputs.py
index 512395f0..48f60493 100644
--- a/poezio/windows/inputs.py
+++ b/poezio/windows/inputs.py
@@ -31,7 +31,7 @@ class Input(Win):
passing the list of items that can be used to complete. The completion can be used
in a very flexible way.
"""
- text_attributes = 'bou1234567t'
+ text_attributes = 'bou1234567ti'
clipboard = '' # A common clipboard for all the inputs, this makes
# it easy cut and paste text between various input