|
|
|
![]() |
|
|||||||
|
||||||||
![]() |
| Thread Tools | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
Virtual Console Backspace Character?
This isn't all that important, but it's a curious thing for me... Is there a backspace command we can send to the Virtual Console to backspace the last character sent? I tried "\b" but it didn't work...
Again, it's not important, but ever since the build season ended, programming (outside of competitions, that is) has been rather dull, so I'm adding "fun" code. (and yes, I realize the danger of this) |
|
#2
|
||||
|
||||
|
Re: Virtual Console Backspace Character?
The standard linux escape list can be shown here:
List of escaped characters Yes, im referencing an AWK manual, but it has the list I use all the time. The closest character to it is a space because there is to backspace escaped sequence. It is interpreted by the scanf, raw_input, readline, or whatever function your language of choice uses to get input from the user. A word of advice: fun code blows up speed controllers |
|
#3
|
|||
|
|||
|
Re: Virtual Console Backspace Character?
'\b' for backspace should work, however, it will not be able to delete a newline, so you may have problems with println appending newlines. Though, I haven't tried this on the cRIO or anything.
And when messing around be careful, but hey anything worth doing has some risk. ![]() |
|
#4
|
|||
|
|||
|
Re: Virtual Console Backspace Character?
Quote:
|
|
#5
|
|||
|
|||
|
Re: Virtual Console Backspace Character?
Are you talking about the driver station console? If so it is treated analogous to the LCD screen of last year which means you are essentially "painting" characters on the screen. To delete characters you have to output a space at that position.
Example: "here is some text" to just say 'here' you would have to output "here " to erase the entire line: " " So for your thing instead of backspace: "|" " " "\" " " "-" " " "|" etc..... Also keep in mind that an update signal must be sent each time the LCD text is set or it won't appear animated. If I am totally misunderstanding what you are trying to do...apologies! You can try a unicode backspace too: \u0008 |
|
#6
|
|||
|
|||
|
Re: Virtual Console Backspace Character?
Quote:
Although, We have found that unless you need more than 21 columns per line (the physical size of last year's LCD), using the text area on the driver station is better for just about everything. If certain aspects of it are a pain, borrow our LCD.java from our code. Quote:
|
|
#7
|
|||
|
|||
|
Re: Virtual Console Backspace Character?
It's a console, right? So why not try the backspace? Have you tried ctrl-h (0x08)?
-Joe |
|
#8
|
|||||
|
|||||
|
Re: Virtual Console Backspace Character?
If what Joe said doesn't work, you could try \010, a backup for \b.
|
|
#9
|
|||
|
|||
|
Re: Virtual Console Backspace Character?
Last I checked, 010 == 0x08 == 8. Welcome to the world of octal... aka base-8 numbers.
|
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Animated Character Help | 16MentalTempest | 3D Animation and Competition | 13 | 29-03-2009 15:53 |
| Line Continuation Character in MPLAB? | brianafischer | Programming | 4 | 27-01-2007 19:26 |
| Name That Character! | Amber H. | Chit-Chat | 18 | 17-01-2003 15:44 |
| character studio | archiver | 2001 | 2 | 23-06-2002 23:41 |
| ss of team 30's main character =) | RobDeCotiis | 3D Animation and Competition | 0 | 18-02-2002 08:19 |