Repository navigation
Conversation
|
Caution Review failedThe pull request is closed. 📝 WalkthroughWalkthroughAdds application/numeric keypad mode support to the terminal emulator: tracks keypad state, parses ESC sequences '=' and '>' to toggle application keypad mode, introduces keypad mappings for application vs numeric sequences, and updates legacy key handling and tests accordingly. Changes
Sequence Diagram(s)(omitted — changes did not introduce multi-component sequential interactions that meet diagram criteria) Estimated code review effort🎯 3 (Moderate) | ⏱️ ~25 minutes Possibly related PRs
Poem
🚥 Pre-merge checks | ✅ 2 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (2 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing touches
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #1015 +/- ##
==========================================
+ Coverage 85.09% 85.30% +0.20%
==========================================
Files 46 46
Lines 4803 4817 +14
==========================================
+ Hits 4087 4109 +22
+ Misses 562 554 -8
Partials 154 154 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
There was a problem hiding this comment.
Actionable comments posted: 2
🤖 Fix all issues with AI agents
In `@vt/emulate.go`:
- Around line 212-213: The appKeyPad flag is not being cleared on reset; add
e.appKeyPad = false to the softReset code path (function softReset) and to the
RIS/reset handler that services the ESC c soft reset so both reset routines
explicitly set appKeyPad=false, ensuring the keypad returns to numeric mode
after a soft/RIS reset.
In `@vt/layout.go`:
- Around line 395-398: The default layout variable KeyboardANSI (type Layout)
was renamed to "US" and will break callers using GetLayout("US English"); fix by
registering the old name as an alias that points to the same Layout
instance—e.g., after the KeyboardANSI declaration call the existing registration
function (e.g., RegisterLayout or add to the layouts map) to associate the key
"US English" with KeyboardANSI so GetLayout("US English") returns the same
Layout object.
| appKeyPad bool // use application key pad keys? | ||
| name string // name of this emulator (used for extended attributes) |
There was a problem hiding this comment.
Reset application keypad mode on RIS/soft reset.
ESC c should return the keypad to numeric mode; appKeyPad currently persists across softReset. Please clear it there.
🛠️ Suggested fix
func (em *emulator) softReset() {
// TODO:
// Select default character sets
+ em.appKeyPad = false
em.tabStops = nil
em.autoWrap = falseAlso applies to: 356-359
🤖 Prompt for AI Agents
In `@vt/emulate.go` around lines 212 - 213, The appKeyPad flag is not being
cleared on reset; add e.appKeyPad = false to the softReset code path (function
softReset) and to the RIS/reset handler that services the ESC c soft reset so
both reset routines explicitly set appKeyPad=false, ensuring the keypad returns
to numeric mode after a soft/RIS reset.
Summary by CodeRabbit
New Features
Tests
Chores
✏️ Tip: You can customize this high-level summary in your review settings.