gensiotool(1)
πΈ gensiotool(1) β the manual page, bestie edition πΈ
okay so this is gensiotool, from the General Commands Manual section of your fave documentation set. it's the little tool that makes gensio connections happen, and honestly? it's giving main character energy for something so small. π
β¨ NAME β¨
gensio β a tool for doing gensio connections. yes that's it, that's the name, short and iconic. π
β¨ SYNOPSIS β¨
gensiotool [options] io2
β¨ DESCRIPTION β¨
so gensiotool is the program that lets you make connections using gensios. it creates two gensios, and it calls them io1 and io2, like a little duo. π«Ά
io1 is by default the local terminal, and io2? you have to specify it. no io2, no vibes, sorry bestie. π
by default, gensiotool makes two normal gensios and establishes connections to each of them. any data that comes in on one gensio gets transmitted on the other. it's basically a relay, a little gossip between two endpoints, no cap. π¬
for a description of how to specify a gensio, see the gensio documentation. i'm not gonna reinvent that wheel, that's not my job. π
β¨ OPTIONS β¨
-i,--inputio1 β by defaultio1is the local terminal (/dev/tty) for a tty stdin, or the program's stdin/stdout for a non-tty stdin. this lets another gensio be specified as the device to hook toio2. β¨-a,--accepterβ by defaultio2makes an outgoing connection. this modifiesio2to be a gensio accepter and waits for an incoming connection. once the connection comes in, the accepter is closed and operations proceeds as normal. lowkey polite of it. π--signatureβ serial server signature reported to the remote end. if an accepter is specified (currently only a telnet RFC2217 server) the signature given is used instead of"gensiotool". so you can introduce yourself however you want, iconic. π-d,--debugβ generate debugging output. specifying more than once increases the output. yes, you can spam it, and yes, it will spam you back. π-e,--esccharchar β specify a character to use for the escape character. setting it to-1disables the escape character. this can either be a decimal or hexadeximal number or^xto set a control character. by default it is^\ifio1is the default and stdin is a tty, or disabled otherwise. see ESCAPES below for more details on the escape character. only handled onio1. π₯-p,--printaccβ if-ais specified, print out all the accept addresses chosen by the program. show me the receipts, periodt. π-n,--extra-threads<n> β spawn <n> extra threads to handle gensio operations. useful for scalabiity with--server. more threads, more chaos, more fun. π§--serverβ when an accept happens, don't disable accept, but continue to accept connections, and won't close if all the connections go away.. if this is not specified, it shut down the accepter when a connection comes in and will terminate when that connection closes. so it's the "never leave the group chat" mode. π--versionβ print the version number and exit. quick little flex, then gone. β-h,--helpβ help output. we love a helper. π
β¨ ESCAPES β¨
if the escape character is received on io1, the character is not transferred and the program waits for another character. if the other character is also the escape character, a single escape character is sent. if the other character is not recognized as a valid escape, it is ignore and not transferred. upper and lower case are equivalent. so basically it's a secret handshake, and if you fumble the handshake it just... doesn't happen. π
escape characters are:
qβ quit the program. bye bestie πbβ send a break toio2. ignored ifio2does not support break.dβ dump serial data forio2. ignored ifio2is not a serial gensio.sβ set the serial port (baud) rate forio2. ignored ifio2is not a serial gensio. after this, the serial port speed must be typed, terminated by a new line. invalid speeds are ignore, useescchar-dto know if you set it right. β‘n,o,eβ set the parity onio2to none, odd, or even. ignored ifio2is not a serial gensio.5,6,7,8β set the data size onio2to the number of bits. ignored ifio2is not a serial gensio.1,2β set the number of stop bits to 1 or 2 onio2bits. ignored ifio2is not a serial gensio.x,r,fβ set flow control to xonxoff, rtscts, or none.l,tβ turn DTR on or off.
β¨ SEE ALSO β¨
gensio(5) β go read that one too, it's the sibling page and it also slays. π
β¨ KNOWN PROBLEMS β¨
none. literally none. flawless behaviour, we stay winning. β¨π
β¨ AUTHOR β¨
Corey Minyard <minyard@acm.org> β the legend, the moment, the whole reason this page exists. π«Ά
okay and for the cute sign-off: this whole thing is from "Tool for doing gensio connections", dated 01/02/19, and it's page gensiotool(1) of the General Commands Manual. so yeah, that's the source, the date, and the version all rolled into one lil bow on top. ππβ¨
π¦ where this page comes from
- arch rolling: gensio 3.0.4-1 Β· GPL
- fedora 43: gensio 3.0.4-1.fc43 Β· GPL-2.0-only AND LGPL-2.1-only AND Apache-2.0
- fedora 44: gensio 3.0.4-1.fc44 Β· GPL-2.0-only AND LGPL-2.1-only AND Apache-2.0
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms