Make the default VERASE key the <-- key and remove root's
`stty's. 'nuff said. Inventor: joerg@FreeBSD.org Reviewer: sos@FreeBSD.org
This commit is contained in:
parent
207189b145
commit
896b4b35e0
@ -15,6 +15,4 @@ setenv MANPATH "${MANPATH}:/usr/local/interviews/man"
|
||||
# A righteous umask
|
||||
umask 22
|
||||
|
||||
stty crt erase ^h
|
||||
|
||||
[ -x /usr/games/fortune ] && /usr/games/fortune
|
||||
|
@ -1,8 +1,6 @@
|
||||
# $Id: dot.profile,v 1.12 1997/02/23 09:21:14 peter Exp $
|
||||
# $Id: dot.profile,v 1.13 1997/03/06 22:24:04 joerg Exp $
|
||||
#
|
||||
PATH=/sbin:/usr/sbin:/bin:/usr/bin:/usr/local/bin
|
||||
echo 'erase ^H, kill ^U, intr ^C'
|
||||
stty crt erase ^H kill ^U intr ^C
|
||||
export PATH
|
||||
HOME=/root
|
||||
export HOME
|
||||
|
@ -25,7 +25,7 @@
|
||||
* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
|
||||
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
*
|
||||
* $Id: syscons.c,v 1.206 1997/03/24 11:24:07 bde Exp $
|
||||
* $Id: syscons.c,v 1.207 1997/03/28 10:11:24 yokota Exp $
|
||||
*/
|
||||
|
||||
#include "sc.h"
|
||||
@ -553,6 +553,9 @@ scopen(dev_t dev, int flag, int mode, struct proc *p)
|
||||
tp->t_dev = dev;
|
||||
if (!(tp->t_state & TS_ISOPEN)) {
|
||||
ttychars(tp);
|
||||
/* Use the current setting of the <-- key as default VERASE. */
|
||||
/* If the Delete key is preferable, an stty is necessary */
|
||||
tp->t_cc[VERASE] = key_map.key[0x0e].map[0];
|
||||
tp->t_iflag = TTYDEF_IFLAG;
|
||||
tp->t_oflag = TTYDEF_OFLAG;
|
||||
tp->t_cflag = TTYDEF_CFLAG;
|
||||
|
@ -25,7 +25,7 @@
|
||||
* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
|
||||
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
*
|
||||
* $Id: syscons.c,v 1.206 1997/03/24 11:24:07 bde Exp $
|
||||
* $Id: syscons.c,v 1.207 1997/03/28 10:11:24 yokota Exp $
|
||||
*/
|
||||
|
||||
#include "sc.h"
|
||||
@ -553,6 +553,9 @@ scopen(dev_t dev, int flag, int mode, struct proc *p)
|
||||
tp->t_dev = dev;
|
||||
if (!(tp->t_state & TS_ISOPEN)) {
|
||||
ttychars(tp);
|
||||
/* Use the current setting of the <-- key as default VERASE. */
|
||||
/* If the Delete key is preferable, an stty is necessary */
|
||||
tp->t_cc[VERASE] = key_map.key[0x0e].map[0];
|
||||
tp->t_iflag = TTYDEF_IFLAG;
|
||||
tp->t_oflag = TTYDEF_OFLAG;
|
||||
tp->t_cflag = TTYDEF_CFLAG;
|
||||
|
@ -25,7 +25,7 @@
|
||||
* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
|
||||
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
*
|
||||
* $Id: syscons.c,v 1.206 1997/03/24 11:24:07 bde Exp $
|
||||
* $Id: syscons.c,v 1.207 1997/03/28 10:11:24 yokota Exp $
|
||||
*/
|
||||
|
||||
#include "sc.h"
|
||||
@ -553,6 +553,9 @@ scopen(dev_t dev, int flag, int mode, struct proc *p)
|
||||
tp->t_dev = dev;
|
||||
if (!(tp->t_state & TS_ISOPEN)) {
|
||||
ttychars(tp);
|
||||
/* Use the current setting of the <-- key as default VERASE. */
|
||||
/* If the Delete key is preferable, an stty is necessary */
|
||||
tp->t_cc[VERASE] = key_map.key[0x0e].map[0];
|
||||
tp->t_iflag = TTYDEF_IFLAG;
|
||||
tp->t_oflag = TTYDEF_OFLAG;
|
||||
tp->t_cflag = TTYDEF_CFLAG;
|
||||
|
Loading…
Reference in New Issue
Block a user