![]() I am sure that are lots of other techniques like that using ANSI control sequences. This should retain all the logs in scroll buffer since I am not overwriting them. ![]() Here, I am outputing a log every second at (1, 5) after scrolling the text upwards. Here’s a Scala code to display “hello” at (2, 4): *Cursor moves to coordinate within the viewport, where is the column of the line 11.1 Control Sequences - Screen User Manual.Console Virtual Terminal Sequences - Windows Console.Good reference for the VT100 control sequences can be found at: Modern terminal apps are sometimes called terminal emulators because they emulate the behavior of terminals such as VT100. In other words, programs can output a character sequence to move the cursor around and display text at an aribitrary location. VT100 supports 80x24 characters, and it was one of the first terminals to adopt ANSI X3.64 standard for cursor control. The classic terminal is VT100 that was introduced in 1978 by DEC. The users connected to a minicomputer using a physical terminal that looks like a monochrome screen and a keyboard. These were of a size of a refrigerator, purchased by “computer labs”, and ran operating systems like RT-11 and the original UNIX system that supported up many simultaneous users (12 ~ hundreds?). In the middle of 1960s, companies started selling minicomputers such as PDP-8, and later PDP-11 and VAX-11. To display some text at an arbitrary location on a termial screen, we first need to understand what a terminal actually is. Here are some info, enough parts to be able to write Tetris. I’ve been thinking about rich console applications, the kind of apps that can display things graphically, not just appending lines at the end.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |