@@ -75,6 +75,12 @@ def handle(self):
7575 print ("sending: {}" .format (cmd ))
7676 self .request .sendall (cmd .encode ('utf-8' ))
7777 response = "ok"
78+ elif decoded [1 ] == 'do normal' :
79+ # Send a normal command.
80+ cmd = '["normal","G$s more\u001b "]'
81+ print ("sending: {}" .format (cmd ))
82+ self .request .sendall (cmd .encode ('utf-8' ))
83+ response = "ok"
7884 elif decoded [1 ] == 'eval-works' :
7985 # Send an eval request. We ignore the response.
8086 cmd = '["eval","\\ "foo\\ " . 123", -1]'
@@ -93,6 +99,22 @@ def handle(self):
9399 print ("sending: {}" .format (cmd ))
94100 self .request .sendall (cmd .encode ('utf-8' ))
95101 response = "ok"
102+ elif decoded [1 ] == 'an expr' :
103+ # Send an expr request.
104+ cmd = '["expr","setline(\\ "$\\ ", [\\ "one\\ ",\\ "two\\ ",\\ "three\\ "])"]'
105+ print ("sending: {}" .format (cmd ))
106+ self .request .sendall (cmd .encode ('utf-8' ))
107+ response = "ok"
108+ elif decoded [1 ] == 'redraw' :
109+ cmd = '["redraw",""]'
110+ print ("sending: {}" .format (cmd ))
111+ self .request .sendall (cmd .encode ('utf-8' ))
112+ response = "ok"
113+ elif decoded [1 ] == 'redraw!' :
114+ cmd = '["redraw","force"]'
115+ print ("sending: {}" .format (cmd ))
116+ self .request .sendall (cmd .encode ('utf-8' ))
117+ response = "ok"
96118 elif decoded [1 ] == 'empty-request' :
97119 cmd = '[]'
98120 print ("sending: {}" .format (cmd ))
0 commit comments