Keith

> version of python didn't
> come with the required readline support.  

I am using python 2.7, installed long time back. No idea where it
comes from :)

> 1) Pass an additional option to the script, for
> example
> 
> "--editor=C:\WinAVR\pn\pn.exe"

Yes, it works, I did a .bat file where I start your script with
above option.

#edit pytest.frt
opens the PN with the file (file located in the same dir as your
script). Closing the PN returns to the prompt.

(ATmega1284P)> #edit pytest.frt
|D=#edit pytest.frt
(ATmega1284P)> #include pytest.frt
|D=#include pytest.frt
|I=mcudef
|I=using device.py for atmega1284p
|F=C:\MyCode\AVR\WINAVR\projects\AMFORTH\new_amforth\trunk\tools\pytest.frt
||S|    1|-pytest
|E=-pytest ?? -13 7
Error: Error in line sent
(ATmega1284P)> #include pytest.frt
|D=#include pytest.frt
|I=mcudef
|I=using device.py for atmega1284p
|F=C:\MyCode\AVR\WINAVR\projects\AMFORTH\new_amforth\trunk\tools\pytest.frt
||W|    1|
|S|    2|marker -pytest
|S|    3|: foo 1.2223e-4 555.322e2 f* fs. ;
(ATmega1284P)> foo
6.78770E0  ok
(ATmega1284P)> #include pytest.frt
|D=#include pytest.frt
|I=mcudef
|I=using device.py for atmega1284p
|F=C:\MyCode\AVR\WINAVR\projects\AMFORTH\new_amforth\trunk\tools\pytest.frt
||S|    1|-pytest
|S|    2|marker -pytest
|S|    3|: foo 1.2223e-4 555.322e2 f* fs. ;
(ATmega1284P)> 

Now I have to tackle the automatic opening the PN when error..

Thanks,
P.


------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
Amforth-devel mailing list for http://amforth.sf.net/
Amforth-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/amforth-devel

Reply via email to