From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id 2F9F1A0547; Mon, 21 Jun 2021 20:15:00 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 2597040140; Mon, 21 Jun 2021 20:14:59 +0200 (CEST) Received: from mail-pg1-f174.google.com (mail-pg1-f174.google.com [209.85.215.174]) by mails.dpdk.org (Postfix) with ESMTP id E322840040 for ; Mon, 21 Jun 2021 20:14:57 +0200 (CEST) Received: by mail-pg1-f174.google.com with SMTP id p9so492015pgb.1 for ; Mon, 21 Jun 2021 11:14:57 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=networkplumber-org.20150623.gappssmtp.com; s=20150623; h=date:from:to:cc:subject:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=RssJolzqWLhbmKpVYRFM3e7c4LAkJz8m9Gua/f9ncHM=; b=QTKe8yAuwkJClmByphfcCzj/goqbNtiWClEz3iP9BS5bu/RZfudHxsqEJoVXQACuvZ vGx62GHBUwxAhbeACT1kOZpDobm3OB+3R68B3rgfAqGt8g5em6LRXEhtHrOreHjca6hA 6xBNuOVOrkUgKYxOkh/s6LuDp7P8cVX4vKM2FK5JW+yLa189ZUZMDELdkWm+W1JgyGog yj1yhJ9S80uZK25MWimXOUDiE5fu8j9hXWn/0ZMgESFoIt3aCFqlq2BDZvE3/uR16am1 uXkqYcxLfumkTZtrVcQ8av2wmZrDTKx+TvCgsEvKue+M/V5YG2OI7gcOf4b8pnUf4hmh 80pQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=RssJolzqWLhbmKpVYRFM3e7c4LAkJz8m9Gua/f9ncHM=; b=Dr771NbSwqo+gtKGTkoL7k8eJfT2XFWW46tQv6hrPrsdyhm6Sh1RdVFGaQ0OMHhVXb N1YEvbLiMqV7Rqn+bNGNITw7qpigcVCmCKaxn6owO9tUw0/eEhPp+YeEqI2AcN1fG/xh RTCr6FR644p7YB0cZMp5V7F1hjQ5fV8auJqCQUBbVmJLbFM+nI5EFVZZG5v3kIJPFmTb 3KPVN/j1LSMp7jwW84SGCYCcaY1ZVZ5SWjmE/X75O0t0ZfpGoWhsKfn+MSZtwZCxk0mK gUbmfw6RNex5X2s0FDiErH7VGWrZT8Y7TvlbgKGHFN0yhbzjkJXs6pGgL3XhNuTChtHx WgeA== X-Gm-Message-State: AOAM5325iRarjfMqTXPd+ihPq+XyJuy6g66WK4RAJ3P0CdPh1WtfRS5V ojZu3Iq5RjouS1H58HGCv5wo9g== X-Google-Smtp-Source: ABdhPJyKj7C7sxCGXmE3YQ2dmMJE24PrIxBA0F2fLa+EPl71YGIirJxLmEzh5YcOrf3dPTCOHSXUcg== X-Received: by 2002:aa7:96fc:0:b029:2e9:e827:928f with SMTP id i28-20020aa796fc0000b02902e9e827928fmr20756694pfq.49.1624299296997; Mon, 21 Jun 2021 11:14:56 -0700 (PDT) Received: from hermes.local (76-14-218-44.or.wavecable.com. [76.14.218.44]) by smtp.gmail.com with ESMTPSA id k20sm7837847pji.3.2021.06.21.11.14.55 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 21 Jun 2021 11:14:56 -0700 (PDT) Date: Mon, 21 Jun 2021 11:14:52 -0700 From: Stephen Hemminger To: Ray Kinsella Cc: dev@dpdk.org, ferruh.yigit@intel.com, thomas@monjalon.net, ktraynor@redhat.com, bruce.richardson@intel.com Message-ID: <20210621111452.09ed3773@hermes.local> In-Reply-To: <20210621153531.409233-1-mdr@ashroe.eu> References: <20210618163659.85933-1-mdr@ashroe.eu> <20210621153531.409233-1-mdr@ashroe.eu> MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Subject: Re: [dpdk-dev] [PATCH v4] devtools: script to track map symbols X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" On Mon, 21 Jun 2021 16:35:31 +0100 Ray Kinsella wrote: > +def get_terminal_rows(): > + '''Find the number of rows in the terminal''' > + > + rows, _ = os.popen('stty size', 'r').read().split() > + return int(rows) > + Use standard Python function os.get_terminal_size or shutil.get_terminal_size() instead. That way it would be portable to other OS.