![]() |
Forum Index : Microcontroller and PC projects : Picomite copy and paste
Author | Message | ||||
atmega8![]() Guru ![]() Joined: 19/11/2013 Location: GermanyPosts: 724 |
Hello, two questions please. I can not copy and paste into the Editor over a Putty session ( Win 10). Is this by design? Is it possible to repeat commands that I already typed in, like in Linux or Windows command shells? Edited 2021-09-28 18:54 by atmega8 |
||||
Volhout Guru ![]() Joined: 05/03/2018 Location: NetherlandsPosts: 5091 |
Hi atmega8, I am not the author of the software but this could be a quite simple fix. Just empty the console buffer if you receive any character other than a <CR>. If you receive a <CR> you re-send the console buffer to the application. It is up to Peter to explain if this is possible, or would contradict or break other platforms. Volhout PicomiteVGA PETSCII ROBOTS |
||||
matherp Guru ![]() Joined: 11/12/2012 Location: United KingdomPosts: 10315 |
Works fine for me - just use the right mouse button to paste No: Needs a history buffer to work and we don't have memory to spare on the PicoMite |
||||
atmega8![]() Guru ![]() Joined: 19/11/2013 Location: GermanyPosts: 724 |
Works for me with Putty into the commandline, but not into the editor. With teraterm partial Maybe, I am missing some settings in teraterm and putty. But which one? |
||||
Mixtel90![]() Guru ![]() Joined: 05/10/2019 Location: United KingdomPosts: 7938 |
I find that pasting routines into the editor (via Tera Term) a pain. It only pastes the first line. If I'm moving a lot of stuff around or including sub routines from other progs then I xmodem out, edit the text in notepad and load it back in. Mick Zilog Inside! nascom.info for Nascom & Gemini Preliminary MMBasic docs & my PCB designs |
||||
robert.rozee Guru ![]() Joined: 31/12/2012 Location: New ZealandPosts: 2442 |
as far as i am aware, GFXterm is the only terminal emulator that can paste directly into the micromite editor. this is because pasting into the editor is interactive, requiring your terminal emulator to be 'micromite aware' (so to speak). you can find the win32 version of GFXterm here: http://www.thebackshed.com/docregister/ViewDoc.asp?DocID=22 this is a somewhat older version (1) that is no longer under development, that does not support XModem. the latest version (2.1b: GFXterm32 and GFXterm64) have only been compiled for linux and RPi so far. win32 is in the works, but still has a few kinks to iron out. cheers, rob :-) |
||||
Mixtel90![]() Guru ![]() Joined: 05/10/2019 Location: United KingdomPosts: 7938 |
I keep intending to try a later GFXterm. I did try it on the micromite ages ago. For some reason that I can't remember now I reverted back to the built-in editor. Mick Zilog Inside! nascom.info for Nascom & Gemini Preliminary MMBasic docs & my PCB designs |
||||
atmega8![]() Guru ![]() Joined: 19/11/2013 Location: GermanyPosts: 724 |
I use Putty in my job nearly every day. Copy and Paste in Linux, Routers, Switches, Storage, no Problem! It must be an issue with picomite editor / Mmbasic editor? There must a kind of incompatibility with Mmbasic. Am I wrong? |
||||
Volhout Guru ![]() Joined: 05/03/2018 Location: NetherlandsPosts: 5091 |
Do you paste in the editor screen (F4), or in the termimal screen. I type autosave and paste from notepad in the terminal screen. I never succesfully pasted in the editor screen. PicomiteVGA PETSCII ROBOTS |
||||
TassyJim![]() Guru ![]() Joined: 07/08/2011 Location: AustraliaPosts: 6283 |
You probably need a line delay to give the 'mite a chance to keep up. Jim VK7JH MMedit |
||||
Volhout Guru ![]() Joined: 05/03/2018 Location: NetherlandsPosts: 5091 |
Bummer ! Putty does not support line delays. On linux there is no such thing as Teraterm. Minicom comes closest, supports character and line delays (you can even run expect scripts in minicom) but it's a bit difficult to setup with it's terminal based ^A-Z menu. It's older, and different. I haven't even been able to create a .desktop file for it so it can be started from the menu. You need to start if from commandline. Putty is most user friendly, can also run in the background fromt he commandline, but no Xmodem, no line and character delays GTKterm is very simple but is not supporting ^C, so you can't stop your running program And there's a bunch of others that do not support the function keys for the build in editor, or need QT (which I have not installed on my PC's since QT4 and QT5 are not compatible, and some need QT4). Volhout PicomiteVGA PETSCII ROBOTS |
||||
Mixtel90![]() Guru ![]() Joined: 05/10/2019 Location: United KingdomPosts: 7938 |
Copy/paste using autosave is nice, but is of limited use. It works like "load", replacing the current memory contents with the pasted block rather than inserting it at the cursor position (it can't do that because it's not in the editor at that stage). It's just a bit more convenient than loading a prog using xmodem sometimes. There isn't a way (that I can find) of reliably inserting a block of text into the editor using Tera Term. Putting the line delay up to 200ms helps (for the PicoMite anyway) but anything that has indentation is just a disaster as ordinary space indents are ignored. Mick Zilog Inside! nascom.info for Nascom & Gemini Preliminary MMBasic docs & my PCB designs |
||||
robert.rozee Guru ![]() Joined: 31/12/2012 Location: New ZealandPosts: 2442 |
the automatic indenting is easily defeated by having a space (or any other visible character) to the right of the cursor when you begin the paste operation. what is tricky, is determining when the editor has finished scrolling the screen. it requires looking at the stream of characters returned to the terminal emulator after each carriage-return - if there are escape sequences returned (ie, one or more escape character are present) you need to wait for 300ms (or thereabouts) of silence before starting to paste the next line. cheers, rob :-) Edited 2021-09-30 20:15 by robert.rozee |
||||
Mixtel90![]() Guru ![]() Joined: 05/10/2019 Location: United KingdomPosts: 7938 |
That's interesting, rob. I didn't know about having a character to the right. It would be handy if that went into the manual. :) I doubt if there's a sensible way round the other problem. Other than don't attempt to paste escape characters. A line delay of 200ms is bad enough. Mick Zilog Inside! nascom.info for Nascom & Gemini Preliminary MMBasic docs & my PCB designs |
||||
robert.rozee Guru ![]() Joined: 31/12/2012 Location: New ZealandPosts: 2442 |
all versions of GFXterm (win32, linux, RPi) code around the problem ![]() technically, one could also write a Teraterm macro to accommodate the editor's requirements, but that would be quite a task! cheers, rob :-) |
||||
![]() |
![]() |
The Back Shed's forum code is written, and hosted, in Australia. | © JAQ Software 2025 |