vt100

How to remove ANSI control chars (VT100) from a Java String

时光总嘲笑我的痴心妄想 提交于 2019-12-19 03:22:30
问题 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 it does not provide any library to do that. I don't want to reinvent the wheel, if there is any. And I don't feel confident with those answers. Right now, I am trying this, but I am not really sure it's complete enough. reply = reply.replaceAll("\\

VT100 Terminal Emulation in Windows WPF or Silverlight

北战南征 提交于 2019-12-17 21:57:10
问题 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 emulate a terminal. I know how to handle the VT100 emulation as far as parsing, etc. But how to display it? I considered using a RichTextBox and essentially converting the VT100 escape codes into RTF. The problem I see with that is performance. The

VT100 ANSI escape sequences: getting screen size, conditional ANSI

青春壹個敷衍的年華 提交于 2019-12-12 10:55:24
问题 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) But, if you save output into a text file ( ls > out.txt ), you don't see any ANSI code but plain text. However, if you try ( vi > out.txt ), you will see ANSI code. How does know that? Thank you 回答1: Programs (such as vi ) which automatically adjust to

Open source C# vt100 server

穿精又带淫゛_ 提交于 2019-12-12 09:27:40
问题 Does anyone know of an open source C# vt100 server? I'm looking to create a C# server that understands the escape sequences from a vt100 client. 回答1: This takes me waaaay back. I... don't think it's the server, but the application, that needs to understand the escape sequences. The server only needs to pass them to the application that's running. Think of a text-based application. It needs to know what the user is sending to it so that it can send back the proper response. The terminal server

VT100 escape sequences: Cursor movement wrap around to end of line

穿精又带淫゛_ 提交于 2019-12-12 09:23:09
问题 I'm creating a Telnet CLI application that is controlled with VT100 escape sequences. So to e.g. navigate the cursor left the <ESC>[D escape sequence is sent from the Telnet server to the client, which may be Putty or Gnome-terminal. Unfortunately, with lines that are longer than the Putty line length, the escape sequence above will not permit navigating the cursor to the line above the current line. An example. Cursor is '|'. Comments are marked with '//' ---------------- >potato| // Now I

Is it possible to enable VT100/ANSI escape codes from PHP 5 in Windows

独自空忆成欢 提交于 2019-12-10 19:23:24
问题 I'm in the process of upgrading an old PHP 5 app to PHP 7. I'm using Codeception for unit testing because it has nice colour output, making it easy to see if all the tests have passed or not. Things I have tried: Upgrade to PHP 7: the app crashes Run Codeception with no special flags: ANSI escape codes are printed to screen making the output hard to read Run Codeception with the --no-colors flag: output is a single colour taking longer to recognise a 100% passing run, or which tests have

Open source C# vt100 server

我只是一个虾纸丫 提交于 2019-12-04 21:33:06
Does anyone know of an open source C# vt100 server? I'm looking to create a C# server that understands the escape sequences from a vt100 client. This takes me waaaay back. I... don't think it's the server, but the application, that needs to understand the escape sequences. The server only needs to pass them to the application that's running. Think of a text-based application. It needs to know what the user is sending to it so that it can send back the proper response. The terminal server you're talking about sits between the application and the user, acting as part of the communication layer.

keyboard transmit mode in vt100 terminal emulator

为君一笑 提交于 2019-12-04 19:39:08
I'm implementing a vt100 terminal emulator in javascript and the vt100 spec (from man terminfo and infocmp ) tells me that smkx=\E[?1h\E= is the code to enter key-board transmit mode and rmkx=\E[?1l\E> is the code to leave 'key-board transmit' mode. I couldn't really understand what key-board transmit mode is. From http://vt100.net/dec/ek-vt220-tm-001.pdf , 7.4.4.1 Keyboard Transmit Mode -- The keyboard codes and a few other special codes are transmitted via a serial line output in PORT of the 8051. The transmitted signal goes from the 8051 to a driver, through the keyboard cable, monitor and

VT100 escape sequences: Cursor movement wrap around to end of line

♀尐吖头ヾ 提交于 2019-12-04 19:14:47
I'm creating a Telnet CLI application that is controlled with VT100 escape sequences. So to e.g. navigate the cursor left the <ESC>[D escape sequence is sent from the Telnet server to the client, which may be Putty or Gnome-terminal. Unfortunately, with lines that are longer than the Putty line length, the escape sequence above will not permit navigating the cursor to the line above the current line. An example. Cursor is '|'. Comments are marked with '//' ---------------- >potato| // Now I press left arrow which sends esc sequence to application ---------------- >potat|o // Works as expected.

AJAX console window with ANSI/VT100 support?

我们两清 提交于 2019-12-03 09:47:29
问题 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 backend for the system is Python/Twisted/Pylons, but since I'm just planning, I will explore every option. 回答1: Try AnyTerm AjaxTerm WebShell 回答2: There's also Shell In A Box. 回答3: AjaxTerm has a terminal, with mostly felicitous terminal emulation,