Changing Ctrl-C
Bill Campbell
bill at celestial.com
Fri Jan 19 12:00:51 PST 2007
On Fri, Jan 19, 2007, Jay R. Ashworth wrote:
>On Fri, Jan 19, 2007 at 09:20:38AM -0600, Chris Rendall wrote:
>> I'm working on converting our filePro system to run a SUSE LINUX
>> Enterprise. With the Linux version of filePro I have to press Ctrl-C to
>> back out of something instead of using the Delete key. Is there a way
>> to make the Delete key work like it does in UNIX? Or is there a way to
>> disable the Delete key so it doesn't put odd characters on the screen
>> when it's pressed?
>
>You need to put
>
>stty intr \^?
>
>somewhere in your /etc/profile chain (usually /etc/profile.local), and
>if you want the console to work properly, there are two files you have
>to change for that.
>
>One of them is in /usr/lib/kbd (unless they've moved it); it's the
>mapping file that determined what ascii code the physical keys send
>when you hit them, and the other is the similar keymapping file for X;
>you need to modify both so the BackSpace key sends ^H instead of DEL.
I would strongly recommend getting used to ctrl-C as it's
standard on pretty much any operating system other than SCO (and
can become standard on SCO as will by setting it the the user's
.profile or the system wide profile. I have this in all my
startup scripts:
stty intr '^C' erase '^H', and have a $HOME/XTerm file (attached)
that gets the xterm to send ctrl-h from the backspace key. This
XTerm file also changes the cursor color to red so that
characters in highlighted (reverse video) fields can be read.
Your fingers will get used to ctrl-C, if only because that's what
one uses in the command line to interrupt processes.
Bill
--
INTERNET: bill at Celestial.COM Bill Campbell; Celestial Software LLC
URL: http://www.celestial.com/ PO Box 820; 6641 E. Mercer Way
FAX: (206) 232-9186 Mercer Island, WA 98040-0820; (206) 236-1676
``It's not what you pay a man but what he costs you that counts.''
Will Rogers
-------------- next part --------------
!
!!
!! SAMPLE .Xdefaults / app-defaults RESOURCE SPECIFICATIONS FOR XTERM
!!
!
!
!
!!
!! set default tty mode.
!!
!
!XTerm*ttyModes: intr ^? erase ^H kill ^U
!
!
!
!!
!! modify mouse functionality so that "Shift <Btn1Down>" has the same
!! functionality as "<Btn2Down>".
!!
!! The Ctrl<Btn2Down> xterm window menu CANNOT be popped up using
!! Shift Ctrl<Btn1Down>
!!
!
!*VT100*translations: #override\
! Shift <Btn1Down>: insert-selection(PRIMARY, CUT_BUFFER0) \n\
! Button1 <Btn3Down>: insert-selection(PRIMARY, CUT_BUFFER0)
!
!*VT100*Scrollbar*translations: #override\
! Shift <Btn1Down>: StartScroll(Continuous) MoveThumb() NotifyThumb() \n\
! Shift <Btn1Motion>: MoveThumb() NotifyThumb() \n\
! Button1 <Btn3Down>: StartScroll(Continuous) MoveThumb() NotifyThumb() \n\
! Button1 <Btn3Motion>: MoveThumb() NotifyThumb()
!
!
!
!!
!! menu resources
!!
!
!*SimpleMenu*BackingStore: NotUseful
!*SimpleMenu*menuLabel.font: -adobe-helvetica-bold-r-normal--*-120-*-*-*-*-iso*-*
!*SimpleMenu*menuLabel.vertSpace: 100
!*SimpleMenu*HorizontalMargins: 16
!*SimpleMenu*Sme.height: 16
!
!*SimpleMenu*Cursor: left_ptr
!*mainMenu.Label: Main Options
!*mainMenu*securekbd*Label: Secure Keyboard
!*mainMenu*allowsends*Label: Allow SendEvents
!*mainMenu*logging*Label: Log to File
!*mainMenu*redraw*Label: Redraw Window
!*mainMenu*suspend*Label: Send STOP Signal
!*mainMenu*continue*Label: Send CONT Signal
!*mainMenu*interrupt*Label: Send INT Signal
!*mainMenu*hangup*Label: Send HUP Signal
!*mainMenu*terminate*Label: Send TERM Signal
!*mainMenu*kill*Label: Send KILL Signal
!*mainMenu*quit*Label: Quit
!
!*vtMenu.Label: VT Options
!*vtMenu*scrollbar*Label: Enable Scrollbar
!*vtMenu*jumpscroll*Label: Enable Jump Scroll
!*vtMenu*reversevideo*Label: Enable Reverse Video
!*vtMenu*autowrap*Label: Enable Auto Wraparound
!*vtMenu*reversewrap*Label: Enable Reverse Wraparound
!*vtMenu*autolinefeed*Label: Enable Auto Linefeed
!*vtMenu*appcursor*Label: Enable Application Cursor Keys
!*vtMenu*appkeypad*Label: Enable Application Keypad
!*vtMenu*scrollkey*Label: Scroll to Bottom on Key Press
!*vtMenu*scrollttyoutput*Label: Scroll to Bottom on Tty Output
!*vtMenu*allow132*Label: Allow 80/132 Column Switching
!*vtMenu*cursesemul*Label: Enable Curses Emulation
!*vtMenu*visualbell*Label: Enable Visual Bell
!*vtMenu*marginbell*Label: Enable Margin Bell
!*vtMenu*altscreen*Label: Show Alternate Screen
!*vtMenu*softreset*Label: Do Soft Reset
!*vtMenu*hardreset*Label: Do Full Reset
!*vtMenu*tekshow*Label: Show Tek Window
!*vtMenu*tekmode*Label: Switch to Tek Mode
!*vtMenu*vthide*Label: Hide VT Window
!
!*fontMenu.Label: VT Fonts
!*fontMenu*fontdefault*Label: Default
!*fontMenu*font1*Label: 6x10
!*VT100*font1: 6x10
!*fontMenu*font2*Label: 6x12
!*VT100*font2: 6x12
!*fontMenu*font3*Label: 9x15
!*VT100*font3: 9x15
!*fontMenu*font4*Label: 10x20
!*VT100*font4: 10x20
!*fontMenu*fontescape*Label: Escape Sequence
!*fontMenu*fontsel*Label: Selection
!!fontescape and fontsel overridden by application
!
!*tekMenu.Label: Tek Options
!*tekMenu*tektextlarge*Label: Large Characters
!*tekMenu*tektext2*Label: #2 Size Characters
!*tekMenu*tektext3*Label: #3 Size Characters
!*tekMenu*tektextsmall*Label: Small Characters
!*tekMenu*tekpage*Label: PAGE
!*tekMenu*tekreset*Label: RESET
!*tekMenu*tekcopy*Label: COPY
!*tekMenu*vtshow*Label: Show VT Window
!*tekMenu*vtmode*Label: Switch to VT Mode
!*tekMenu*tekhide*Label: Hide Tek Window
!
*tek4014*fontLarge: 10x20
*tek4014*font2: 9x15
*tek4014*font3: 6x13
*tek4014*fontSmall: 6x10
XTerm*font: 10x20
XTerm*pointerShape: arrow
XTerm*termName: xterm
XTerm*blink: true
XTerm*loginShell: true
XTerm*scrollBar: true
! XTerm*cursorColor: SlateBlue
XTerm*cursorColor: red3
XTerm*backarrowKeyIsErase: false
!XTerm*termName: xterm-color
XTerm*background: Grey95
!XTerm*background: AntiqueWhite
!XTerm*background: seashell2
!XTerm*background: ivory2
More information about the Filepro-list
mailing list