From dee45e5eaeba1ae17b5a6fa0a5cf7942a870f621 Mon Sep 17 00:00:00 2001 From: Tanner Collin Date: Wed, 4 Mar 2026 17:31:14 -0700 Subject: [PATCH] Expand lines --- tui.py | 15 ++++++++++----- 1 file changed, 10 insertions(+), 5 deletions(-) diff --git a/tui.py b/tui.py index cdeeedf..3b22403 100644 --- a/tui.py +++ b/tui.py @@ -955,7 +955,8 @@ I will be terse in my responses.''')] self.stdscr.refresh() self.message_to_send = self.message_to_send[:-1] lines = textwrap.wrap(self.message_to_send, width=80, initial_indent=' '*20, subsequent_indent=' '*20) - self.messages.append(''); self.messages.extend(lines) + self.messages.append('') + self.messages.extend(lines) self.thread.append(dict(role='user', content=self.message_to_send)) gpt_reply = utils.message_protovac(self.thread) self.thread.append(gpt_reply) @@ -1023,10 +1024,14 @@ class ThinkScreen(Screen): self.stdscr.clrtoeol() self.stdscr.addstr(23, 1, '[B] Back', curses.A_REVERSE if self.state.highlight_keys else 0) self.stdscr.addstr(9, 1, 'Examples:') - self.stdscr.addstr(11, 4, '42 + 69'); self.stdscr.addstr(12, 4, '55 kg to lbs') - self.stdscr.addstr(13, 4, 'density of lead'); self.stdscr.addstr(14, 4, 'if x = 4, what is 3x + 50?') - self.stdscr.addstr(15, 4, 'force m=150g, a=50cm/s^2'); self.stdscr.addstr(16, 4, 'boiling point of benzene at 550 torr') - self.stdscr.addstr(17, 4, 'goats with highest milk yield'); self.stdscr.addstr(18, 4, 'how long did the Aztec empire last?') + self.stdscr.addstr(11, 4, '42 + 69') + self.stdscr.addstr(12, 4, '55 kg to lbs') + self.stdscr.addstr(13, 4, 'density of lead') + self.stdscr.addstr(14, 4, 'if x = 4, what is 3x + 50?') + self.stdscr.addstr(15, 4, 'force m=150g, a=50cm/s^2') + self.stdscr.addstr(16, 4, 'boiling point of benzene at 550 torr') + self.stdscr.addstr(17, 4, 'goats with highest milk yield') + self.stdscr.addstr(18, 4, 'how long did the Aztec empire last?') self.stdscr.clrtoeol() def handle_input(self, c):