VT-100 Code
Post new topic Reply to topic  [ 4 posts ] 
Author Message
 Post subject: VT-100 Code
PostPosted: Mon Jun 18, 2012 1:19 am 
Offline
Newbie

Joined: Sun Jun 01, 2008 5:14 am
Posts: 14
Hi,

Tow questions please.
1- In the new Tera term version is there VT-100 code to change the text color or text highlighting color at any time.
2- What VT-100 code to be used to bring the curser down 5 times.

Thanks
Saud


Top
 Profile E-mail  
 
 Post subject: Re: VT-100 Code
PostPosted: Mon Jun 18, 2012 10:40 am 
Offline
Moderator, LogMeTT and TTLEditor developer
User avatar

Joined: Sat Jan 08, 2005 10:52 am
Posts: 1411
Location: Seattle, USA
Have you seen this? http://logmett.com/index.php?/quick-tip ... codes.html

_________________
Thanks.
Best regards,
Boris


Top
 Profile  
 
 Post subject: Re: VT-100 Code
PostPosted: Tue Jun 19, 2012 12:24 am 
Offline
Newbie

Joined: Sun Jun 01, 2008 5:14 am
Posts: 14
Yes i have seen and used that before, but it look there is no option for text coloring.
Also the code for moving the curser down or up number of time did not work with me, so I just keep repeating the code which is consuming the memory.

Thanks
Saud


Top
 Profile E-mail  
 
 Post subject: Re: VT-100 Code
PostPosted: Thu Jun 21, 2012 11:39 pm 
Offline
Beginner

Joined: Mon Sep 19, 2011 8:01 pm
Posts: 44
Location: New Jersey, USA
I believe you are looking for ANSI control codes. The Ansi codes are a superset of the old DEC VT codes. There is a write up at:

http://en.wikipedia.org/wiki/ANSI_escape_code

I typed this up and it may prove interesting:

  1. echo "^[[30m This is black"
  2. echo "^[[31m This is red"
  3. echo "^[[32m This is green"
  4. echo "^[[33m This is yellow"
  5. echo "^[[34m This is blue"
  6. echo "^[[35m This is magenta"
  7. echo "^[[36m This is cyan"
  8. echo "^[[37m This is white"
  9. echo "^[[7m This is reverse"
  10. echo "^[[0m This is reset"
  11. echo "^[[4m This is Underline"
  12. echo ""
  13. echo "^[[5m This is Blink?Slow?"
  14. echo "^[[7m This is Blink?Fast?"
  15.  
  16. echo "1"
  17. echo "2"
  18. echo "3"
  19. echo "4"
  20. echo "5"
  21. echo "6"
  22. echo "^[[5A               up 5"
  23. echo "^[[5B             down 5"


Please keep in mind that the ^[ followed by [ is the standard DEC "Control Sequence Introducer", CSI, Escape (0x1b) followed by the [ (0x5b). I you use the caret ^ followed by the bracket, you will see those two characters and will not be pleased with the result.

_________________
Regards,
/Bob


Top
 Profile E-mail  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 4 posts ] 

Who is online

Users browsing this forum: No registered users and 0 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
cron
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group