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

[MiNT] stairs reloaded



I knew there is something!

Due to the stair-patch recently applied, the transfer across a serial line is now broken.

Instead of a \n-character to be sent it transmits \r\n.
This happened to me also when I tried to fix the stairs-effect sometime ago.

I've now made a quick-fix that seems to do  the job for me:

In tty.c:

  /*
   * "mode" can now be reduced to just T_CRMODE or not
   */
  //mode &= ~T_CRMOD;
  mode = mode & (T_CRMOD|T_ECHOCTL);


Note the usage of mode & T_CRMOD is the opposite to the previous version.

In my serial-line-program:

  tattr->c_lflag &= ~(ECHO|ECHONL|ECHOCTL|ICANON|ISIG|IEXTEN);


The ECHOCTL is new (see tty.c above). But I'm not 100% happy with this because ECHOCTL means "echo ctl chars as ^x", which is not related to crnl-translation.

I'm using this version now, and there are no stairs, and serial transfer is ok too.

But the current version should not go into the 1.18-release.

Maybe someone has a better solution?

--
Helmut Karlowski