CaT wrote:

> > > getty's generally set the the terminal driver to raw mode, and handle
> > > backspace etc themselves. You can check whether this is the case using 
> > > e.g.
> > > 
> > >   stty -a < /dev/tty0
> > > 
> > > If the output includes `-icanon' (as opposed to `icanon'), then the
> > > terminal driver is in raw mode, and stty won't affect backspace.
> 
> Presumably doing this as root from the shell is what's supposed to be done.
> 
> If so then it's just as I suspected. mingetty DOESN'T put it in raw mode.
> The source code says the same thing.

In that case, you could try replacing mingetty with a script, which
performs a `stty erase ^H' before invoking mingetty. However, mingetty
might override this (one of the functions of a getty is to put the
terminal driver into a `known good' state).

> > > getty_ps seems to cope OK with this; both ^H and \177 act as
> > > backspace.
> > 
> > Correction. agetty uses both ^H and \177; getty_ps only uses ^H.
> 
> Sounds like I may need to use another getty... Tho I kinda like the
> simplicity of run/mingetty.
> 
> > > For other getty programs, you may need to specify a command-line
> > > switch or a configuration file option, or even recompile them.
> 
> No command line or compile time opt exist. Still finding a recent
> version of mingetty in tarball format is a bitch. :/ Rungetty is
> similar tho.

Hmm. getty_ps uses /etc/gettydefs, which allows you to set the
terminal driver parameters (although those which relate to
canonical-mode processing won't work, as it uses raw mode).

If there aren't any command-line option, the simplest solution is
probably to modify the source code. I'm guessing that it will be
setting the erase character explicitly; search for `tcsetattr' and/or
`VERASE'.

-- 
Glynn Clements <[EMAIL PROTECTED]>

Reply via email to