TTY tools

Stable: 26.11.2021 - 13:19 / Revision: 26.11.2021 - 13:18

I am here to prevent the first-page-empty bug!

Template:ArticleMainWriter Template:ArticleApprovedVersion


1 Article Purpose

This article aims at giving some first information useful to start with the Linux®TTY tools. These tools are useful for interacting with TTY terminals.

2 Introduction

These tools use TTY sysfs and character device directly (See TTY user space interface for further details).

3 Tools list

Please find below a list of useful TTY tools provided by Linux® community:

  • fuser [1] - to identify processes using files or sockets.
  • inputattach [2] (based on termios API) - to attach a serial line to an input-layer device.
    Inputattach attaches a serial line to an input-layer device via a line discipline. Exactly one of the available modes must be specified on the command line.
  • kermit [3] - transport and platform independent interactive and scriptable communications software.
    C-Kermit is a modem program, a Telnet client, an Rlogin client, an FTP client, an HTTP client, and on selected platforms, also an X.25 client. It can make its own secure internet connections using IETF-approved security methods including Kerberos IV, Kerberos V, SSL/TLS, and SRP and it can also make SSH connections through an external SSH client application. It can be the far-end file-transfer or client/server partner of a desktop Kermit client. It can also accept incoming dialed and network connections. It can even be installed as an internet service on its own standard TCP socket, 1649 [RFC2839, RFC2840].
  • ldattach [4] (based on termios API) - to attach a line discipline to a serial line.
    The ldattach daemon opens the specified device file (which should refer to a serial device) and attaches the line discipline ldisc to it for processing of the sent and/or received data. It then goes into the background keeping the device open so that the line discipline stays loaded. The line discipline ldisc may be specified either by name or by number. In order to detach the line discipline, kill the ldattach process. With no arguments, ldattach prints usage information.
  • minicom [5] - friendly serial communication program.
    Minicom is a communication program which somewhat resembles the shareware program TELIX but is free with source code and runs under most Unices. Features include dialing directory with auto-redial, support for UUCP-style lock files on serial devices, a separate script language interpreter, capture to file, multiple users with individual configurations, and more.
  • setserial [6] - To get/set Linux serial port information.
    Setserial is a program designed to set and/or report the configuration information associated with a serial port. This information includes the I/O port and the IRQ used by a particular serial port, and whether or not the break key should be interpreted as the Secure Attention Key, and so on.
  • stty [7] (based on termios API) - to change and print terminal line settings.
  • tty [8] - to print the file name of the terminal connected to standard input


Note: The descriptions above are provided by the manual pages of the tools.


4 Getting started

Examples of TTY tools usage are handled in the following articles :

5 References

IMPORTANT NOTICE – READ CAREFULLY
STMicroelectronics NV and its subsidiaries ("ST") reserve the right to make changes, corrections, enhancements, modifications, and improvements to ST products and/or to this document at any time without notice. Purchasers should obtain the latest relevant information on ST products before placing orders. ST products are sold pursuant to ST’s terms and conditions of sale in place at the time of order acknowledgment.

Purchasers are solely responsible for the choice, selection, and use of ST products and ST assumes no liability for application assistance or the design of purchasers’ products.

No license, express or implied, to any intellectual property right is granted by ST herein.

Resale of ST products with provisions different from the information set forth herein shall void any warranty granted by ST for such product.

ST and the ST logo are trademarks of ST. For additional information about ST trademarks, refer to www.st.com/trademarks. All other product or service names are the property of their respective owners.

Information in this document supersedes and replaces information previously supplied in any prior versions of this document.