Received: by 10.223.176.5 with SMTP id f5csp59197wra; Mon, 5 Feb 2018 16:39:11 -0800 (PST) X-Google-Smtp-Source: AH8x224rCQF0W6aY/DBSHyiuS1dLHGywV2eGFvqd/dVvHGgovhyFzDia2Fw6BedGM87VTKIwi45/ X-Received: by 10.99.114.3 with SMTP id n3mr455685pgc.225.1517877551639; Mon, 05 Feb 2018 16:39:11 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1517877551; cv=none; d=google.com; s=arc-20160816; b=vA+svsl6hGBv+9WRxrqACTcNQSz/I18qxs1Iqs2ksory1D/KO9IU5YERWztFuW7uQV phXaUxrdMVCtzM75hykSRQEaKm8Z+G06VhMYA6sQlnaMjIwjiWfrLTIoOSBRqEg9lBr6 z5uPtPK2hv8K4ABGWkb69W06QgoUT3jZ7oiPxQEvgmmP7dmkqnOIM9l6yfObMGQZyO3u Dd2qebRQbYWFKA4ih6B0+nUOZjqlr7YIg2MAZMvnzpJUB1ifbaHO1OLDocLSvp0sKOAl zr6vUcRmH951iVGkQHAdAj1xhRTCJfN1lgbY7G58b1LAkh9RsAP+Aqpwz7YO3FUlSrJK NOIQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from:dkim-signature:dkim-filter :arc-authentication-results; bh=bqIObxmbs+IzgdDGruZRzcflE0S0IiR14juIeTQmYtc=; b=txnbrbWeYa0a6VXxMmZmsH1fbotF9mR66SAaG9oX2G4jJ4dV2DunONQfZ6H5sjmVdc bDiJp2XAhFcWlDMdSi6GUpNMYIHDfzI/JE9n9pEd1mY7Lh9fdCgvdLrGXWR6vtW7q/Ox zpVn9QGtBJ+2l6aFUNunIViJZuG1m07P7waHfOs0JUkDruJeNCqIVnMKIZ3q9XxMssOv XPqiRYAkgfZfejXbejF7c3gN9Cc6grBEMxZ+ElHhj8iTm/9075nAZ+iZUiDS0RjN+Ww+ VkMtMpLedwGiLAFatnG6zWZk2fs+ySkoViZeUAaJj0oZdOLdCHEcXsDb2q8d9awOaS1r Agwg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@nifty.com header.s=dec2015msa header.b=T6Xwwla2; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id a61-v6si7594315pla.689.2018.02.05.16.38.47; Mon, 05 Feb 2018 16:39:11 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@nifty.com header.s=dec2015msa header.b=T6Xwwla2; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752478AbeBFAiP (ORCPT + 99 others); Mon, 5 Feb 2018 19:38:15 -0500 Received: from conuserg-07.nifty.com ([210.131.2.74]:39669 "EHLO conuserg-07.nifty.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751829AbeBFAhw (ORCPT ); Mon, 5 Feb 2018 19:37:52 -0500 Received: from grover.sesame (FL1-125-199-20-195.osk.mesh.ad.jp [125.199.20.195]) (authenticated) by conuserg-07.nifty.com with ESMTP id w160ZHAj011351; Tue, 6 Feb 2018 09:35:21 +0900 DKIM-Filter: OpenDKIM Filter v2.10.3 conuserg-07.nifty.com w160ZHAj011351 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nifty.com; s=dec2015msa; t=1517877322; bh=bqIObxmbs+IzgdDGruZRzcflE0S0IiR14juIeTQmYtc=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=T6Xwwla2i9CItolDKJN7eLb4Dbveik1q1/7q0ueK8vUCAI/imo+xCGTN4VKUyj4GX x1Go02bW9ymiQpOd9y+kIFkmkQB4lUpNAtoUHK1j2KGORN1D33J0Yy9iKwm6xLTvwd C5wMC8K8TQLn7LwuqeHialyZwbOj26o5BeCapsjbq3ltvG0VpYvEnVNjrvzQN+b7IV rllV9Xw3OvnfwVlHWvktfZhQLIO2qYWntqvI29mCPeaEtNkTKi7UrjeIMseyInPpOS gX0dUj6JIpG5azYxGGeCV5b2uTjAkZAB2Q134NRVfLxJ5v0hpwX3FVT7pusC2qJZse S4Vq/DyqRgQ3g== X-Nifty-SrcIP: [125.199.20.195] From: Masahiro Yamada To: linux-kbuild@vger.kernel.org Cc: Greg Kroah-Hartman , Andrew Morton , Nicolas Pitre , "Luis R . Rodriguez" , Randy Dunlap , Ulf Magnusson , Sam Ravnborg , Michal Marek , Linus Torvalds , Masahiro Yamada , linux-kernel@vger.kernel.org, Marc Herbert Subject: [PATCH 04/14] kconfig: print additional new line for choice for redirection Date: Tue, 6 Feb 2018 09:34:44 +0900 Message-Id: <1517877294-4826-5-git-send-email-yamada.masahiro@socionext.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1517877294-4826-1-git-send-email-yamada.masahiro@socionext.com> References: <1517877294-4826-1-git-send-email-yamada.masahiro@socionext.com> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org If stdout is redirected to a file, prompts look differently due to missing new lines. Currently, conf_askvalue() takes care of this by putting additional new line, but conf_choice() does not. Do likewise so that prompts after 'choice' look properly. Signed-off-by: Masahiro Yamada --- scripts/kconfig/conf.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/scripts/kconfig/conf.c b/scripts/kconfig/conf.c index d346642..6ce06c8 100644 --- a/scripts/kconfig/conf.c +++ b/scripts/kconfig/conf.c @@ -317,6 +317,8 @@ static int conf_choice(struct menu *menu) case oldaskconfig: fflush(stdout); xfgets(line, sizeof(line), stdin); + if (!tty_stdio) + printf("\n"); strip(line); if (line[0] == '?') { print_help(menu); -- 2.7.4