• Support
  • Articles
  • Resources
  • Products

VT-100 Code

Moderator: boris

4 postsPage 1 of 1

Saud
Newbie

Posts:
15
Joined: Sun Jun 01, 2008 9:14 am
by Saud » Mon Jun 18, 2012 5:19 am
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
boris
Moderator, LogMeTT and TTLEditor developer

Posts:
1528
Joined: Sat Jan 08, 2005 2:52 pm
by boris » Mon Jun 18, 2012 2:40 pm
Thanks.
Best regards,
Boris
Saud
Newbie

Posts:
15
Joined: Sun Jun 01, 2008 9:14 am
by Saud » Tue Jun 19, 2012 4:24 am
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
bob_bryan
Beginner

Posts:
44
Joined: Tue Sep 20, 2011 12:01 am
by bob_bryan » Fri Jun 22, 2012 3:39 am
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:

Code: Select all

  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
Display posts from previous:
Sort by:

4 postsPage 1 of 1

Users browsing this forum: No registered users