Rocksolid Light

Welcome to novaBBS (click a section below)

mail  files  register  newsreader  groups  login

Message-ID:  

My mother is a fish. -- William Faulkner


devel / comp.lang.forth / Re: Terminal Emulator For Talking to Embedded Targets

SubjectAuthor
* Terminal Emulator For Talking to Embedded TargetsLorem Ipsum
+* Re: Terminal Emulator For Talking to Embedded TargetsSpainHackForth
|`- Re: Terminal Emulator For Talking to Embedded TargetsLorem Ipsum
+- Re: Terminal Emulator For Talking to Embedded Targetsnone
`* Re: Terminal Emulator For Talking to Embedded TargetsPablo PabloC
 +* Re: Terminal Emulator For Talking to Embedded TargetsLorem Ipsum
 |`* Re: Terminal Emulator For Talking to Embedded TargetsPablo PabloC
 | `* Re: Terminal Emulator For Talking to Embedded TargetsLorem Ipsum
 |  `- Re: Terminal Emulator For Talking to Embedded TargetsLorem Ipsum
 `- Re: Terminal Emulator For Talking to Embedded TargetsSpainHackForth

1
Terminal Emulator For Talking to Embedded Targets

<e08ae203-9355-4d91-87fb-4d012d402426n@googlegroups.com>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=21511&group=comp.lang.forth#21511

  copy link   Newsgroups: comp.lang.forth
X-Received: by 2002:a05:6214:a0b:b0:4c6:f93f:1cfa with SMTP id dw11-20020a0562140a0b00b004c6f93f1cfamr34084232qvb.49.1670194944700;
Sun, 04 Dec 2022 15:02:24 -0800 (PST)
X-Received: by 2002:ac8:7343:0:b0:3a4:c30b:c640 with SMTP id
q3-20020ac87343000000b003a4c30bc640mr55909296qtp.25.1670194944456; Sun, 04
Dec 2022 15:02:24 -0800 (PST)
Path: i2pn2.org!i2pn.org!usenet.blueworldhosting.com!feed1.usenet.blueworldhosting.com!peer03.iad!feed-me.highwinds-media.com!news.highwinds-media.com!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.lang.forth
Date: Sun, 4 Dec 2022 15:02:24 -0800 (PST)
Injection-Info: google-groups.googlegroups.com; posting-host=63.114.57.174; posting-account=I-_H_woAAAA9zzro6crtEpUAyIvzd19b
NNTP-Posting-Host: 63.114.57.174
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <e08ae203-9355-4d91-87fb-4d012d402426n@googlegroups.com>
Subject: Terminal Emulator For Talking to Embedded Targets
From: gnuarm.d...@gmail.com (Lorem Ipsum)
Injection-Date: Sun, 04 Dec 2022 23:02:24 +0000
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Received-Bytes: 2031
 by: Lorem Ipsum - Sun, 4 Dec 2022 23:02 UTC

I wish to talk to a target board running Forth, through a serial port. The terminal program I have on my PC is Putty. I've used many over the years, but it seems they have winnowed down in number. It's been a while since I've used one, but Putty would seem to be the one I last used.

The problems I'm having are two. I would like to be able to control how the text is displayed better. Different colors for the two directions would be nice. Also, seeing control characters would be useful. I can't find how to do either of those.

Then to compile a Forth program will require sending the file through the serial port. I know many terminal programs provide a way to do this. I can't find it in Putty.

Should I look for another terminal emulator program? Or can anyone help me make this one more useful?

--

Rick C.

- Get 1,000 miles of free Supercharging
- Tesla referral code - https://ts.la/richard11209

Re: Terminal Emulator For Talking to Embedded Targets

<2613a38b-7391-4639-9dc4-acbc56f3955cn@googlegroups.com>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=21513&group=comp.lang.forth#21513

  copy link   Newsgroups: comp.lang.forth
X-Received: by 2002:a05:620a:260d:b0:6fb:a9af:2238 with SMTP id z13-20020a05620a260d00b006fba9af2238mr54771546qko.457.1670195285952;
Sun, 04 Dec 2022 15:08:05 -0800 (PST)
X-Received: by 2002:a05:622a:2512:b0:3a5:3ea0:b2e8 with SMTP id
cm18-20020a05622a251200b003a53ea0b2e8mr59865717qtb.117.1670195285798; Sun, 04
Dec 2022 15:08:05 -0800 (PST)
Path: i2pn2.org!i2pn.org!weretis.net!feeder6.news.weretis.net!news.misty.com!border-2.nntp.ord.giganews.com!nntp.giganews.com!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.lang.forth
Date: Sun, 4 Dec 2022 15:08:05 -0800 (PST)
In-Reply-To: <e08ae203-9355-4d91-87fb-4d012d402426n@googlegroups.com>
Injection-Info: google-groups.googlegroups.com; posting-host=88.1.141.44; posting-account=oUnEFAoAAADoKEMDaPmswUef8xS_aFfv
NNTP-Posting-Host: 88.1.141.44
References: <e08ae203-9355-4d91-87fb-4d012d402426n@googlegroups.com>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <2613a38b-7391-4639-9dc4-acbc56f3955cn@googlegroups.com>
Subject: Re: Terminal Emulator For Talking to Embedded Targets
From: jem...@gmail.com (SpainHackForth)
Injection-Date: Sun, 04 Dec 2022 23:08:05 +0000
Content-Type: text/plain; charset="UTF-8"
Lines: 5
 by: SpainHackForth - Sun, 4 Dec 2022 23:08 UTC

> Then to compile a Forth program will require sending the file through the serial port. I know many terminal programs provide a way to do this. I can't find it in Putty.
>
> Should I look for another terminal emulator program? Or can anyone help me make this one more useful?

Yes, trash PuTTy and get yourself TeraTerm, a lot more to offer.

Re: Terminal Emulator For Talking to Embedded Targets

<f6b63365-049b-429c-969b-adc9a745dd86n@googlegroups.com>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=21514&group=comp.lang.forth#21514

  copy link   Newsgroups: comp.lang.forth
X-Received: by 2002:a05:622a:6090:b0:3a6:9a4e:e376 with SMTP id hf16-20020a05622a609000b003a69a4ee376mr10618941qtb.415.1670197862792;
Sun, 04 Dec 2022 15:51:02 -0800 (PST)
X-Received: by 2002:a05:620a:1225:b0:6ed:28b:764d with SMTP id
v5-20020a05620a122500b006ed028b764dmr71170136qkj.328.1670197862586; Sun, 04
Dec 2022 15:51:02 -0800 (PST)
Path: i2pn2.org!i2pn.org!usenet.blueworldhosting.com!feed1.usenet.blueworldhosting.com!peer03.iad!feed-me.highwinds-media.com!news.highwinds-media.com!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.lang.forth
Date: Sun, 4 Dec 2022 15:51:02 -0800 (PST)
In-Reply-To: <2613a38b-7391-4639-9dc4-acbc56f3955cn@googlegroups.com>
Injection-Info: google-groups.googlegroups.com; posting-host=63.114.57.174; posting-account=I-_H_woAAAA9zzro6crtEpUAyIvzd19b
NNTP-Posting-Host: 63.114.57.174
References: <e08ae203-9355-4d91-87fb-4d012d402426n@googlegroups.com> <2613a38b-7391-4639-9dc4-acbc56f3955cn@googlegroups.com>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <f6b63365-049b-429c-969b-adc9a745dd86n@googlegroups.com>
Subject: Re: Terminal Emulator For Talking to Embedded Targets
From: gnuarm.d...@gmail.com (Lorem Ipsum)
Injection-Date: Sun, 04 Dec 2022 23:51:02 +0000
Content-Type: text/plain; charset="UTF-8"
X-Received-Bytes: 2047
 by: Lorem Ipsum - Sun, 4 Dec 2022 23:51 UTC

On Sunday, December 4, 2022 at 6:08:07 PM UTC-5, SpainHackForth wrote:
> > Then to compile a Forth program will require sending the file through the serial port. I know many terminal programs provide a way to do this. I can't find it in Putty.
> >
> > Should I look for another terminal emulator program? Or can anyone help me make this one more useful?
> Yes, trash PuTTy and get yourself TeraTerm, a lot more to offer.

Thanks. I had just found that one and was giving it a spin. It seems to do some of the things I need, like shooting a file over the serial port, but no display of control characters and no way to set colors for transmit and receive.

I haven't dug into the support resources yet.

--

Rick C.

+ Get 1,000 miles of free Supercharging
+ Tesla referral code - https://ts.la/richard11209

Re: Terminal Emulator For Talking to Embedded Targets

<nnd$18ebfcef$762b829b@285da88237668dec>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=21517&group=comp.lang.forth#21517

  copy link   Newsgroups: comp.lang.forth
Newsgroups: comp.lang.forth
References: <e08ae203-9355-4d91-87fb-4d012d402426n@googlegroups.com>
Subject: Re: Terminal Emulator For Talking to Embedded Targets
X-Newsreader: trn 4.0-test77 (Sep 1, 2010)
From: alb...@cherry (none)
Originator: albert@cherry.(none) (albert)
Message-ID: <nnd$18ebfcef$762b829b@285da88237668dec>
Organization: KPN B.V.
Date: Mon, 05 Dec 2022 12:18:40 +0100
Path: i2pn2.org!rocksolid2!i2pn.org!weretis.net!feeder8.news.weretis.net!newsreader4.netcologne.de!news.netcologne.de!peer02.ams1!peer.ams1.xlned.com!news.xlned.com!peer01.ams4!peer.am4.highwinds-media.com!news.highwinds-media.com!feed.abavia.com!abe004.abavia.com!abp001.abavia.com!news.kpn.nl!not-for-mail
Lines: 31
Injection-Date: Mon, 05 Dec 2022 12:18:40 +0100
Injection-Info: news.kpn.nl; mail-complaints-to="abuse@kpn.com"
X-Received-Bytes: 2002
 by: none - Mon, 5 Dec 2022 11:18 UTC

In article <e08ae203-9355-4d91-87fb-4d012d402426n@googlegroups.com>,
Lorem Ipsum <gnuarm.deletethisbit@gmail.com> wrote:
>I wish to talk to a target board running Forth, through a serial port.
>The terminal program I have on my PC is Putty. I've used many over the
>years, but it seems they have winnowed down in number. It's been a
>while since I've used one, but Putty would seem to be the one I last
>used.
>
>The problems I'm having are two. I would like to be able to control how
>the text is displayed better. Different colors for the two directions
>would be nice. Also, seeing control characters would be useful. I
>can't find how to do either of those.
>
>Then to compile a Forth program will require sending the file through
>the serial port. I know many terminal programs provide a way to do
>this. I can't find it in Putty.
>
>Should I look for another terminal emulator program? Or can anyone help
>me make this one more useful?

On linux picocom is recommended for mecrisp. Works good.

>Rick C.

Groetjes Albert
--
"in our communism country Viet Nam, people are forced to be
alive and in the western country like US, people are free to
die from Covid 19 lol" duc ha
albert@spe&ar&c.xs4all.nl &=n http://home.hccnet.nl/a.w.m.van.der.horst

Re: Terminal Emulator For Talking to Embedded Targets

<85864628-01c2-4f58-9d35-550e01010ecen@googlegroups.com>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=21518&group=comp.lang.forth#21518

  copy link   Newsgroups: comp.lang.forth
X-Received: by 2002:ad4:57aa:0:b0:4c6:f83c:4741 with SMTP id g10-20020ad457aa000000b004c6f83c4741mr36237493qvx.11.1670240596616;
Mon, 05 Dec 2022 03:43:16 -0800 (PST)
X-Received: by 2002:a37:512:0:b0:6fe:d1a0:ba88 with SMTP id
18-20020a370512000000b006fed1a0ba88mr403728qkf.233.1670240596172; Mon, 05 Dec
2022 03:43:16 -0800 (PST)
Path: i2pn2.org!i2pn.org!usenet.blueworldhosting.com!feed1.usenet.blueworldhosting.com!peer01.iad!feed-me.highwinds-media.com!news.highwinds-media.com!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.lang.forth
Date: Mon, 5 Dec 2022 03:43:15 -0800 (PST)
In-Reply-To: <e08ae203-9355-4d91-87fb-4d012d402426n@googlegroups.com>
Injection-Info: google-groups.googlegroups.com; posting-host=176.12.81.225; posting-account=EQOoggoAAADjL2XDwGzcbkH9ggk6Ti1O
NNTP-Posting-Host: 176.12.81.225
References: <e08ae203-9355-4d91-87fb-4d012d402426n@googlegroups.com>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <85864628-01c2-4f58-9d35-550e01010ecen@googlegroups.com>
Subject: Re: Terminal Emulator For Talking to Embedded Targets
From: pblc...@gmail.com (Pablo PabloC)
Injection-Date: Mon, 05 Dec 2022 11:43:16 +0000
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Received-Bytes: 2221
 by: Pablo PabloC - Mon, 5 Dec 2022 11:43 UTC

I have programmed TermFF for that purpose.
Specifically for Forth embedded systems.

https://sourceforge.net/projects/termff/

> I wish to talk to a target board running Forth, through a serial port. The terminal program I have on my PC is Putty. I've used many over the years, but it seems they have winnowed down in number. It's been a while since I've used one, but Putty would seem to be the one I last used.
>
> The problems I'm having are two. I would like to be able to control how the text is displayed better. Different colors for the two directions would be nice. Also, seeing control characters would be useful. I can't find how to do either of those.
>
> Then to compile a Forth program will require sending the file through the serial port. I know many terminal programs provide a way to do this. I can't find it in Putty.
>
> Should I look for another terminal emulator program? Or can anyone help me make this one more useful?
>
> --
>
> Rick C.

Re: Terminal Emulator For Talking to Embedded Targets

<5b1f342d-6579-4e8d-8977-4bbe6c658854n@googlegroups.com>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=21522&group=comp.lang.forth#21522

  copy link   Newsgroups: comp.lang.forth
X-Received: by 2002:a05:620a:13c7:b0:6fc:acb4:58b5 with SMTP id g7-20020a05620a13c700b006fcacb458b5mr16167873qkl.578.1670267839751;
Mon, 05 Dec 2022 11:17:19 -0800 (PST)
X-Received: by 2002:a37:b1c5:0:b0:6fb:11d1:dab2 with SMTP id
a188-20020a37b1c5000000b006fb11d1dab2mr75521530qkf.75.1670267839451; Mon, 05
Dec 2022 11:17:19 -0800 (PST)
Path: i2pn2.org!i2pn.org!paganini.bofh.team!pasdenom.info!nntpfeed.proxad.net!feeder1-1.proxad.net!proxad.net!feeder1-2.proxad.net!209.85.160.216.MISMATCH!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.lang.forth
Date: Mon, 5 Dec 2022 11:17:19 -0800 (PST)
In-Reply-To: <85864628-01c2-4f58-9d35-550e01010ecen@googlegroups.com>
Injection-Info: google-groups.googlegroups.com; posting-host=65.207.89.54; posting-account=I-_H_woAAAA9zzro6crtEpUAyIvzd19b
NNTP-Posting-Host: 65.207.89.54
References: <e08ae203-9355-4d91-87fb-4d012d402426n@googlegroups.com> <85864628-01c2-4f58-9d35-550e01010ecen@googlegroups.com>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <5b1f342d-6579-4e8d-8977-4bbe6c658854n@googlegroups.com>
Subject: Re: Terminal Emulator For Talking to Embedded Targets
From: gnuarm.d...@gmail.com (Lorem Ipsum)
Injection-Date: Mon, 05 Dec 2022 19:17:19 +0000
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
 by: Lorem Ipsum - Mon, 5 Dec 2022 19:17 UTC

On Monday, December 5, 2022 at 6:43:18 AM UTC-5, pbl...@gmail.com wrote:
> I have programmed TermFF for that purpose.
> Specifically for Forth embedded systems.
>
> https://sourceforge.net/projects/termff/

Hi Pablo,

This looks interesting. Will it do the things I've asked about? Obviously it will download a file to be compiled on the target. Will it show the text in the two directions in different colors? Will it show control characters, as well as execute them?

--

Rick C.

+ Get 1,000 miles of free Supercharging
+ Tesla referral code - https://ts.la/richard11209

> > I wish to talk to a target board running Forth, through a serial port. The terminal program I have on my PC is Putty. I've used many over the years, but it seems they have winnowed down in number. It's been a while since I've used one, but Putty would seem to be the one I last used.
> >
> > The problems I'm having are two. I would like to be able to control how the text is displayed better. Different colors for the two directions would be nice. Also, seeing control characters would be useful. I can't find how to do either of those.
> >
> > Then to compile a Forth program will require sending the file through the serial port. I know many terminal programs provide a way to do this. I can't find it in Putty.
> >
> > Should I look for another terminal emulator program? Or can anyone help me make this one more useful?
> >
> > --
> >
> > Rick C.

Re: Terminal Emulator For Talking to Embedded Targets

<130fbdc1-ae28-4e1c-8f32-ed2eb0fc7ca2n@googlegroups.com>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=21524&group=comp.lang.forth#21524

  copy link   Newsgroups: comp.lang.forth
X-Received: by 2002:ac8:687:0:b0:3a5:41fd:2216 with SMTP id f7-20020ac80687000000b003a541fd2216mr79521257qth.338.1670274473909;
Mon, 05 Dec 2022 13:07:53 -0800 (PST)
X-Received: by 2002:a05:620a:22ca:b0:6fa:3b2b:1d76 with SMTP id
o10-20020a05620a22ca00b006fa3b2b1d76mr70515168qki.686.1670274473623; Mon, 05
Dec 2022 13:07:53 -0800 (PST)
Path: i2pn2.org!i2pn.org!usenet.blueworldhosting.com!feed1.usenet.blueworldhosting.com!peer02.iad!feed-me.highwinds-media.com!news.highwinds-media.com!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.lang.forth
Date: Mon, 5 Dec 2022 13:07:53 -0800 (PST)
In-Reply-To: <85864628-01c2-4f58-9d35-550e01010ecen@googlegroups.com>
Injection-Info: google-groups.googlegroups.com; posting-host=88.1.141.153; posting-account=oUnEFAoAAADoKEMDaPmswUef8xS_aFfv
NNTP-Posting-Host: 88.1.141.153
References: <e08ae203-9355-4d91-87fb-4d012d402426n@googlegroups.com> <85864628-01c2-4f58-9d35-550e01010ecen@googlegroups.com>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <130fbdc1-ae28-4e1c-8f32-ed2eb0fc7ca2n@googlegroups.com>
Subject: Re: Terminal Emulator For Talking to Embedded Targets
From: jem...@gmail.com (SpainHackForth)
Injection-Date: Mon, 05 Dec 2022 21:07:53 +0000
Content-Type: text/plain; charset="UTF-8"
X-Received-Bytes: 1426
 by: SpainHackForth - Mon, 5 Dec 2022 21:07 UTC

On Monday, December 5, 2022 at 12:43:18 PM UTC+1, pbl...@gmail.com wrote:
> I have programmed TermFF for that purpose.
> Specifically for Forth embedded systems.
>
> https://sourceforge.net/projects/termff/
Very nice!

Re: Terminal Emulator For Talking to Embedded Targets

<ac4771c5-ae27-40a4-a51f-ab0d5e7226d7n@googlegroups.com>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=21544&group=comp.lang.forth#21544

  copy link   Newsgroups: comp.lang.forth
X-Received: by 2002:a05:620a:1116:b0:6f9:fea2:833a with SMTP id o22-20020a05620a111600b006f9fea2833amr80348762qkk.659.1670360603945;
Tue, 06 Dec 2022 13:03:23 -0800 (PST)
X-Received: by 2002:a05:6214:590e:b0:4c6:aaeb:6384 with SMTP id
lp14-20020a056214590e00b004c6aaeb6384mr61626019qvb.41.1670360603586; Tue, 06
Dec 2022 13:03:23 -0800 (PST)
Path: i2pn2.org!i2pn.org!usenet.blueworldhosting.com!feed1.usenet.blueworldhosting.com!peer03.iad!feed-me.highwinds-media.com!news.highwinds-media.com!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.lang.forth
Date: Tue, 6 Dec 2022 13:03:23 -0800 (PST)
In-Reply-To: <5b1f342d-6579-4e8d-8977-4bbe6c658854n@googlegroups.com>
Injection-Info: google-groups.googlegroups.com; posting-host=31.4.148.3; posting-account=EQOoggoAAADjL2XDwGzcbkH9ggk6Ti1O
NNTP-Posting-Host: 31.4.148.3
References: <e08ae203-9355-4d91-87fb-4d012d402426n@googlegroups.com>
<85864628-01c2-4f58-9d35-550e01010ecen@googlegroups.com> <5b1f342d-6579-4e8d-8977-4bbe6c658854n@googlegroups.com>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <ac4771c5-ae27-40a4-a51f-ab0d5e7226d7n@googlegroups.com>
Subject: Re: Terminal Emulator For Talking to Embedded Targets
From: pblc...@gmail.com (Pablo PabloC)
Injection-Date: Tue, 06 Dec 2022 21:03:23 +0000
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Received-Bytes: 6072
 by: Pablo PabloC - Tue, 6 Dec 2022 21:03 UTC

Hi
I don't want to bore you, but about the behavior of the terminal emulator, I try to clarify some issues about development with embedded Forth systems and I contribute my opinion.
To display the sent text in a color and the received text in a different color, first it would be necessary to clarify what is the sent text and what is the received one?
It would seem obvious that the sent is the one that comes out through TX of the serial channel, and the received one that arrives through RX.
But I think it is not so.
In a communication with a Forth system, normally the terminal emulator never presents what is sent.
It is the Forth system that echoes what it receives, and adds the reply.
For example, if we type '1 .<CR>' we send it without displaying anything to the terminal console, and then we receive '1 . 1 ok<CR>'.
How would the system have to behave in order to output color attribute-1 in the part '1 .' and color attribute-2 the part ' ok<CR>'?
(I want to keep it simple, regardless of whether the terminal sends each character or processes the line before.)
There are many possible solutions, but they all involve some code or behavior alteration in the embedded Forth system.
If the terminal emulator supports the input of VT100-type escape sequences, the simplest and most compatible is that the Forth system control and modify the attributes of the text it sends.
I was doing tests with FlashForth from TeraTerm with a PIC18F from the K22 family, programming a Forth and asm debugger, VT100 text attribute control was the best solution for me. Then with TermFF.
Some videos can be seen at https://www.youtube.com/@termff450 and in the final part of 'TermFF showing' how the control of text attributes is handled running a 'debug' in a FlashForth system.
And the predecessor of this debugger with TeraTerm at https://www.youtube.com/watch?v=3L-cOGtUGzg
Some time later I opted to have my own terminal emulator (TermFF) and a Forth with more features, for the Q4x family.
In TermFF I tried several alternatives, and the best option for me was the control of VT100 text attributes from the remote Forth system.
TermFF controls and allows changing different text colors for local mode (in the PC itself) and remote mode (the serial channel). (I am unable to attach a screenshot showing this.)
In the case of managing a buffer of console lines (as TermFF does) the presentation of characters is more complex, since characters are presented as they are typed and when pressing <CR> they are deleted from the screen, to later present the ones that we arrives from the remote Forth system.
On the other hand, when files are sent from the terminal, if the Forth system echoes what it receives, the screen fills up and the console buffer is overrun, without contributing anything. And if there is an error in the compilation and we keep sending the file, everything is full of lines of errors and we have difficulty in looking in the console where the error occurs.
I have chosen to include in the Forth system the option of working without echo. Support in this mode is the ability to count lines and return to echo mode on error. And use some control character to notify the terminal of the status, so it stops sending lines of the file.
This all involves some code on the Forth system side, but will work on any terminal emulator that supports VT100 (except notifying of an error to stop the download of the file).
In summary, I would encourage you to program a few small modifications to the embedded Forth system, to make compilation more comfortable and have better text visibility.
Regarding the control characters, I see even more questions to clarify.
Is it about 'seeing' the recieved characters and executing them?
I would not know how it should behave, for example when CTrl-C or Crtl-Q arrives, or when receiving XON or LF?
There are terminal emulators or serial channel sniffers that can be show in Hex or/and in ascii.
It has been useful for me to display the input flow in a separate window. Different from the ascii-VT100 terminal window itself.
In TermFF, to be able to see the input stream, I have a Dump window of the reception, which is started with F9.
There I present the hexadecimal value of the received bytes and in the right margin the corresponding character, if it is printable.

Pablo

> Hi Pablo,
>
> This looks interesting. Will it do the things I've asked about? Obviously it will download a file to be compiled on the target. Will it show the text in the two directions in different colors? Will it show control characters, as well as execute them?

Re: Terminal Emulator For Talking to Embedded Targets

<f205304c-5af2-47bb-8cae-99c875e606ecn@googlegroups.com>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=21551&group=comp.lang.forth#21551

  copy link   Newsgroups: comp.lang.forth
X-Received: by 2002:ac8:6644:0:b0:3a7:eb35:fbf8 with SMTP id j4-20020ac86644000000b003a7eb35fbf8mr4606175qtp.457.1670378466398;
Tue, 06 Dec 2022 18:01:06 -0800 (PST)
X-Received: by 2002:a37:8783:0:b0:6fa:a2ce:ac27 with SMTP id
j125-20020a378783000000b006faa2ceac27mr77754382qkd.185.1670378466117; Tue, 06
Dec 2022 18:01:06 -0800 (PST)
Path: i2pn2.org!i2pn.org!aioe.org!news.uzoreto.com!feeder1.cambriumusenet.nl!feed.tweak.nl!209.85.160.216.MISMATCH!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.lang.forth
Date: Tue, 6 Dec 2022 18:01:05 -0800 (PST)
In-Reply-To: <ac4771c5-ae27-40a4-a51f-ab0d5e7226d7n@googlegroups.com>
Injection-Info: google-groups.googlegroups.com; posting-host=2605:ba00:4117:fb49:dd1c:d777:3288:9070;
posting-account=I-_H_woAAAA9zzro6crtEpUAyIvzd19b
NNTP-Posting-Host: 2605:ba00:4117:fb49:dd1c:d777:3288:9070
References: <e08ae203-9355-4d91-87fb-4d012d402426n@googlegroups.com>
<85864628-01c2-4f58-9d35-550e01010ecen@googlegroups.com> <5b1f342d-6579-4e8d-8977-4bbe6c658854n@googlegroups.com>
<ac4771c5-ae27-40a4-a51f-ab0d5e7226d7n@googlegroups.com>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <f205304c-5af2-47bb-8cae-99c875e606ecn@googlegroups.com>
Subject: Re: Terminal Emulator For Talking to Embedded Targets
From: gnuarm.d...@gmail.com (Lorem Ipsum)
Injection-Date: Wed, 07 Dec 2022 02:01:06 +0000
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
 by: Lorem Ipsum - Wed, 7 Dec 2022 02:01 UTC

On Tuesday, December 6, 2022 at 5:03:25 PM UTC-4, pbl...@gmail.com wrote:
> Hi
> I don't want to bore you, but about the behavior of the terminal emulator, I try to clarify some issues about development with embedded Forth systems and I contribute my opinion.
> To display the sent text in a color and the received text in a different color, first it would be necessary to clarify what is the sent text and what is the received one?

I don't understand how this could be unclear. This program is talking to an embedded target over a serial port, or something equivalent to one. Characters are sent in two direction. When you type at the keyboard, or dump a file into the serial port, that would be transmit, no? The characters received from the target are the received characters, no?

What are you thinking that would make this other than clear? I'm not understanding. Is this not what your program does?

> It would seem obvious that the sent is the one that comes out through TX of the serial channel, and the received one that arrives through RX.
> But I think it is not so.
> In a communication with a Forth system, normally the terminal emulator never presents what is sent.
> It is the Forth system that echoes what it receives, and adds the reply.
> For example, if we type '1 .<CR>' we send it without displaying anything to the terminal console, and then we receive '1 . 1 ok<CR>'.
> How would the system have to behave in order to output color attribute-1 in the part '1 .' and color attribute-2 the part ' ok<CR>'?

I see what you are saying. In the general case, terminal emulators have the ability to locally echo the transmitted characters. Your tools is very specific to use as a Forth console. In my case, I am running a app which might not echo the typed characters, or in some cases I talk directly to the hardware, which also does not echo the typed characters.

> (I want to keep it simple, regardless of whether the terminal sends each character or processes the line before.)
> There are many possible solutions, but they all involve some code or behavior alteration in the embedded Forth system.

When running the app, I'm pretty sure characters typed to the program are not echoed.

> If the terminal emulator supports the input of VT100-type escape sequences, the simplest and most compatible is that the Forth system control and modify the attributes of the text it sends.

This is limiting the terminal to applications where the other end does the echoing.

> I was doing tests with FlashForth from TeraTerm with a PIC18F from the K22 family, programming a Forth and asm debugger, VT100 text attribute control was the best solution for me. Then with TermFF.

I need to refresh my memory, but I think TeraTerm does everything else that I need, other than color coding the Xmt and Rx characters. For me, thee VT100 controls would not be useful, since there is no real intelligence at the other end.

> Some videos can be seen at https://www.youtube.com/@termff450 and in the final part of 'TermFF showing' how the control of text attributes is handled running a 'debug' in a FlashForth system.
> And the predecessor of this debugger with TeraTerm at https://www.youtube..com/watch?v=3L-cOGtUGzg
> Some time later I opted to have my own terminal emulator (TermFF) and a Forth with more features, for the Q4x family.
> In TermFF I tried several alternatives, and the best option for me was the control of VT100 text attributes from the remote Forth system.
> TermFF controls and allows changing different text colors for local mode (in the PC itself) and remote mode (the serial channel). (I am unable to attach a screenshot showing this.)

I think I've seen this.

> In the case of managing a buffer of console lines (as TermFF does) the presentation of characters is more complex, since characters are presented as they are typed and when pressing <CR> they are deleted from the screen, to later present the ones that we arrives from the remote Forth system.
> On the other hand, when files are sent from the terminal, if the Forth system echoes what it receives, the screen fills up and the console buffer is overrun, without contributing anything. And if there is an error in the compilation and we keep sending the file, everything is full of lines of errors and we have difficulty in looking in the console where the error occurs.
> I have chosen to include in the Forth system the option of working without echo. Support in this mode is the ability to count lines and return to echo mode on error. And use some control character to notify the terminal of the status, so it stops sending lines of the file.
> This all involves some code on the Forth system side, but will work on any terminal emulator that supports VT100 (except notifying of an error to stop the download of the file).
> In summary, I would encourage you to program a few small modifications to the embedded Forth system, to make compilation more comfortable and have better text visibility.
> Regarding the control characters, I see even more questions to clarify.
> Is it about 'seeing' the recieved characters and executing them?
> I would not know how it should behave, for example when CTrl-C or Crtl-Q arrives, or when receiving XON or LF?
> There are terminal emulators or serial channel sniffers that can be show in Hex or/and in ascii.
> It has been useful for me to display the input flow in a separate window. Different from the ascii-VT100 terminal window itself.
> In TermFF, to be able to see the input stream, I have a Dump window of the reception, which is started with F9.
> There I present the hexadecimal value of the received bytes and in the right margin the corresponding character, if it is printable.
>
> Pablo
> > Hi Pablo,
> >
> > This looks interesting. Will it do the things I've asked about? Obviously it will download a file to be compiled on the target. Will it show the text in the two directions in different colors? Will it show control characters, as well as execute them?

I don't think TermFF is what I need, but thank you for discussing it.

--

Rick C.

-- Get 1,000 miles of free Supercharging
-- Tesla referral code - https://ts.la/richard11209

Re: Terminal Emulator For Talking to Embedded Targets

<f5822295-97f0-4dd4-80f4-1cc2e7ad8bebn@googlegroups.com>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=21610&group=comp.lang.forth#21610

  copy link   Newsgroups: comp.lang.forth
X-Received: by 2002:a37:bac5:0:b0:6fa:f354:939f with SMTP id k188-20020a37bac5000000b006faf354939fmr83510718qkf.57.1670576312636;
Fri, 09 Dec 2022 00:58:32 -0800 (PST)
X-Received: by 2002:ac8:71d4:0:b0:3a7:f4c7:1bab with SMTP id
i20-20020ac871d4000000b003a7f4c71babmr4037140qtp.517.1670576312424; Fri, 09
Dec 2022 00:58:32 -0800 (PST)
Path: i2pn2.org!i2pn.org!usenet.blueworldhosting.com!feed1.usenet.blueworldhosting.com!peer02.iad!feed-me.highwinds-media.com!news.highwinds-media.com!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.lang.forth
Date: Fri, 9 Dec 2022 00:58:32 -0800 (PST)
In-Reply-To: <f205304c-5af2-47bb-8cae-99c875e606ecn@googlegroups.com>
Injection-Info: google-groups.googlegroups.com; posting-host=2605:ba00:4117:fb49:1c76:ce0e:3313:3e6c;
posting-account=I-_H_woAAAA9zzro6crtEpUAyIvzd19b
NNTP-Posting-Host: 2605:ba00:4117:fb49:1c76:ce0e:3313:3e6c
References: <e08ae203-9355-4d91-87fb-4d012d402426n@googlegroups.com>
<85864628-01c2-4f58-9d35-550e01010ecen@googlegroups.com> <5b1f342d-6579-4e8d-8977-4bbe6c658854n@googlegroups.com>
<ac4771c5-ae27-40a4-a51f-ab0d5e7226d7n@googlegroups.com> <f205304c-5af2-47bb-8cae-99c875e606ecn@googlegroups.com>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <f5822295-97f0-4dd4-80f4-1cc2e7ad8bebn@googlegroups.com>
Subject: Re: Terminal Emulator For Talking to Embedded Targets
From: gnuarm.d...@gmail.com (Lorem Ipsum)
Injection-Date: Fri, 09 Dec 2022 08:58:32 +0000
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Received-Bytes: 2135
 by: Lorem Ipsum - Fri, 9 Dec 2022 08:58 UTC

I've had trouble finding a good terminal emulator under Windows, but it seems Hterm checks off all the items on my list. It shows the main six control codes, NUL, Bell, HT, FF, LF, CR and underlines Tx and Rx data with different colors, as well as letting me dump a text file to the serial port as if it were typed.

The only thing I'd like to see some improvement in, is adjusting the fonts in the data display. It lets you adjust the font size, but it would be nice to change the font and/or set bold at least.

--

Rick C.

-+ Get 1,000 miles of free Supercharging
-+ Tesla referral code - https://ts.la/richard11209

1
server_pubkey.txt

rocksolid light 0.9.81
clearnet tor