Go to Post FIRST is inspiration. No matter how you do it, you learn something. Stop being silly. Stop making accusations. Go build robots. Now. - Aignam [more]
Home
Go Back   Chief Delphi > Technical > Programming > C/C++
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
Reply
 
Thread Tools Rate Thread Display Modes
  #1   Spotlight this post!  
Unread 23-03-2013, 09:24
Toa Circuit's Avatar
Toa Circuit Toa Circuit is offline
Thaddeus Maximus
AKA: Thad Hughes
FRC #4213 (MetalCow Robotics)
Team Role: Leadership
 
Join Date: Nov 2012
Rookie Year: 2012
Location: Shirley, IL
Posts: 131
Toa Circuit is an unknown quantity at this point
VT100 escape sequences or up a line on NetConsole

Does the NetConsole support VT100 escape sequences, or is there any other way for me to go up a line in it? Here is the code I want to use:

Code:
cout << "\x1b[A";
So that I can overwrite previous buffer stuff.
__________________

2012 Head of Programming and Electrical
2013-14 Overall Team Captain and Programming Head
2012-14 Mentor of FLL Team Power Surge
2014 Dean's List Finalist
2014 CIR Xerox Creativity Award
Webpage
Reply With Quote
  #2   Spotlight this post!  
Unread 25-03-2013, 03:23
jhersh jhersh is offline
National Instruments
AKA: Joe Hershberger
FRC #2468 (Appreciate)
Team Role: Mentor
 
Join Date: May 2008
Rookie Year: 1997
Location: Austin, TX
Posts: 1,006
jhersh has a reputation beyond reputejhersh has a reputation beyond reputejhersh has a reputation beyond reputejhersh has a reputation beyond reputejhersh has a reputation beyond reputejhersh has a reputation beyond reputejhersh has a reputation beyond reputejhersh has a reputation beyond reputejhersh has a reputation beyond reputejhersh has a reputation beyond reputejhersh has a reputation beyond repute
Re: VT100 escape sequences or up a line on NetConsole

Quote:
Originally Posted by Toa Circuit View Post
Does the NetConsole support VT100 escape sequences, or is there any other way for me to go up a line in it? Here is the code I want to use:

Code:
cout << "\x1b[A";
So that I can overwrite previous buffer stuff.
I don't believe the NetConsole client supports that escape sequence, but trying it would be your best bet.
Reply With Quote
  #3   Spotlight this post!  
Unread 25-03-2013, 10:50
Toa Circuit's Avatar
Toa Circuit Toa Circuit is offline
Thaddeus Maximus
AKA: Thad Hughes
FRC #4213 (MetalCow Robotics)
Team Role: Leadership
 
Join Date: Nov 2012
Rookie Year: 2012
Location: Shirley, IL
Posts: 131
Toa Circuit is an unknown quantity at this point
Re: VT100 escape sequences or up a line on NetConsole

Quote:
Originally Posted by jhersh View Post
I don't believe the NetConsole client supports that escape sequence, but trying it would be your best bet.
Our robot is in the bag... would it be possible for someone to test if it works?
__________________

2012 Head of Programming and Electrical
2013-14 Overall Team Captain and Programming Head
2012-14 Mentor of FLL Team Power Surge
2014 Dean's List Finalist
2014 CIR Xerox Creativity Award
Webpage
Reply With Quote
  #4   Spotlight this post!  
Unread 04-04-2013, 23:59
nightpool's Avatar
nightpool nightpool is offline
robotRectifier
AKA: Evan
no team (formerly of CORE 2062)
Team Role: Alumni
 
Join Date: Oct 2011
Rookie Year: 2011
Location: Waukesha, WI
Posts: 81
nightpool is on a distinguished road
Re: VT100 escape sequences or up a line on NetConsole

I'm going to (without testing) give you a pretty solid "no dice". The NetConsole is pretty limited in what it supports. There are a few replacements out there, but if you're looking to update things frequently (what I inferred from your question) you're probably better off in the long run learning and using the smart dashboard.

Smart Dashboard calls are pretty easy to drop in, here are some common conversions:

For numbers, replace
Code:
 cout <<  "Value: " << number_val << endl; // Substitute printf's to taste
with
Code:
 SmartDashboard::PutNumber('Value', number_val);
For booleans:
Code:
 cout << is_running ? "Motor is running" : "No motor running" << endl;
with
Code:
 SmartDashboard::PutBoolean("motor running", is_running);
Of course, don't take my word for it, always check the docs, for example the copy hosted here: http://www.virtualroadside.com/WPILi...dashboard.html or the one that came with your WPILib installation (at C:\WindRiver\docs\extensions\frc\WPILib C++ Reference.chm).
__________________
Proud alum of CORE 2062.
www.core2062.com
Reply With Quote
Reply


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -5. The time now is 12:51.

The Chief Delphi Forums are sponsored by Innovation First International, Inc.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi