From mint-bounce@lists.fishpool.fi Sat Aug 22 12:15:12 2009 Message-ID: <4A901431.3060500@freesbee.fr> Date: Sat, 22 Aug 2009 17:52:17 +0200 From: =?ISO-8859-1?Q?Vincent_Rivi=E8re?= User-Agent: Thunderbird 2.0.0.19 (Windows/20081209) MIME-Version: 1.0 To: MiNT Mailing List Subject: Re: [MiNT] TosWin console References: <002afd0c.019ad6d6334e@smtp.freeola.net> In-Reply-To: <002afd0c.019ad6d6334e@smtp.freeola.net> Content-Type: text/plain; charset=ISO-8859-1; format=flowed X-Antivirus: avast! (VPS 090821-0, 21/08/2009), Outbound message X-Antivirus-Status: Clean X-ecartis-version: Ecartis v1.0.0 Sender: mint-bounce@lists.fishpool.fi Errors-to: mint-bounce@lists.fishpool.fi X-original-sender: vincent.riviere@freesbee.fr Precedence: bulk List-help: List-unsubscribe: List-Id: X-List-ID: List-subscribe: List-owner: List-post: Content-Transfer-Encoding: 8bit X-MIME-Autoconverted: from quoted-printable to 8bit by mail.sparemint.org id n7MGF7Ov013700 Peter Slegg wrote: > bash-2.05a# stty onlcr > /dev/console > stty: standard input: unable to perform all requested operations > > TosWin 2.2 does the same too so I think we can rule that out. Sorry I didn't understood the problem was with /dev/console. The following command seems to fix the problems: stty -F /dev/console cooked It will display the same error message, but don't trust it, stty has actually made his job. For information, when "raw" is used instead of "cooked", it reverts to the "stairs" behaviour (and no error message is displayed). I'm not sure where the output of /dev/console should go, I remember having seen different results in different MiNT setups... The previous command worked for me, but I currently have a special version of FreeMiNT and stty, so I'm not sure it works everywhere. I looked at the source of stty, it uses and functions like tcsetattr() and friends... I'm absolutely not familiar with that stuff, but it appears there is a level of translation in the kernel at the tty level (of course these conversions does not occur in plain TOS). I believe the code related to that stuff is mostly correct (excepted the stty error message), but the defaults are probably wrong for the MiNT console since we experience stairs by default. -- Vincent Rivière