Re: [gentoo-user] Console serial terminal/console with command history?
On 05/22/2018 07:33 PM, tu...@posteo.de wrote: putty (has a gui and minimal configuration possibilities for serial connections and bunch more...) plink is the command line / text equivalent of PuTTY, from the same authors. -- Grant. . . . unix || die
Re: [gentoo-user] Console serial terminal/console with command history?
On 05/22 03:43, R0b0t1 wrote: > On Tue, May 22, 2018 at 12:39 PM,wrote: > > Hi > > > > I am currently exploring Mecrisp-Stellaris FORTH on a STM32F103C8 uC. > > > > To communicate with the FORTH-system I use a serlal terminal console > > like picocom. > > > > Since I am still learning this quirky though fascinating language I > > really would appreciate a commandline history. > > > > For that I tried picocom and picocom with rlfe / rlwrap, neocon, > > screen, tio. > > > > None worked and/or has a fixed handling of CR<=>LF, which leads > > to an > > ugly > > output. > > > > Is there any serial terminal/console (no gui), which has a command > > history of some sort and a configurable handling of cr<=>lf? > > > > Thanks for any help in advance -- the FORTH will be with you! > > Cheers > > Meino > > > > Have you tried screen? It may have more features than kermit by > default, but it is intended for speaking with "smart" terminal devices > and will do lots of input processing. > > Based on your description of the problem you may want this? > > Cheers, > R0b0t1 > Hi all, tahnks a lot for the huge and overwelming amount of posts. help and opinion about things of the past and the present. I have to apologise: I overlooked a certain option of rlwrap: rlwrap -a picocom -b 115200 --imap lfcrlf,crcrlf -s /usr/local/bin/msend /dev/ttyACM0 or rlwrap -a tio -b 115200 -d 8 -s 1 -p none -m INLCRNL /dev/ttyACM0 or similiar does the job perfectly. Cheers! Meino PS: I also checked screen (no crlf handling), putty (has a gui and minimal configuration possibilities for serial connections and bunch more...)
Re: [gentoo-user] Console serial terminal/console with command history?
On 05/22/2018 03:44 PM, R0b0t1 wrote: Yes - screen can hold everything until you hit enter and allow you to edit the line and do wrapping clientside. Screen also handles control codes properly. Good to know. Aside: Now my brain is trying to remember the old differences between telnet and 3270 / 5250. I think that telnet was inherently line oriented (by default) and 3270 / 5250 were something else (but I don't remember what). I just tried to find the exact settings but drew a blank. It doesn't do local line editing by default. Local editing should be okay with a normal device but it will not work well if your board runs Linux. The other thing that comes to mind is mosh and some of the features that it has. Though, all of those don't do anything like command history. (I'm assuming that editing is limited to the current, unsent, command line.) -- Grant. . . . unix || die
Re: [gentoo-user] Console serial terminal/console with command history?
On Tue, May 22, 2018 at 4:03 PM, Grant Taylorwrote: > On 05/22/2018 02:43 PM, R0b0t1 wrote: >> >> Have you tried screen? It may have more features than kermit by default, >> but it is intended for speaking with "smart" terminal devices and will do >> lots of input processing. > > > Are you saying that screen (and possibly tmux, etc.) have the ability to > inject something like history and command line editing? > > I thought that they basically kept track of multiple TTYs (PTYs) and did > some intelligent shuffling between them and / or copying & pasting of > content therein. That seems significantly different than introducing > something like readline / rlwrap like functionality. > Yes - screen *can* hold everything until you hit enter and allow you to edit the line and do wrapping clientside. Screen also handles control codes properly. I just tried to find the exact settings but drew a blank. It doesn't do local line editing by default. Local editing should be okay with a normal device but it will not work well if your board runs Linux.
Re: [gentoo-user] Console serial terminal/console with command history?
On 05/22/2018 03:06 PM, David M. Fellows wrote: As a terminal emulator that has a lot of configurabilty. I'm quite curious what sort of configuration you use in (what I understand to be) a text based communications package in your day to day activities. I do so much via SSH that I don't even think of anything other than XTerm and SSH. Please enlighten me to what I might be missing. Yes, but.. you can do some neat things with it. ya... I know. I'm thinking about something that is very much so expect adjacent. I agree that expect does have it's use cases, and that very little else will do when you truly need it. I ran in to too many people that would try to do things like use expect to call commands to create users and deal with the failure cases instead of actually looking to see if the user existed first. Read: expect was the wrong tool for that job. -- Grant. . . . unix || die
Re: [gentoo-user] Console serial terminal/console with command history?
>On 05/22/2018 12:45 PM, David M. Fellows wrote: >> Since you want to blast to the past... kermit may do what you >> need. Back in the day it connected everything to everything. >> See http://www.kermitproject.org/ emerge ckermit. > >Are you advocating kermit as a protocol or as a terminal (emulator) client? As a terminal emulator that has a lot of configurabilty. > >> expect might also be twisted to do what you need. It is also in portage. > >~shudder~ Yes, but.. you can do some neat things with it. DaveF
Re: [gentoo-user] Console serial terminal/console with command history?
On 05/22/2018 02:43 PM, R0b0t1 wrote: Have you tried screen? It may have more features than kermit by default, but it is intended for speaking with "smart" terminal devices and will do lots of input processing. Are you saying that screen (and possibly tmux, etc.) have the ability to inject something like history and command line editing? I thought that they basically kept track of multiple TTYs (PTYs) and did some intelligent shuffling between them and / or copying & pasting of content therein. That seems significantly different than introducing something like readline / rlwrap like functionality. -- Grant. . . . unix || die
Re: [gentoo-user] Console serial terminal/console with command history?
On Tue, May 22, 2018 at 12:39 PM,wrote: > Hi > > I am currently exploring Mecrisp-Stellaris FORTH on a STM32F103C8 uC. > > To communicate with the FORTH-system I use a serlal terminal console > like picocom. > > Since I am still learning this quirky though fascinating language I > really would appreciate a commandline history. > > For that I tried picocom and picocom with rlfe / rlwrap, neocon, > screen, tio. > > None worked and/or has a fixed handling of CR<=>LF, which leads > to an > ugly > output. > > Is there any serial terminal/console (no gui), which has a command > history of some sort and a configurable handling of cr<=>lf? > > Thanks for any help in advance -- the FORTH will be with you! > Cheers > Meino > Have you tried screen? It may have more features than kermit by default, but it is intended for speaking with "smart" terminal devices and will do lots of input processing. Based on your description of the problem you may want this? Cheers, R0b0t1
Re: [gentoo-user] Console serial terminal/console with command history?
On 05/22/2018 12:45 PM, David M. Fellows wrote: Since you want to blast to the past... kermit may do what you need. Back in the day it connected everything to everything. See http://www.kermitproject.org/ emerge ckermit. Are you advocating kermit as a protocol or as a terminal (emulator) client? expect might also be twisted to do what you need. It is also in portage. ~shudder~ -- Grant. . . . unix || die
Re: [gentoo-user] Console serial terminal/console with command history?
>Hi > >I am currently exploring Mecrisp-Stellaris FORTH on a STM32F103C8 uC. > >To communicate with the FORTH-system I use a serlal terminal console >like picocom. > >Since I am still learning this quirky though fascinating language I >really would appreciate a commandline history. > >For that I tried picocom and picocom with rlfe / rlwrap, neocon, >screen, tio. > >None worked and/or has a fixed handling of CR<=>LF, which leads >to an > ugly > output. > >Is there any serial terminal/console (no gui), which has a command >history of some sort and a configurable handling of cr<=>lf? Since you want to blast to the past... kermit may do what you need. Back in the day it connected everything to everything. See http://www.kermitproject.org/ emerge ckermit. expect might also be twisted to do what you need. It is also in portage. DaveF > >Thanks for any help in advance -- the FORTH will be with you! >Cheers >Meino > > >
Re: [gentoo-user] Console serial terminal/console with command history?
On 05/22/2018 11:54 AM, Grant Taylor wrote: 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. You might also want to check out using vim or emacs as they have terminal emulators built in. They might be able to apply some command line history / editing (in a round about way). -- Grant. . . . unix || die
Re: [gentoo-user] Console serial terminal/console with command history?
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
[gentoo-user] Console serial terminal/console with command history?
Hi I am currently exploring Mecrisp-Stellaris FORTH on a STM32F103C8 uC. To communicate with the FORTH-system I use a serlal terminal console like picocom. Since I am still learning this quirky though fascinating language I really would appreciate a commandline history. For that I tried picocom and picocom with rlfe / rlwrap, neocon, screen, tio. None worked and/or has a fixed handling of CR<=>LF, which leads to an ugly output. Is there any serial terminal/console (no gui), which has a command history of some sort and a configurable handling of cr<=>lf? Thanks for any help in advance -- the FORTH will be with you! Cheers Meino