OS - Terminal (Emulator) (Term|tty)

Card Puncher Data Processing

About

A terminal is a media using a fixed-pitch character grid such as:

  • teletypes,
  • portable devices with limited display capabilities
  • bank terminal

The term terminal cover all terminals:

A terminal introduces the context of output where to draw and/or write data.

This article talks about text terminal.

Features

Example:

  • Native Windows user interface with a simple options dialog.
  • Easy copy & paste.
  • Drag & drop of text, files and folders.
  • Ability to open files and URLs with Ctrl+click.
  • Comprehensive character encoding support, including UTF-8.
  • Wide character display and Windows IME support.
  • Window transparency, including glass effect on Vista and 7.
  • 256 colours.
  • Fullscreen mode.
  • Options stored in a text file. No registry entries.
  • Small program size and quick scrolling.

Terminal Emulator

A terminal emulator, terminal application, term, or tty (teletypewriter), is a program that emulates a terminal.

It refers generally to a wrapper program which runs a shell.

They are a property of the terminal application.

All software terminal are terminal emulator because they are not implemented via a hardware but via software.

Xterm

Xterm (the default terminal emulator of Putty and MinTty)

cmd.exe

cmd.exe is the default console window of Windows.

It:

  • works well with Win32 console programs such as interactive Python or node.js,
  • but:
    • has a very limited default scroll-back,
    • needs to be configured to use a Unicode font in order to display non-ASCII characters correctly,
    • prior to Windows 10 its window was not freely resizable and it only allowed rectangular text selections.

Virtual Terminal (VT)

Virtual Terminal (VT) series (VTxxx)

Many terminal emulators have been developed for terminals such as:

Level:

  • Lower level: DEC VT102/VT220
  • Higher-level terminals such as VT320/VT420/VT520

Other

wiki/List_of_terminal_emulators

Wrapper

Putty

Putty uses Xterm

MinTTY

mintty uses Xterm.

Mintty is the terminal of:

Text

The role of a text terminal (emulate process or not) is to interact with the user:

  • to feed text input to the master pseudo-device for use by the shell (which is connected to the slave pseudo-device)
  • and to read text output from the master pseudo-device and show it to the user.

The terminal emulator must also handle terminal control commands, e.g., for resizing the screen.

A terminal window allows the user access to a text terminal and all its applications such as:

When user starts terminal, it runs generally by default a OS Shell or a console application (cli).

Locality

The terminal may be running:

  • either on the same machine: local
  • or on a different one remote

Local

A local terminal is also known as a console window.

On Unix-like operating systems, it is common to have one or more terminal windows connected to the local machine.

Remote

Remote terminals connect to remote hosts to run applications remotely.

The terminal may run on a remote machine via:

Escape sequences

Terminals usually support a sequence of characters called an escape sequences for controlling color, cursor position, etc.

Color

See Terminal - Color

Terminal emulator

Local login

Remote Login

Remote login handlers such as ssh and telnet servers play the same role but communicate with a remote user instead of a local one.

With session context

Screen and Tmux are used to add a session context to a pseudo terminal. For example, it provides terminal persistence allowing to disconnect from one computer and connect later on from another computer on the net.

the Linux console behaves almost like a vt100 terminal

Pseudo-Terminal

If not, screen implements a superset of vt100 and vt100 is universal

pseudo-terminal normal login session

if the current session has no tty

Multiplexer (Multiplexing)

A multiplexer (or multiplexing):

  • runs in a terminal
  • allows multiple other terminal programs to be run inside it.
  • allow each terminal to be accessed from the single terminal where it is running

They let you:

  • switch between several programs in one terminal,
  • detach them, while they are running in the background,
  • and reattach them to a different terminal.

List:

Note that terminal/editor may have windows support:

Tools

Draw plot in the terminal

https://github.com/red-data-tools/YouPlot

FAQ

What is the TERM environment variable?

The environment variable TERM 1) tells applications the name of a terminal description to read from the terminfo(5) database 2)

The value of TERM tells an application program what terminal you are using.

Each description consists of a number of named capabilities which tell applications what to send to control the terminal.

For example, the cup capability contains the escape sequence used to move the cursor up.

It is important that TERM points to the correct description for the terminal an application is running in - if it doesn't, applications may misbehave.

Example:

echo $TERM
  • tmux-256: colorvalue for Tmux
  • xterm value for xterm

According to the SSH RFC 3), the TERM variable is set when initializing the SSH connection. This is set initially, regardless of AcceptEnv.

Documentation / Reference





Discover More
Bash Liste Des Attaques Ovh
Bash - (Builtin|Intern|System|Reserved|Shell) variable name

Reserved variable name are named that have a special meaning for the bash shell. PS1 defines the shell's command-line prompt. HOME defines the home directory for a user. PATH defines a list...
Bash Liste Des Attaques Ovh
Bash - (Shell) Job

Shell job. See If the terminal is destroyed (which can happen if it was a pty, like those created by xterm or ssh, and the controlling program is terminated, by closing the xterm or terminating the...
Bash Liste Des Attaques Ovh
Bash - Interactive Shell

An interactive shell is when bash is: started: without non-optionarguments without the -c option whose standard input and error are both connected to terminals (as determined by isatty(3)),...
Bash Liste Des Attaques Ovh
Bash - Read (Builtin Command) that capture a line

Read is a bash builtin command and read: by default one line or a number of characters (by option) from: the standard input, or from the file descriptor fd supplied as an argument to the...
Bash Liste Des Attaques Ovh
Bash Shell and (Unix|Linux) Utilities (XCU)

Bash is a POSIX compliant shell, known as the Bourne-Again. It means that this is scripting language used in a terminal based around The articles of this section are over: the Bash (Bourne-Again...
Cmder Bash Startup Task
Cmder (ConEmu based terminal)

cmder is based on ConEmu (console emulator) (ie Cmder comes with ConEmu as the console emulator. Download Unzip below C Create CMDER_ROOT Start Cmder and gives the user config directory...
Card Puncher Data Processing
Command Line (Interpreter|Interface)

A command line interpreter is a interpreter that executes commands at the console in a interactive way via the REPL paradigm in a script A command line interpreter is also known as: command line...
Card Puncher Data Processing
How to run a docker image with example to create a container?

The run command creates: a container from an image running the docker host and calls the entrypoint script with the cmd values as arguments start To generate this message, Docker took...
Bash Liste Des Attaques Ovh
Linux - nohup (No Hangup)

nohup is a POSIX command to ignore the HUP (hangup) signal, enabling the command to keep running after the user who issues the command has logged out. nohup is most often used to run script or command...
Card Puncher Data Processing
Mintty

MinTTY is a terminal. It's the default terminal of MSYS2. It is a terminal emulator used by: Cygwin or Git Bash In Cygwin, it is installed as the default terminal by Cygwin's setup.exe. ...



Share this page:
Follow us:
Task Runner