[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [MiNT] [PATCH] Stairs effect on MiNT console



On 01/11/13 20:33, Vincent Rivière wrote:
On 11/01/2013 16:56, Vincent Rivière wrote:
First, I will add support for that in FreeMiNT.

After investigation, it appears that the ONLCR flag is used only by the user-mode tcsetattr(). Since XaAES directly hacks the kernel internal flags without using tcsetattr(), adding support for ONLCR is not strictly required. This could be added later, if stty support was useful for someone.

The solution proposed here is very simple.
First, when T_RAW and T_CRMOD are both specified, on output T_CRMOD takes precedence and enables the LF to CR+LF conversion.
Second, XaAES uses T_CRMOD in addition to T_RAW.

This works perfectly, and I can't imagine any bad side effect.
Please commit.

tty.patch
In tty_write(), T_CRMOD is honored even when combined to T_RAW. Contributed by Vincent Riviere.

stairs.patch
Avoid stairs effect on Console. Contributed by Vincent Riviere.

Would this be better to be restricted to the TOS domain, by keeping part of the original check ?

Alan.