Serial monitor

Work prioritization by the chipKIT core development team
Post Reply
User avatar
majenko
Site Admin
Posts: 2165
Joined: Wed Nov 09, 2011 7:51 pm
Location: UK
Contact:

Serial monitor

Post by majenko » Sat Apr 27, 2013 11:06 pm

I have been taking a look at the serial monitor with a view to overhauling it.

The current serial monitor consists of a simple text box that incoming text gets appended to. That is insanely simple - too simple to be usable for anything sensible.

To that end I have started working on a new version. I'm not happy with it yet - not by a long shot - as it consists of a grid of 80x25 JLabel widgets each with 1 character in it. While it works, it's not perfect - especially when you change the size of the window. The labels all stretch and warp making it look a bit off. Still, I have some ANSI codes working with it - clear screen, cursor positioning and foreground colour (more to come).

Image

The autoscroll checkbox has morphed into a cursor enable/disable checkbox as autoscroll is now meaningless.

As always, this is in my testbed version: http://autobuild.majenko.co.uk/mpide so have a play and see what you think.
Why not visit my shop? http://majenko.co.uk/catalog
Universal IDE: http://uecide.org
"I was trying to find out if it was possible to only eat one Jaffa Cake. I had to abandon the experiment because I ran out of Jaffa Cakes".

User avatar
Jacob Christ
Posts: 723
Joined: Sat May 28, 2011 6:34 am
Location: Southern California
Contact:

Re: Serial monitor

Post by Jacob Christ » Sun Apr 28, 2013 11:29 pm

This feature might be nice as an alternative terminal rather than a replacement, unless of course what you said holds, that at first use a user may ask why did I upgrade since nothing appears to have changed.

Jacob
PONTECH Quick240 an industrial form factor platform for chipKIT and Arduino users.

User avatar
majenko
Site Admin
Posts: 2165
Joined: Wed Nov 09, 2011 7:51 pm
Location: UK
Contact:

Re: Serial monitor

Post by majenko » Mon Apr 29, 2013 12:38 am

Yeah, as I said, this is a WiP and I'm not yet happy with it.

Ideally it would be functionally equivalent to the existing serial monitor but with the addition of reacting properly to ANSI control codes. At the moment it isn't.

There's no copy function - no idea how that could be implemented. I have looked at other Java terminal emulators, and they appear to do it all graphically, so how they'd do copy I haven't the faintest idea. I'd like to do away with the individual JLabels as that seems a bit clunky to me, but the only other option seems to be to do it graphically pasting text into a canvas some how. Unless there are other ways I don't know about? (suggestions please).

Otherwise, if that can't be (easily) done, then yes, having it as an "alternate" serial monitor (maybe a second check-box at the bottom for ANSI terminal on/off) would be a possibility.
Why not visit my shop? http://majenko.co.uk/catalog
Universal IDE: http://uecide.org
"I was trying to find out if it was possible to only eat one Jaffa Cake. I had to abandon the experiment because I ran out of Jaffa Cakes".

Post Reply