Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
openSUSE:Leap:42.1:Staging:A
xterm
Backarrow2BackSpace
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File Backarrow2BackSpace of Package xterm
#!/bin/bash # # Backarrow2BackSpace: Switch Backarrow key to BackSpace # # Copyright (c) 1998 S.u.S.E. GmbH Fuerth, Germany. # please send bugfixes or comments to feedback@suse.de. # # Author: Werner Fink, <werner@suse.de> # # Some checks # case "$TERM" in xterm*) ;; *) echo "${0##*/}: TERM=$TERM is not for an xterm!" 1>&2 exit 1 esac tty -s || { echo "{0##*/}: Not a tty!" 1>&2 ; exit 1; } # # Restore default X key mapping for standard PC keyboards # case "$(uname -s)" in Linux) xmodmap -e 'keycode 22 = BackSpace BackSpace 3270_DeleteWord' xmodmap -e 'keycode 107 = Delete' ;; *) # Don't know esac # # Switch to Ctrl-H (ASCII BackSpace) for Backarrow key # echo -en '\033[?67h' > /dev/tty # # Change terminal settings accordingly # stty erase '^H' < /dev/tty exit 0
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor