Expand lines

This commit is contained in:
2026-03-04 17:31:14 -07:00
parent eaaa8e5f57
commit dee45e5eae

15
tui.py
View File

@@ -955,7 +955,8 @@ I will be terse in my responses.''')]
self.stdscr.refresh() self.stdscr.refresh()
self.message_to_send = self.message_to_send[:-1] self.message_to_send = self.message_to_send[:-1]
lines = textwrap.wrap(self.message_to_send, width=80, initial_indent=' '*20, subsequent_indent=' '*20) 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)) self.thread.append(dict(role='user', content=self.message_to_send))
gpt_reply = utils.message_protovac(self.thread) gpt_reply = utils.message_protovac(self.thread)
self.thread.append(gpt_reply) self.thread.append(gpt_reply)
@@ -1023,10 +1024,14 @@ class ThinkScreen(Screen):
self.stdscr.clrtoeol() self.stdscr.clrtoeol()
self.stdscr.addstr(23, 1, '[B] Back', curses.A_REVERSE if self.state.highlight_keys else 0) 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(9, 1, 'Examples:')
self.stdscr.addstr(11, 4, '42 + 69'); self.stdscr.addstr(12, 4, '55 kg to lbs') self.stdscr.addstr(11, 4, '42 + 69')
self.stdscr.addstr(13, 4, 'density of lead'); self.stdscr.addstr(14, 4, 'if x = 4, what is 3x + 50?') self.stdscr.addstr(12, 4, '55 kg to lbs')
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(13, 4, 'density of lead')
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(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() self.stdscr.clrtoeol()
def handle_input(self, c): def handle_input(self, c):