From ae0b56cdda382732abc7c657e14f36a1e3d4d302 Mon Sep 17 00:00:00 2001 From: "Barton E. Schaefer" Date: Sat, 15 Feb 2014 13:45:35 -0800 Subject: 32389 (with Jun Takimoto): additional PTY and keybinding adjustments --- Test/comptest | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) (limited to 'Test/comptest') diff --git a/Test/comptest b/Test/comptest index 42fe651d7..48b6cdfea 100644 --- a/Test/comptest +++ b/Test/comptest @@ -106,7 +106,7 @@ comptesteval () { local tmp=/tmp/comptest.$$ print -lr - "$@" > $tmp - zpty_flush Before comptesteval + # zpty_flush Before comptesteval zpty -w zsh ". $tmp" zpty -r -m zsh log_eval "**" || { print "prompt hasn't appeared." @@ -118,13 +118,11 @@ comptesteval () { comptest () { input="$*" - zpty_flush Before comptest zpty -n -w zsh "$input"$'\C-Z' zpty -r -m zsh log "***" || { print "failed to invoke finish widget." return 1 } - zpty_flush After comptest logs=(${(s::)log}) shift logs @@ -154,12 +152,12 @@ comptest () { zletest () { input="$*" - zpty_flush Before zletest + # zpty_flush Before zletest zpty -n -w zsh "$input"$'\C-X' zpty -r -m zsh log "***" || { print "failed to invoke finish widget." return 1 } - zpty_flush After zletest + # zpty_flush After zletest print -lr "${(@)${(ps:\r\n:)log##*}[1,-2]}" } -- cgit 1.4.1