Thread: [Flashforth-devel] FF5.0 shell
Brought to you by:
oh2aun
From: Mikael N. <mik...@pp...> - 2014-09-09 20:10:44
|
The FF5.0 archive and git from today has now a simple shell that makes FlashForth a bit easier to use. It is written in python. It has command line history and edit. A directive for sending a file to FlashForth. And directive for warm start for a unresponsive FF. Exit from the shell with control-c. Some additional functionality could be added. I was at least thinking of file listings and maybe file name completions. Maybe also Forth word completions. Here is the help text: ------------------------------------------------------------------ mikael@veriton:~/ff/shell$ ./ff-shell.py --help usage: ff-shell.py [-h] [--port PORT] [--rtscts] [--xonxoff] [--speed SPEED] Small shell for FlashForth optional arguments: -h, --help show this help message and exit --port PORT, -p PORT Serial port name --rtscts Serial port RTS/CTS enable --xonxoff Serial port XON/XOFF enable --speed SPEED, -s SPEED Serial port speed Interact with FlashForth using commmand line editing and history. Send files to FlashForth with #send path/filename. Warm start with #warm. And Here is starts: ----------------------------------------------------------------- mikael@veriton:~/ff/shell$ ./ff-shell.py --rtscts Port:/dev/ttyACM0 Speed:9600 rtscts:True xonxoff:False /home/mikael/.ff.history ok<#,ram> Exiting ff-shell.py, goodbye... ----------------------------------------------------------------- BR Mikael |
From: Peter J. <pe...@me...> - 2015-04-05 23:32:43
Attachments:
ff-shell.tcl
|
Attached is an alternative shell written in Tcl and based on the Tk text widget. Although the code is a bit longer than Mikael's Python shell, it does come with a GUI and might be a bit simpler for beginners. It seems to be fine on my Linux machine but could do with some exercise on a Microsoft-Windows machine and/or Mac. If all is good, it can be added to the FlashForth distribution. Regards, Peter J. On 10/09/14 06:10, Mikael Nordman wrote: > The FF5.0 archive and git from today has now a simple shell > that makes FlashForth a bit easier to use. > > It is written in python. > > It has command line history and edit. > A directive for sending a file to FlashForth. > And directive for warm start for a unresponsive FF. > Exit from the shell with control-c. > > Some additional functionality could be added. > I was at least thinking of file listings and maybe file name completions. > Maybe also Forth word completions. > > Here is the help text: > ------------------------------------------------------------------ > mikael@veriton:~/ff/shell$ ./ff-shell.py --help > usage: ff-shell.py [-h] [--port PORT] [--rtscts] [--xonxoff] [--speed SPEED] > > Small shell for FlashForth > > optional arguments: > -h, --help show this help message and exit > --port PORT, -p PORT Serial port name > --rtscts Serial port RTS/CTS enable > --xonxoff Serial port XON/XOFF enable > --speed SPEED, -s SPEED > Serial port speed > > Interact with FlashForth using commmand line editing and history. Send files > to FlashForth with #send path/filename. Warm start with #warm. > > And Here is starts: > ----------------------------------------------------------------- > mikael@veriton:~/ff/shell$ ./ff-shell.py --rtscts > Port:/dev/ttyACM0 Speed:9600 rtscts:True xonxoff:False > /home/mikael/.ff.history > ok<#,ram> > Exiting ff-shell.py, goodbye... > ----------------------------------------------------------------- > > BR Mikael > > > ------------------------------------------------------------------------------ > Want excitement? > Manually upgrade your production database. > When you want reliability, choose Perforce. > Perforce version control. Predictably reliable. > http://pubads.g.doubleclick.net/gampad/clk?id=157508191&iu=/4140/ostg.clktrk > _______________________________________________ > Flashforth-devel mailing list > Fla...@li... > https://lists.sourceforge.net/lists/listinfo/flashforth-devel |
From: Mikael N. <mik...@fl...> - 2015-04-07 14:47:38
|
I tried it out and it worked for me on xubuntu 14.04. More bling-bling could be added. Configuration options of the serial interface would be nice. Thanks /Mike PS I started to modernize the website. Anything people would like to see there ? DS On 06.04.2015 02:05, Peter Jacobs wrote: > Attached is an alternative shell written in Tcl and based on the Tk text > widget. > Although the code is a bit longer than Mikael's Python shell, it does > come with > a GUI and might be a bit simpler for beginners. > > It seems to be fine on my Linux machine but could do with some exercise > on a Microsoft-Windows machine and/or Mac. If all is good, it can be > added to > the FlashForth distribution. > > Regards, > Peter J. |
From: Peter J. <pe...@me...> - 2015-04-26 10:23:18
Attachments:
ff-shell.tcl
|
The attached version now works reliably on my Linux box (Mint 17.1) and a Windows 7 machine with ActiveTcl 8.6 installed. It has a little bit of the requested bling, including the setting of the device for the serial port and the speed. I couldn't think of an easy to enumerate the valid serial port devices for a combobox input, so I settled for a simple text input. Suggestions are welcome. Anyway, the main code feature of this version is the simpler and more careful handling of the incoming characters. On the new web site, I'd like to see a collection of some of the code snippets that have appeared on the mailing list from time to time. Things like reading the ADC peripheral on example chips. Cheers, Peter J. On 08/04/15 00:47, Mikael Nordman wrote: > I tried it out and it worked for me on xubuntu 14.04. > > More bling-bling could be added. > Configuration options of the serial interface would be nice. > > Thanks /Mike > > PS > I started to modernize the website. Anything people would like to see > there ? > DS > > > On 06.04.2015 02:05, Peter Jacobs wrote: >> Attached is an alternative shell written in Tcl and based on the Tk text >> widget. >> Although the code is a bit longer than Mikael's Python shell, it does >> come with >> a GUI and might be a bit simpler for beginners. >> >> It seems to be fine on my Linux machine but could do with some exercise >> on a Microsoft-Windows machine and/or Mac. If all is good, it can be >> added to >> the FlashForth distribution. >> >> Regards, >> Peter J. > ------------------------------------------------------------------------------ > BPM Camp - Free Virtual Workshop May 6th at 10am PDT/1PM EDT > Develop your own process in accordance with the BPMN 2 standard > Learn Process modeling best practices with Bonita BPM through live exercises > http://www.bonitasoft.com/be-part-of-it/events/bpm-camp-virtual- event?utm_ > source=Sourceforge_BPM_Camp_5_6_15&utm_medium=email&utm_campaign=VA_SF > _______________________________________________ > Flashforth-devel mailing list > Fla...@li... > https://lists.sourceforge.net/lists/listinfo/flashforth-devel |
From: Mikael N. <mik...@fl...> - 2015-04-28 04:15:10
|
I tried it and it works, but... It does not start if the default port in the code does not exist. Could you change it so that the shell starts, even if the port is wrong. Otherwise the user needs to edit the code which sort of defeats the idea with the input box. BR Mike On 26.04.2015 13:23, Peter Jacobs wrote: > The attached version now works reliably on my Linux box (Mint 17.1) and > a Windows 7 machine with ActiveTcl 8.6 installed. It has a little bit > of the requested bling, including the setting of the device for the > serial port and the speed. I couldn't think of an easy to enumerate the > valid serial port devices for a combobox input, so I settled for a > simple text input. Suggestions are welcome. Anyway, the main code > feature of this version is the simpler and more careful handling of the > incoming characters. > > On the new web site, I'd like to see a collection of some of the code > snippets that have appeared on the mailing list from time to time. > Things like reading the ADC peripheral on example chips. > > Cheers, > Peter J. > > > On 08/04/15 00:47, Mikael Nordman wrote: >> I tried it out and it worked for me on xubuntu 14.04. >> >> More bling-bling could be added. >> Configuration options of the serial interface would be nice. >> >> Thanks /Mike >> >> PS >> I started to modernize the website. Anything people would like to see >> there ? >> DS >> >> >> On 06.04.2015 02:05, Peter Jacobs wrote: >>> Attached is an alternative shell written in Tcl and based on the Tk text >>> widget. >>> Although the code is a bit longer than Mikael's Python shell, it does >>> come with >>> a GUI and might be a bit simpler for beginners. >>> >>> It seems to be fine on my Linux machine but could do with some exercise >>> on a Microsoft-Windows machine and/or Mac. If all is good, it can be >>> added to >>> the FlashForth distribution. >>> >>> Regards, >>> Peter J. >> ------------------------------------------------------------------------------ >> >> BPM Camp - Free Virtual Workshop May 6th at 10am PDT/1PM EDT >> Develop your own process in accordance with the BPMN 2 standard >> Learn Process modeling best practices with Bonita BPM through live >> exercises >> http://www.bonitasoft.com/be-part-of-it/events/bpm-camp-virtual- >> event?utm_ >> source=Sourceforge_BPM_Camp_5_6_15&utm_medium=email&utm_campaign=VA_SF >> _______________________________________________ >> Flashforth-devel mailing list >> Fla...@li... >> https://lists.sourceforge.net/lists/listinfo/flashforth-devel > > > > ------------------------------------------------------------------------------ > One dashboard for servers and applications across Physical-Virtual-Cloud > Widest out-of-the-box monitoring support with 50+ applications > Performance metrics, stats and reports that give you Actionable Insights > Deep dive visibility with transaction tracing using APM Insight. > http://ad.doubleclick.net/ddm/clk/290420510;117567292;y > > > > _______________________________________________ > Flashforth-devel mailing list > Fla...@li... > https://lists.sourceforge.net/lists/listinfo/flashforth-devel > |
From: Peter J. <pe...@me...> - 2015-04-28 04:17:22
|
Will do. On 28/04/15 14:14, Mikael Nordman wrote: > I tried it and it works, but... > > It does not start if the default port in the code does not exist. > > Could you change it so that the shell starts, even if the port is wrong. > Otherwise the user needs to edit the code which sort of defeats the idea > with the input box. > > BR Mike > > On 26.04.2015 13:23, Peter Jacobs wrote: >> The attached version now works reliably on my Linux box (Mint 17.1) and >> a Windows 7 machine with ActiveTcl 8.6 installed. It has a little bit >> of the requested bling, including the setting of the device for the >> serial port and the speed. I couldn't think of an easy to enumerate the >> valid serial port devices for a combobox input, so I settled for a >> simple text input. Suggestions are welcome. Anyway, the main code >> feature of this version is the simpler and more careful handling of the >> incoming characters. >> >> On the new web site, I'd like to see a collection of some of the code >> snippets that have appeared on the mailing list from time to time. >> Things like reading the ADC peripheral on example chips. >> >> Cheers, >> Peter J. >> >> >> On 08/04/15 00:47, Mikael Nordman wrote: >>> I tried it out and it worked for me on xubuntu 14.04. >>> >>> More bling-bling could be added. >>> Configuration options of the serial interface would be nice. >>> >>> Thanks /Mike >>> >>> PS >>> I started to modernize the website. Anything people would like to see >>> there ? >>> DS >>> >>> >>> On 06.04.2015 02:05, Peter Jacobs wrote: >>>> Attached is an alternative shell written in Tcl and based on the Tk text >>>> widget. >>>> Although the code is a bit longer than Mikael's Python shell, it does >>>> come with >>>> a GUI and might be a bit simpler for beginners. >>>> >>>> It seems to be fine on my Linux machine but could do with some exercise >>>> on a Microsoft-Windows machine and/or Mac. If all is good, it can be >>>> added to >>>> the FlashForth distribution. >>>> >>>> Regards, >>>> Peter J. >>> ------------------------------------------------------------------------------ >>> >>> BPM Camp - Free Virtual Workshop May 6th at 10am PDT/1PM EDT >>> Develop your own process in accordance with the BPMN 2 standard >>> Learn Process modeling best practices with Bonita BPM through live >>> exercises >>> http://www.bonitasoft.com/be-part-of-it/events/bpm-camp-virtual- >>> event?utm_ >>> source=Sourceforge_BPM_Camp_5_6_15&utm_medium=email&utm_campaign=VA_SF >>> _______________________________________________ >>> Flashforth-devel mailing list >>> Fla...@li... >>> https://lists.sourceforge.net/lists/listinfo/flashforth-devel >> >> >> ------------------------------------------------------------------------------ >> One dashboard for servers and applications across Physical-Virtual-Cloud >> Widest out-of-the-box monitoring support with 50+ applications >> Performance metrics, stats and reports that give you Actionable Insights >> Deep dive visibility with transaction tracing using APM Insight. >> http://ad.doubleclick.net/ddm/clk/290420510;117567292;y >> >> >> >> _______________________________________________ >> Flashforth-devel mailing list >> Fla...@li... >> https://lists.sourceforge.net/lists/listinfo/flashforth-devel >> > ------------------------------------------------------------------------------ > One dashboard for servers and applications across Physical-Virtual-Cloud > Widest out-of-the-box monitoring support with 50+ applications > Performance metrics, stats and reports that give you Actionable Insights > Deep dive visibility with transaction tracing using APM Insight. > http://ad.doubleclick.net/ddm/clk/290420510;117567292;y > _______________________________________________ > Flashforth-devel mailing list > Fla...@li... > https://lists.sourceforge.net/lists/listinfo/flashforth-devel |
From: Peter J. <pe...@me...> - 2015-04-30 00:20:17
Attachments:
ff-shell.tcl
|
This version catches the error and continues with the GUI interaction in order to allow changes to the port name. Pressing enter tries to open the port. Peter J. On 28/04/15 14:14, Mikael Nordman wrote: > I tried it and it works, but... > > It does not start if the default port in the code does not exist. > > Could you change it so that the shell starts, even if the port is wrong. > Otherwise the user needs to edit the code which sort of defeats the idea > with the input box. > > BR Mike > > On 26.04.2015 13:23, Peter Jacobs wrote: >> The attached version now works reliably on my Linux box (Mint 17.1) and >> a Windows 7 machine with ActiveTcl 8.6 installed. It has a little bit >> of the requested bling, including the setting of the device for the >> serial port and the speed. I couldn't think of an easy to enumerate the >> valid serial port devices for a combobox input, so I settled for a >> simple text input. Suggestions are welcome. Anyway, the main code >> feature of this version is the simpler and more careful handling of the >> incoming characters. >> >> On the new web site, I'd like to see a collection of some of the code >> snippets that have appeared on the mailing list from time to time. >> Things like reading the ADC peripheral on example chips. >> >> Cheers, >> Peter J. >> >> >> On 08/04/15 00:47, Mikael Nordman wrote: >>> I tried it out and it worked for me on xubuntu 14.04. >>> >>> More bling-bling could be added. >>> Configuration options of the serial interface would be nice. >>> >>> Thanks /Mike >>> >>> PS >>> I started to modernize the website. Anything people would like to see >>> there ? >>> DS >>> >>> >>> On 06.04.2015 02:05, Peter Jacobs wrote: >>>> Attached is an alternative shell written in Tcl and based on the Tk text >>>> widget. >>>> Although the code is a bit longer than Mikael's Python shell, it does >>>> come with >>>> a GUI and might be a bit simpler for beginners. >>>> >>>> It seems to be fine on my Linux machine but could do with some exercise >>>> on a Microsoft-Windows machine and/or Mac. If all is good, it can be >>>> added to >>>> the FlashForth distribution. >>>> >>>> Regards, >>>> Peter J. >>> |
From: Peter J. <pe...@me...> - 2015-04-30 21:38:00
|
Pete (Zawasky), The "wm" line is the first that is not a comment, procedure definition or set command. I suspect that the wrong interpreter is working on the file. The first line of the file "#! /usr/bin/wish" tells the usual command interpreter which other interpreter to use on this file so, maybe, this redirection is not happening. Can you please try the following? (1) Start the program with a command line that looks like $ sudo wish ./ff-shell.tcl and see if the program starts properly. (2) Look where the wish command is on your system "which wish" in case it's not where I presume. (3) If the wish interpreter is really where I presumed, try removing the space between the "#!" and the "/usr/bin/wish" on that first line. I'll go looking for instructions on properly starting wish on different unix systems. I have a vague recollection that there's a sure-fire way described in the Tcl books. Cheers, Peter J. |
From: Pete Z. <pza...@pz...> - 2015-04-30 22:12:25
|
Hi Peter, $ sudo wish ./ff-shell.tcl worked just fine. Thanks Pete On 4/30/2015 5:37 PM, Peter Jacobs wrote: > Pete (Zawasky), > The "wm" line is the first that is not a comment, procedure > definition or set command. I suspect that the wrong interpreter is > working on the file. The first line of the file "#! /usr/bin/wish" > tells the usual command interpreter which other interpreter to use on > this file so, maybe, this redirection is not happening. Can you please > try the following? > (1) Start the program with a command line that looks like > $ sudo wish ./ff-shell.tcl > and see if the program starts properly |
From: <mik...@fl...> - 2015-05-02 05:57:52
|
I added the ff-shell.tcl to the distribution. With one small change. The Status line is not anymore rezised at window resize. diff ~/Downloads/ff-shell\(1\).tcl ff-shell.tcl 238c238 < pack $statusFrame -fill x -expand 1 --- > pack $statusFrame -fill x -expand 0 BR Mike |
From: Peter J. <pe...@me...> - 2015-05-02 11:04:22
|
Thanks Mike. Peter J. On 02/05/15 15:57, mik...@fl... wrote: > I added the ff-shell.tcl to the distribution. With one small change. > The Status line is not anymore rezised at window resize. > > diff ~/Downloads/ff-shell\(1\).tcl ff-shell.tcl > 238c238 > < pack $statusFrame -fill x -expand 1 > --- >> pack $statusFrame -fill x -expand 0 > BR Mike > > |
From: Peter J. <pe...@me...> - 2015-04-30 22:47:07
Attachments:
ff-shell.tcl
|
So, that space character in the first line of the program may be the problem. I'll remove it. Peter J. On 01/05/15 08:00, Pete Zawasky wrote: > Hi Peter, > > $ sudo wish ./ff-shell.tcl worked just fine. > > Thanks > Pete > > > > On 4/30/2015 5:37 PM, Peter Jacobs wrote: >> Pete (Zawasky), >> The "wm" line is the first that is not a comment, procedure >> definition or set command. I suspect that the wrong interpreter is >> working on the file. The first line of the file "#! /usr/bin/wish" >> tells the usual command interpreter which other interpreter to use on >> this file so, maybe, this redirection is not happening. Can you please >> try the following? >> (1) Start the program with a command line that looks like >> $ sudo wish ./ff-shell.tcl >> and see if the program starts properly > ------------------------------------------------------------------------------ > One dashboard for servers and applications across Physical-Virtual-Cloud > Widest out-of-the-box monitoring support with 50+ applications > Performance metrics, stats and reports that give you Actionable Insights > Deep dive visibility with transaction tracing using APM Insight. > http://ad.doubleclick.net/ddm/clk/290420510;117567292;y > _______________________________________________ > Flashforth-devel mailing list > Fla...@li... > https://lists.sourceforge.net/lists/listinfo/flashforth-devel |