From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id E989D1396D0 for ; Mon, 18 Sep 2017 01:14:00 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 57750E0FCA; Mon, 18 Sep 2017 01:13:54 +0000 (UTC) Received: from mail-yw0-x233.google.com (mail-yw0-x233.google.com [IPv6:2607:f8b0:4002:c05::233]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 01DC8E0CBD for ; Mon, 18 Sep 2017 01:13:53 +0000 (UTC) Received: by mail-yw0-x233.google.com with SMTP id u11so3618651ywh.7 for ; Sun, 17 Sep 2017 18:13:53 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:in-reply-to:references:from:date:message-id:subject:to; bh=cTJPRWIwdnkkRCBpNjeaGDQiaOjyVTJtfWkaJRrX93M=; b=Qy+jkBMnEH5H0n7wk6tuA3a/4PkWWZz9atQCIQzq2MSNipB8SCnGtTZ1QtgzH0H8sf lt2SGiLkMlWEz9ZvmOrlk+MOj+dv+M8Xr5dqjbMZxEF1/x6ddeb870La9LxS75ByxclZ uAQc/zfs7be7lqBan+/wFxK9ZxZJHhXNEWvqHBnBwZXJwfI8ITHf7nWbENKq0YAaRwcD JjFgOm7ymTTNmzjOfv+5Gn4dVnqpSfo5IhA3S4ew8rnEp+tvi3gp87H1KP9TbLsGST69 cUmgep3mIA8tMyl2+YKuBNpR1ru+xmUkAuUabNHyEHSht/STOawrP5GG6BHnCUcfJK6k FPXA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to; bh=cTJPRWIwdnkkRCBpNjeaGDQiaOjyVTJtfWkaJRrX93M=; b=PimpURtzUPIt7LxYfC0V9uu4Q4RnVhbrUSTG2oigKPH5argNsnyKGA5Xon8ubkrMQp LodXIULuxN7JFKWUFLNuRj3iWF2vGwJHzZeH8rqDZRHboDZVGoPHj3jVNmpZKSE1mhph ODoaqEXv0SSinGWCvt8FBuI5aSfoY25XQL8m4+cLID4W4xHcLblJsiREOm/Yp4uf19pH XWZbchdQ2yojwzXcD2k7/mj21Y96RAM5GQPb0bYW2dRqo5atEvlLN/KcWNaQryJ74yW8 fsqO5wV+d/mE3HYgILdej6pQofVz9cPCDi3dZzO5uMukkMt4btc0dYMihkVvK7Z4xDOr goUA== X-Gm-Message-State: AHPjjUgL9XKlEiQQgLhMLHITlzK41b/YElhLLtmoZ17awCQ2WEDhBUv0 AQ4LmcYkrX/msB1wPZiITaRlYcVqbqEfQHrGd/BTlg== X-Google-Smtp-Source: AOwi7QBMEELUhgN1DQNmD46tdz3QuYdp2csBVIhuCLHJJTfwS1urexxHaG7aSxkDI0SBDrU5onS1iCXw4xhx89x7SHY= X-Received: by 10.37.134.135 with SMTP id z7mr23117838ybk.174.1505697232539; Sun, 17 Sep 2017 18:13:52 -0700 (PDT) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-user@lists.gentoo.org Reply-to: gentoo-user@lists.gentoo.org MIME-Version: 1.0 Received: by 10.129.131.138 with HTTP; Sun, 17 Sep 2017 18:13:51 -0700 (PDT) In-Reply-To: <20170917154134.obpdtq3juxbxwl7f@solfire> References: <20170917154134.obpdtq3juxbxwl7f@solfire> From: R0b0t1 Date: Sun, 17 Sep 2017 20:13:51 -0500 Message-ID: Subject: Re: [gentoo-user] Searching something like a merge between gnu-screen and cutecom... To: gentoo-user@lists.gentoo.org Content-Type: text/plain; charset="UTF-8" X-Archives-Salt: b91963f8-14ec-4659-9023-3c0ee6c79efb X-Archives-Hash: 2b17f095e7c526c3493f60a0ff6bfe61 Hello! On Sun, Sep 17, 2017 at 10:41 AM, wrote: > Hi, > > this is complicate for me to explain...let' try it nvertheless ;) > > I am experimenting with FORTH (punyforth) on an ESP8266. > FORTH has a REPL, which -- especially in the beginning -- is > very helpful to try things out. > > With cutecom I can connect to the ESP8266 and get a response. > Unfortunately - in this particular case - cutecom separates the > input line from what the ESP8266 i sending back. > Like this (https://arduino.stackexchange.com/questions/24578/how-to-filter-a-blank-line-received-over-serial-esp8266)? It sounds like the firmware on the chip is written incorrectly. If it is doing something like echoing lines back with \r\n at the end you can usually configure your terminal software to translate them to \n, but if it's doing it sporadically you may need to put a layer in between you and the terminal. > With Arduino devices I had no problem to do the same thing with > gnu-screen like this > > screen /dev/ttyUSB1 115200 > > ...with the ESP8266 (using the same baudrate as with cutecom > before) the cursor get glued in the upper left corner. > Hitting a key, CTRL-D. CTRL-C, and other obvious > candidates does not help. The only waty out is killall. > I think screen can support dumb terminals, but this behavior makes it sound like it is expecting smart hardware terminal feedback. Check the manual. > Now I am in search of a "real terminal"-like thing, which > allows me to interactively connect to the ESP8266 while > maintaining the chronological sequence of my inputs and > the returns of the ESP8266. > > I tried minicom, but I always dislike the way that beast > is configured, > > Is there anything reliable available...may be even without a gui? > http://pyserial.readthedocs.io/en/latest/tools.html#module-serial.tools.miniterm pySerial ships with a minimal terminal emulator which is perfect for reading device output. I tend to use it above anything else because it is sufficient and I am generally working with Python. There is no readline support, but you didn't ask about that. Importantly it doesn't cook the input in any way or expect the terminal to do anything, so you can use it to better figure out what the ESP8266 firmware is doing. Cheers, R0b0t1