Home
JAQForum Ver 24.01
Log In or Join  
Active Topics
Local Time 07:07 02 Aug 2025 Privacy Policy
Jump to

Notice. New forum software under development. It's going to miss a few functions and look a bit ugly for a while, but I'm working on it full time now as the old forum was too unstable. Couple days, all good. If you notice any issues, please contact me.

Forum Index : Microcontroller and PC projects : Picomite copy and paste

Author Message
atmega8

Guru

Joined: 19/11/2013
Location: Germany
Posts: 724
Posted: 08:52am 28 Sep 2021
Copy link to clipboard 
Print this post

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: Netherlands
Posts: 5091
Posted: 09:21am 28 Sep 2021
Copy link to clipboard 
Print this post

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 Kingdom
Posts: 10315
Posted: 09:39am 28 Sep 2021
Copy link to clipboard 
Print this post

  Quote  I can not copy and paste into the Editor over a Putty session ( Win 10).
Is this by design?


Works fine for me - just use the right mouse button to paste

  Quote  Is it possible to repeat commands that I already typed in, like in Linux or Windows command shells?


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: Germany
Posts: 724
Posted: 02:05pm 28 Sep 2021
Copy link to clipboard 
Print this post

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 Kingdom
Posts: 7938
Posted: 02:14pm 28 Sep 2021
Copy link to clipboard 
Print this post

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 Zealand
Posts: 2442
Posted: 02:22pm 28 Sep 2021
Copy link to clipboard 
Print this post

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 Kingdom
Posts: 7938
Posted: 02:48pm 28 Sep 2021
Copy link to clipboard 
Print this post

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: Germany
Posts: 724
Posted: 05:48pm 29 Sep 2021
Copy link to clipboard 
Print this post

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: Netherlands
Posts: 5091
Posted: 08:34pm 29 Sep 2021
Copy link to clipboard 
Print this post

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: Australia
Posts: 6283
Posted: 09:30pm 29 Sep 2021
Copy link to clipboard 
Print this post

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: Netherlands
Posts: 5091
Posted: 06:33am 30 Sep 2021
Copy link to clipboard 
Print this post

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 Kingdom
Posts: 7938
Posted: 07:32am 30 Sep 2021
Copy link to clipboard 
Print this post

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 Zealand
Posts: 2442
Posted: 09:47am 30 Sep 2021
Copy link to clipboard 
Print this post

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 Kingdom
Posts: 7938
Posted: 10:30am 30 Sep 2021
Copy link to clipboard 
Print this post

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 Zealand
Posts: 2442
Posted: 11:00am 30 Sep 2021
Copy link to clipboard 
Print this post

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   :-)
 
Print this page


To reply to this topic, you need to log in.

The Back Shed's forum code is written, and hosted, in Australia.
© JAQ Software 2025