Change how the cursor looks

Now uses <> instead of [] so that distinguishing the cursor and messages
is easier.
This commit is contained in:
Joscha 2019-06-12 08:46:31 +00:00
parent 6030c96586
commit 1307a9d06b

View file

@ -32,8 +32,8 @@ class EuphRenderer(CursorRenderer):
surround_right: str = "]", surround_right: str = "]",
surround_attrs: Attributes = {}, surround_attrs: Attributes = {},
# Cursor settings # Cursor settings
cursor_surround_left: str = "[", cursor_surround_left: str = "<",
cursor_surround_right: str = "]", cursor_surround_right: str = ">",
cursor_surround_attrs: Attributes = {}, cursor_surround_attrs: Attributes = {},
cursor_own_nick_attrs: Attributes = {}, cursor_own_nick_attrs: Attributes = {},
cursor_fill: str = " ", cursor_fill: str = " ",
@ -107,7 +107,7 @@ class EuphRenderer(CursorRenderer):
left = AT(self._surround_left, attributes=self._surround_attrs) left = AT(self._surround_left, attributes=self._surround_attrs)
nick = AT(self._filter_unicode(message.nick), nick = AT(self._filter_unicode(message.nick),
attributes=self._nick_attrs) attributes=self._nick_attrs) # TODO detect own nick
right = AT(self._surround_right, attributes=self._surround_attrs) right = AT(self._surround_right, attributes=self._surround_attrs)
nick_str = left + nick + right + AT(" ") nick_str = left + nick + right + AT(" ")