{ "name": "minicom", "version": "2.11.1", "summary": "minicom: a serial terminal for consoles of routers, switches and boards over USB serial adapters, with file transfer", "category": "tool", "license": "GPL-2.0-or-later", "homepage": "https://salsa.debian.org/minicom-team/minicom", "source": { "url": "https://deb.debian.org/debian/pool/main/m/minicom/minicom_2.11.1.orig.tar.bz2", "sha256": "87cf0da91af0531357cd61b8e1906b907edd2c9ef82f9ae74c277e1893d0f98c" }, "watch": {"kind": "index", "url": "https://deb.debian.org/debian/pool/main/m/minicom/", "regex": "minicom_([0-9]+(?:\\.[0-9]+)+)\\.orig\\.tar\\.bz2"}, "deps": [ "ncurses" ], "env_packages": [], "static": true, "nss": true, "check": "t=$(mktemp -d) && bin/minicom --version | has 'minicom version 2.11.1' && printf '%s\\n' 'import os, pty, sys, time, fcntl' 'm, s = pty.openpty()' 'open(sys.argv[1], \"w\").write(os.ttyname(s))' 'fcntl.fcntl(m, fcntl.F_SETFL, os.O_NONBLOCK)' 'end = time.time() + 8' 'while time.time() < end:' ' os.write(m, b\"bvs-serial-banner\\r\\n\")' ' try:' ' os.read(m, 4096)' ' except OSError:' ' pass' ' time.sleep(0.3)' > \"$t/bvs_serial.py\" && { python3 \"$t/bvs_serial.py\" \"$t/tty\" & echo $! > \"$t/pid\"; } && for i in $(seq 1 50); do [ -s \"$t/tty\" ] && break; sleep 0.1; done && HOME=$t LANG=C.UTF-8 tui_screen 3 bin/minicom -o -D \"$(cat \"$t/tty\")\" -b 115200 > \"$t/screen\" && has 'Welcome to minicom 2.11.1' < \"$t/screen\" && has 'bvs-serial-banner' < \"$t/screen\" && echo 'minicom 2.11.1: opened a pseudo-terminal as its serial port and drew what the other end sent'; r=$?; [ -f \"$t/pid\" ] && kill \"$(cat \"$t/pid\")\" 2>/dev/null; exit $r" }