Start out in normal key mode
Matches behavior of xterm
This commit is contained in:
parent
bb7edb5f8f
commit
585a01fff6
@ -12,7 +12,7 @@
|
|||||||
#include "modes.h"
|
#include "modes.h"
|
||||||
#include "wcwidth9.h"
|
#include "wcwidth9.h"
|
||||||
|
|
||||||
static const ScreenModes empty_modes = {0, .mDECAWM=true, .mDECTCEM=true, .mDECARM=true, .mDECCKM=true};
|
static const ScreenModes empty_modes = {0, .mDECAWM=true, .mDECTCEM=true, .mDECARM=true};
|
||||||
|
|
||||||
// Constructor/destructor {{{
|
// Constructor/destructor {{{
|
||||||
|
|
||||||
|
|||||||
@ -133,9 +133,11 @@ class TestParser(BaseTest):
|
|||||||
pb('\033[6n', ('report_device_status', 6, 0))
|
pb('\033[6n', ('report_device_status', 6, 0))
|
||||||
self.ae(c.wtcbuf, b'\033[2;1R')
|
self.ae(c.wtcbuf, b'\033[2;1R')
|
||||||
c.clear()
|
c.clear()
|
||||||
|
s.cursor_key_mode = True
|
||||||
pb('\033[?1$p', ('report_mode_status', 1, 1))
|
pb('\033[?1$p', ('report_mode_status', 1, 1))
|
||||||
self.ae(c.wtcbuf, b'\033[?1;1$y')
|
self.ae(c.wtcbuf, b'\033[?1;1$y')
|
||||||
pb('\033[?1l', ('screen_reset_mode', 1, 1))
|
pb('\033[?1l', ('screen_reset_mode', 1, 1))
|
||||||
|
self.assertFalse(s.cursor_key_mode)
|
||||||
c.clear()
|
c.clear()
|
||||||
pb('\033[?1$p', ('report_mode_status', 1, 1))
|
pb('\033[?1$p', ('report_mode_status', 1, 1))
|
||||||
self.ae(c.wtcbuf, b'\033[?1;2$y')
|
self.ae(c.wtcbuf, b'\033[?1;2$y')
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user