[TUHS] run commands at login in v6 and stty

Will Senn will.senn at gmail.com
Sun Feb 27 06:39:57 AEST 2022


Login commands question:

I'm sure it's simple, but I can't figure it out. How do I get something 
to run at login in v6? Right now, I use ed to create a file 'setprof' 
that contains:

    stty erase[space][backspace][return]
    stty nl0 cr0

Then after logging in:

    sh setprof

It works, but, it is pretty clunky.

stty question:

So, I looked at stty.c and it looks like the following should work, if 
the terminal is sending ^H for backspace:

    #define BS0     0
    #define BS1     0100000

    modes[]
    ...
             "bs0",
             BS0, BS1,

             "bs1",
             BS1, BS1,


but:

    stty bs0
    or
    stty bs1

don't result in proper backspace handling..

but:

    stty[space][^h][return]


works...

Thoughts?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://minnie.tuhs.org/pipermail/tuhs/attachments/20220226/84a715b5/attachment.htm>


More information about the TUHS mailing list