The VT100 is a video terminal that was made by Digital Equipment Corporation (DEC). Its detailed attributes became the de facto standard for terminal emulators to emulate.
Questions tagged [vt100]
103 questions
48
votes
4 answers
Colored text output in PowerShell console using ANSI / VT100 codes
I wrote a program which prints a string, which contains ANSI escape sequences to make the text colored. But it doesn't work as expected in the default Windows 10 console, as you can see in the screenshot.
The program output appears with the escape…
user2226112
36
votes
7 answers
How to get the cursor position in bash?
In a bash script, I want to get the cursor column in a variable. It looks like using the ANSI escape code {ESC}[6n is the only way to get it, for example the following way:
# Query the cursor position
echo -en '\033[6n'
# Read it to a variable
read…

nicoulaj
- 3,463
- 4
- 27
- 32
13
votes
3 answers
what is terminal escape sequence for ctrl + arrow (left, right,...) in TERM=linux
I am building a terminal window in a browser (sth. like ajaxterm) and don't know which escape sequence to send to ssh tunnel (opened via paramiko.SSHClient().invoke_shell(term='linux')).
I have found a key logger and tried it in a terminal with…

johndodo
- 17,247
- 15
- 96
- 113
13
votes
2 answers
Java terminal emulator
Does anyone knows of a library or a class that emulates the vt100 terminal (doesn't matter if graphical or not). What I want basically is a class that implements the logic of a vt100 terminal (like when receiving a "delete" code will call a delete…

Rima
- 457
- 2
- 7
- 18
11
votes
3 answers
Python regex to match VT100 escape sequences
I'm writing a Python program that logs terminal interaction (similar to the script program), and I'd like to filter out the VT100 escape sequences before writing to disk. I'd like to use a function like this:
def strip_escapes(buf):
escape_regex…

Lorin Hochstein
- 57,372
- 31
- 105
- 141
10
votes
1 answer
Send "C-(" to Emacs in VT100/xterm terminal (Mac OS X's Terminal)?
Is it possible in any way to send the key "C-(" to Emacs over a VT100/xterm terminal (Mac OS X Terminal)? Is there an escape sequence that could be sent to achieve the equivalent?
I suspect the fundamental problem is that the concept of combining…

Markus Miller
- 3,695
- 2
- 29
- 33
8
votes
4 answers
VT100 Terminal Emulation in Windows WPF or Silverlight
I'm pondering creating a WPF or Silverlight app that acts just like a terminal window. Except, since it is in WPF/Silverlight, it will be able to 'enhance' the terminal experience with effects, images, etc.
I'm trying to figure out the best way to…

InfinitiesLoop
- 14,349
- 3
- 31
- 34
8
votes
3 answers
AJAX console window with ANSI/VT100 support?
I'm planning to write gateway web application, which would need "terminal window" with VT100/ANSI escape code support. Are there any AJAX based alternatives for such a task?
I'm thinking something like this: http://tryruby.hobix.com/
My preferred…

Harriv
- 6,029
- 6
- 44
- 76
8
votes
2 answers
Is there a Python equivalent for the Perl module Term::VT102?
In Perl there is a very handy module, Term::VT102, which allows you to create a screen in memory. This is very handy for scraping purposes since you can keep track of all the changes to portions of the screen and then export the screen as plain-text…

pokstad
- 3,411
- 3
- 30
- 39
7
votes
3 answers
Refresh first N lines and reset cursor to the end of current line with escape sequences?
Here's the situation, I want to make some terminal interaction, I want to start child thread to refresh the first N lines, and use the main thread to handle user input.
After that the program will print changeable string, maybe some logs.
The child…

McGrady
- 10,869
- 13
- 47
- 69
7
votes
1 answer
VT100 ANSI escape sequences: getting screen size, conditional ANSI
When I resizing on terminal, it keeps full screen.
I guess, there's someway that can find out what screen size the terminal is. How can I do that in VT100?
With , when I list folder, it shows folder in blue color. (or let's say different color)…

Gon
- 81
- 1
- 6
7
votes
2 answers
How to use vt100 code in Windows
I try to move the cursor in console.
And I find out that vt100 code could do this.
#include
int main()
{
printf("123456789\n");
printf("\033A");
printf("abcdefghi\n");
return 0;
}
Its output is not the same as planned. this…

yck
- 165
- 1
- 6
6
votes
0 answers
Activating VT100 via os.system('')?
After Win10 conhost got VT100 support, I played around with it a bit. Eventually I found out os.system('') activated the support in Python and got the following result:
import…

Grub4K
- 101
- 6
6
votes
4 answers
Can I determine if the terminal interprets the C1 control codes?
ISO/IEC 2022 defines the C0 and C1 control codes. The C0 set are the familiar codes between 0x00 and 0x1f in ASCII, ISO-8859-1 and UTF-8 (eg. ESC, CR, LF).
Some VT100 terminal emulators (eg. screen(1), PuTTY) support the C1 set, too. These are the…

caf
- 233,326
- 40
- 323
- 462
6
votes
1 answer
How to remove ANSI control chars (VT100) from a Java String
I am working with automation and using Jsch to connect to remote boxes and automate some tasks.
I am having problem parsing the command results because sometimes they come with ANSI Control chars.
I've already saw this answer and this other one but…

Leo
- 6,480
- 4
- 37
- 52