Return-path: Received: from mail-pf1-x42b.google.com (mail-pf1-x42b.google.com [IPv6:2607:f8b0:4864:20::42b]) by gabe.freedesktop.org (Postfix) with ESMTPS id E1B3A10E956 for ; Thu, 17 Feb 2022 10:52:20 +0000 (UTC) Received: by mail-pf1-x42b.google.com with SMTP id z16so4676126pfh.3 for ; Thu, 17 Feb 2022 02:52:20 -0800 (PST) From: "K. Eugene Carlson" To: igt-dev@lists.freedesktop.org Date: Thu, 17 Feb 2022 19:49:22 +0900 Message-Id: <20220217104923.23135-1-kvngncrlsn@gmail.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Subject: [igt-dev] tools/intel_gpu_top: Restore terminal attributes on quit List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: kvngncrlsn@gmail.com Errors-To: igt-dev-bounces@lists.freedesktop.org Sender: "igt-dev" List-ID: Save initial terminal attributes when in interactive mode, and reset when the program quits or receives SIGINT. Prevents bad text entry in some password prompts (e.g., su, passwd).