Adjust rows and cols of /dev/tty to match the size of attached terminal (emulator)
Go to file
Nedko Arnaudov b5d8923d3c Add a README.adoc file 2023-08-17 03:30:16 +03:00
wafautooptions@87a720d8ad waf build system for termsize 2023-08-17 03:07:29 +03:00
waftoolchainflags@e6add7a50d waf build system for termsize 2023-08-17 03:07:29 +03:00
.gitignore Add a .gitignore file 2023-08-17 03:12:08 +03:00
.gitmodules waf build system for termsize 2023-08-17 03:07:29 +03:00
Makefile Add a README.adoc file 2023-08-17 03:30:16 +03:00
README.adoc Add a README.adoc file 2023-08-17 03:30:16 +03:00
termsize.c termsize.c: Check return values of write() and read() calls 2023-08-17 03:07:06 +03:00
waf waf build system for termsize 2023-08-17 03:07:29 +03:00
wscript waf build system for termsize 2023-08-17 03:07:29 +03:00

README.adoc

termsize is a simple program to adjust number of cols and rows associated with controlling terminal /dev/tty so to match the actual size of attached terminal (emulator window).

Typical/intended use is when attaching over UART/RS232 to a remote computer that initially has default number cols and rows (often 80x25). Running the program on the remote computer adjusts the number of cols and rows, for its local tty device, to current number of cols and rows.