From nobody Fri Nov 18 21:55:18 2022 X-Original-To: freebsd-hackers@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4NDVvh64lDz4hRGK for ; Fri, 18 Nov 2022 21:55:28 +0000 (UTC) (envelope-from steffen@sdaoden.eu) Received: from sdaoden.eu (sdaoden.eu [217.144.132.164]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 4NDVvh0Q4jz41BN; Fri, 18 Nov 2022 21:55:28 +0000 (UTC) (envelope-from steffen@sdaoden.eu) Authentication-Results: mx1.freebsd.org; none Received: from kent.sdaoden.eu (kent.sdaoden.eu [192.0.2.2]) by sdaoden.eu (Postfix) with ESMTPS id 021A216059; Fri, 18 Nov 2022 22:55:19 +0100 (CET) Received: by kent.sdaoden.eu (Postfix, from userid 1000) id D73E8ACBD2; Fri, 18 Nov 2022 22:55:18 +0100 (CET) Date: Fri, 18 Nov 2022 22:55:18 +0100 Author: Steffen Nurpmeso From: Steffen Nurpmeso To: "Bjoern A. Zeeb" Cc: freebsd-hackers@Freebsd.org Subject: Re: After ogin/assword characters typed are munched away until prompt? Message-ID: <20221118215518.XKaZf%steffen@sdaoden.eu> In-Reply-To: <91827rpq-6o4r-os1-61r1-ppo7son174rs@mnoonqbm.arg> References: <91827rpq-6o4r-os1-61r1-ppo7son174rs@mnoonqbm.arg> User-Agent: s-nail v14.9.24-347-gca602905a7 OpenPGP: id=EE19E1C1F2F7054F8D3954D8308964B51883A0DD; url=https://ftp.sdaoden.eu/steffen.asc; preference=signencrypt BlahBlahBlah: Any stupid boy can crush a beetle. But all the professors in the world can make no bugs. X-Rspamd-Queue-Id: 4NDVvh0Q4jz41BN X-Spamd-Bar: ---- X-Spamd-Result: default: False [-4.00 / 15.00]; REPLY(-4.00)[]; ASN(0.00)[asn:15987, ipnet:217.144.128.0/20, country:DE] X-Rspamd-Pre-Result: action=no action; module=replies; Message is reply to one we originated X-ThisMailContainsUnwantedMimeParts: N List-Id: Technical discussions relating to FreeBSD List-Archive: https://lists.freebsd.org/archives/freebsd-hackers List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-hackers@freebsd.org Bjoern A. Zeeb wrote in <91827rpq-6o4r-os1-61r1-ppo7son174rs@mnoonqbm.arg>: |Hi, | |it's been bothering for ages just never wrote the email and I find it |lately when using serial consoles (bhyve nmdm or physical often over USB) |a lot. | |In the old days you would enter username and password and keep typing |your first command and it would work. | |These days everything I type after password before I get my |prompt (rough estimate) while motd is scrolling .. is lost. | |I often find myself with half a command name "not found". | |Where are those characters lost to (or thrown away) that are typed in? They are likely discarded in a mode-switch drain? I once had an user report which, granted, is userspace, fix was + /* As a special case, simulate EOF via EOT (which can happen + * via type-ahead as when typing "yes\n^@" during sleep of + * $ sleep 5; mail -s byjove $LOGNAME */ + if(*cbufp == '\0' && (n_psonce & n_PSO_INTERACTIVE) && + !(n_pstate & n_PS_ROBOT)) + *cbuf = '\x04'; |Anyone any ideas? Other than that not. --steffen | |Der Kragenbaer, The moon bear, |der holt sich munter he cheerfully and one by one |einen nach dem anderen runter wa.ks himself off |(By Robert Gernhardt)