0
0
mirror of https://github.com/vim/vim.git synced 2025-10-02 05:04:20 -04:00

patch 7.4.1310

Problem:    Jobs don't open a channel.
Solution:   Create pipes and add them to the channel.  Add ch_logfile().
            Only Unix for now.
This commit is contained in:
Bram Moolenaar
2016-02-13 17:04:46 +01:00
parent 00af60bbb6
commit 6463ca229c
10 changed files with 935 additions and 346 deletions

View File

@@ -0,0 +1,24 @@
#!/usr/bin/python
#
# Server that will communicate over stdin/stderr
#
# This requires Python 2.6 or later.
from __future__ import print_function
import sys
if __name__ == "__main__":
if len(sys.argv) > 1:
print(sys.argv[1])
while True:
typed = sys.stdin.readline()
if typed.startswith("quit"):
print("Goodbye!")
sys.stdout.flush()
break
if typed.startswith("echo"):
print(typed[5:-1])
sys.stdout.flush()