From b5d8923d3c8e92dd6cf8e9955b387a3cea088290 Mon Sep 17 00:00:00 2001 From: Nedko Arnaudov Date: Thu, 17 Aug 2023 03:30:16 +0300 Subject: [PATCH] Add a README.adoc file --- Makefile | 3 +++ README.adoc | 9 +++++++++ 2 files changed, 12 insertions(+) create mode 100644 README.adoc diff --git a/Makefile b/Makefile index 5783134..f30f2e0 100644 --- a/Makefile +++ b/Makefile @@ -1,2 +1,5 @@ termsize: termsize.c cc -o termsize termsize.c + +README.html: + asciidoc -b html5 -a data-uri -a icons --theme ladi -o README.html README.adoc diff --git a/README.adoc b/README.adoc new file mode 100644 index 0000000..58d57b7 --- /dev/null +++ b/README.adoc @@ -0,0 +1,9 @@ += termsize = + +'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.