(state any)
| 135 | } |
| 136 | |
| 137 | func (b *FullscreenRendererBackend) GetInput(state any) (string, bool) { |
| 138 | b.PrepareRuntime() |
| 139 | b.InputEnabled = true |
| 140 | b.InputMode = "normal" |
| 141 | b.InputPlaceholder = "请输入消息并回车。" |
| 142 | b.PendingInput = true |
| 143 | b.StatusText = b.formatIdleStatus(state) |
| 144 | b.refreshControls() |
| 145 | defer func() { |
| 146 | b.PendingInput = false |
| 147 | b.refreshControls() |
| 148 | }() |
| 149 | return b.readFullscreenText() |
| 150 | } |
| 151 | |
| 152 | func (b *FullscreenRendererBackend) ResetForNewSession() { |
| 153 | b.TranscriptChunks = nil |