Before logging an issue, please update to the latest release of Visual Micro from the Downloads Page.

When Logging a Support Issue in the Forum, please ensure you have also:-

  • Enabled vMicro > Compiler > Show Build Properties
  • Re-Compile your program with these settings enabled
 
Save the new Output to a Text File and....
  • Click the Reply button and attach as .txt file OR
  • Click here to Email us with the file attached, and a link to your post
Support requests without the output above may be impossible to answer, so please help us to help you
 
Page Index Toggle Pages: [1] 2  Send TopicPrint
Hot Topic (More than 8 Replies) how enable CSTR options in debugger (Read 14494 times)
GeeTee
Member
***
Offline


Posts: 103
Joined: Nov 10th, 2014
how enable CSTR options in debugger
Jul 28th, 2016 at 3:28am
Print Post  
I own the personal edition.  how can I enable the CSTR so that a backspace works 

thank you.
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12186
Location: United Kingdom
Joined: Apr 10th, 2010
Re: how enable CSTR options in debugger
Reply #1 - Jul 28th, 2016 at 1:14pm
Print Post  
Hi,

I am having difficulty understanding where you want to enter the backspace char?

Is this when updating the value of a debugger variable? in the serial monitor or elsewhere?

Thanks
  
Back to top
IP Logged
 
GeeTee
Member
***
Offline


Posts: 103
Joined: Nov 10th, 2014
Re: how enable CSTR options in debugger
Reply #2 - Jul 28th, 2016 at 1:23pm
Print Post  
in the serial monitor.  i want it to process a backspace using the CSTR button in that window
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12186
Location: United Kingdom
Joined: Apr 10th, 2010
Re: how enable CSTR options in debugger
Reply #3 - Jul 28th, 2016 at 1:30pm
Print Post  
okay so you have CSTR enabled which means you can enter escape codes in the outbound input box of the monitor.

I thought that was supported. What is the \text you want to enter for backspace?
  
Back to top
IP Logged
 
GeeTee
Member
***
Offline


Posts: 103
Joined: Nov 10th, 2014
Re: how enable CSTR options in debugger
Reply #4 - Jul 28th, 2016 at 1:35pm
Print Post  
\b  per the page on your web site.  it appears that I have to pay more money to upgrade to a pro version?
I own the strandard version,

http://www.visualmicro.com/page/User-Guide.aspx?doc=Serial-Monitor.html
  
Back to top
 
IP Logged
 
GeeTee
Member
***
Offline


Posts: 103
Joined: Nov 10th, 2014
Re: how enable CSTR options in debugger
Reply #5 - Jul 28th, 2016 at 1:36pm
Print Post  
see attached.
  

Please Register or Login to the Forum to see File Attachments
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12186
Location: United Kingdom
Joined: Apr 10th, 2010
Re: how enable CSTR options in debugger
Reply #6 - Jul 28th, 2016 at 1:44pm
Print Post  
There is only one paid version of Visual Micro. You only pay more if using for work/profit/business but the functionality is the same.

So you are saying that \b isn't working? Are other escape chars working?
  
Back to top
IP Logged
 
GeeTee
Member
***
Offline


Posts: 103
Joined: Nov 10th, 2014
Re: how enable CSTR options in debugger
Reply #7 - Jul 28th, 2016 at 2:40pm
Print Post  
yes \b and others are not working.  At all.  the serial console shows a black circle in place of the backspace.  please try it in your code and then send me the code to try it.

the url I sent you says that it is disabled for all users except the commercial version.

thsnks
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12186
Location: United Kingdom
Joined: Apr 10th, 2010
Re: how enable CSTR options in debugger
Reply #8 - Jul 28th, 2016 at 2:44pm
Print Post  
The tooltip is confusing. If you can switch it on it should be working.

The monitor is ascii so can't show control chars. What do you expect to see in the monitor? 
What do you see in the monitor when you send a backspace from the arduino using c++?



  
Back to top
IP Logged
 
GeeTee
Member
***
Offline


Posts: 103
Joined: Nov 10th, 2014
Re: how enable CSTR options in debugger
Reply #9 - Jul 28th, 2016 at 2:50pm
Print Post  
i did switch it on.  it does not work.

I expect 

serial.print ( "hi" )
delay ( 1000);
serial.print ( "\bthere" )

to show
hi
then be erased
then show
there.

please test this feature.  it does not work
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12186
Location: United Kingdom
Joined: Apr 10th, 2010
Re: how enable CSTR options in debugger
Reply #10 - Jul 28th, 2016 at 3:01pm
Print Post  
Forgive me if I am wrong but I think you are confused about what escape chars can do. Sorry if the docs are confusing I will revisit them.

1)
You should not confuse what the backspace key on a keyboard can do with the ASCII escape chars. Things go forward only and \b is simply an additional character not a command to control the direction of the cursor or emulate keystrokes.

2)
The CSTR applies to what you type into the "send" box at the top of the Serial Monitor and allows you to send, for example, the tab character to the arduino between hello and world like this 

hello \t world

This means the Serial.read on the arduino can receive the tab char.

If you send a \b to the arduino it will be able to use that, maybe your arduino code can perform a backspace on a connected lcd display.

hello \b world

But in all cases what appears in the monitor is only what is sent from the arduino and is not affected by CSTR.
  
Back to top
IP Logged
 
GeeTee
Member
***
Offline


Posts: 103
Joined: Nov 10th, 2014
Re: how enable CSTR options in debugger
Reply #11 - Jul 28th, 2016 at 3:08pm
Print Post  
i understand.

so how can i get the serial.print   \b to actually cause a backspace to function as such in the output panel?
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12186
Location: United Kingdom
Joined: Apr 10th, 2010
Re: how enable CSTR options in debugger
Reply #12 - Jul 28th, 2016 at 3:20pm
Print Post  
I don't know of any products that do that without using an Arduino Leonardo type of board that can emulate usb keyboard, mouse etc.

Teensy make some nice boards that are powerful and cheap. 

I can't visualize what you are trying to achiever so maybe state why you need to backspace? What is the reason for needing to do that? What problem will it overcome?
  
Back to top
IP Logged
 
GeeTee
Member
***
Offline


Posts: 103
Joined: Nov 10th, 2014
Re: how enable CSTR options in debugger
Reply #13 - Jul 28th, 2016 at 4:01pm
Print Post  
it is not a board feature.

it is the serial debugger window that translates a backspace into moving the cursor back one position.  please understand .
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12186
Location: United Kingdom
Joined: Apr 10th, 2010
Re: how enable CSTR options in debugger
Reply #14 - Jul 28th, 2016 at 4:04pm
Print Post  
Yes I do understand but to do that currently you have to use a micro-controller that pretend to be a HID USB device. 

Then could could send a backspace keystroke from micro-controller that the pc would understand and action.

So what I have said is correct.

I'll have a think about some remove control for the serial window such as clear last char and clear screen. Would be quite nice.
« Last Edit: Jul 28th, 2016 at 4:07pm by Tim@Visual Micro »  
Back to top
IP Logged
 
Jo Sto
Ex Member
*


Re: how enable CSTR options in debugger
Reply #15 - Jul 28th, 2016 at 4:27pm
Print Post  
I would use a terminal program as a replacement for the serial monitor.
  
Back to top
 
IP Logged
 
GeeTee
Member
***
Offline


Posts: 103
Joined: Nov 10th, 2014
Re: how enable CSTR options in debugger
Reply #16 - Jul 28th, 2016 at 5:45pm
Print Post  
cant use a third party. need the vismicro serial monitor to act on the \b. 

ideally, please implement ALL character behavior on this page:

http://www.visualmicro.com/page/User-Guide.aspx?doc=Serial-Monitor.html

can you modify the source code please?
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12186
Location: United Kingdom
Joined: Apr 10th, 2010
Re: how enable CSTR options in debugger
Reply #17 - Jul 28th, 2016 at 5:49pm
Print Post  
The page is fully implemented. You are not reading it correctly. 

The fact that CSTR relates to the outbound text box is clearly stated on the documentation page and is clearly shown in  the image you posted earlier.

Quote:
If switched on, then the Serial Monitor outbound text box supports escape sequences, similar to those used in C++ and C#,  and shows them as 2-character sequences, starting with a '\':


Did you see that text before?
« Last Edit: Jul 28th, 2016 at 5:51pm by Tim@Visual Micro »  
Back to top
IP Logged
 
GeeTee
Member
***
Offline


Posts: 103
Joined: Nov 10th, 2014
Re: how enable CSTR options in debugger
Reply #18 - Jul 28th, 2016 at 5:51pm
Print Post  
so when can you implement the features  for INBOUND...

"I'll have a think about some remove control for the serial window such as clear last char and clear screen. Would be quite nice."
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12186
Location: United Kingdom
Joined: Apr 10th, 2010
Re: how enable CSTR options in debugger
Reply #19 - Jul 28th, 2016 at 5:53pm
Print Post  
Time is very limited. There are a lot of changes within all the microcontroller defs and also in visual studio. New boards and other features that reduce support tend to come first.

The forum can be a huge time consumer, so we have to see how it goes.
  
Back to top
IP Logged
 
Page Index Toggle Pages: [1] 2 
Send TopicPrint