Commit 6c67f5e
committed
fix(inquirerer): fix cursor positioning for viewport rendering
On first render, cursor is at bottom after printing newlines, so move up viewportHeight.
On subsequent renders, cursor is on last viewport row (no trailing newline), so move up viewportHeight-1.
This prevents the 'filling screen upward' bug where each render landed one row higher.1 parent fe56bad commit 6c67f5e
1 file changed
Lines changed: 8 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
234 | 234 | | |
235 | 235 | | |
236 | 236 | | |
237 | | - | |
| 237 | + | |
238 | 238 | | |
| 239 | + | |
239 | 240 | | |
240 | 241 | | |
241 | 242 | | |
242 | 243 | | |
| 244 | + | |
| 245 | + | |
| 246 | + | |
| 247 | + | |
| 248 | + | |
| 249 | + | |
243 | 250 | | |
244 | | - | |
245 | | - | |
246 | | - | |
247 | 251 | | |
248 | 252 | | |
249 | 253 | | |
| |||
0 commit comments