On 05/22/2018 11:39 AM, tu...@posteo.de wrote:
I am currently exploring Mecrisp-Stellaris FORTH on a STM32F103C8 uC.

#learningIsFun

To communicate with the FORTH-system I use a serlal terminal console like picocom.

Okay.

Since I am still learning this quirky though fascinating language I really would appreciate a commandline history.

Understandable.

For that I tried picocom and picocom with rlfe / rlwrap, neocon, screen, tio.

I doubt it will make any difference, but you might also try minicom, putty, and cu. You might even be able to get Bash (et al) talk to the serial terminal.

None worked and/or has a fixed handling of CR<=>LF, which leads to an ugly output.

ACK

Is there any serial terminal/console (no gui), which has a command history of some sort and a configurable handling of cr<=>lf?

I would be somewhat surprised if there was. But only somewhat as there are a lot of different terminal (emulators) that have even more features.

Remember, that the job of the terminal (emulator) is to display text from the connected device and send input to the connected device. — There's even room for debate about if the terminal (emulator) should display characters that are typed (a.k.a. local echo) or if the remote system should need to send them back for display (non-local / remote echo).

It sounds like you're wanting to go above and beyond this and have the terminal introduce some intelligence into the mix and add (basic) line editing capabilities and history.

Such seems like it could be possible to do. But it also seems beyond a basic terminal (emulator) and gets into more of a smart application that you interact with in one way and it interacts with the serial device in another / different way.

The closest I've come to things like this is using xdotool to send commands from one xterm to another. I could see how you could have a (prefix) command that you run that sends the actual command to another window. That way you could leverage the full history and command line editor of the terminal (emulator) that you're using. Granted, this would be two windows that you would need to use jointly and in close concert with each other.

There may be other ways to take the output from the remote window and display it locally, thus sort of providing the ability to hide the second / remote window. But I have no idea how to go about this.

I can see how you might end up with something where you have a big window (132x50) for output and another smaller window (132x10) below it (I'd try to align them) that is used for input. It would be reminiscent of older mainframe / AS/400 terminals where you have one command line and all output comes out above, including a copy of the command entered.

Anyway....

I don't know of any examples of what you're asking for. There may be a super fancy terminal (emulator) that will do what you want. ProComm (Plus) and SecureCRT come to mind. But they're GUIs.

Random thought: I have no idea if Plan9's terminal emulator has any features for this or not. It may be worth looking at. I believe it's been ported to Linux.

Thanks for any help in advance -- the FORTH will be with you!

Good luck.

Please share if you find anything.



--
Grant. . . .
unix || die

Reply via email to