coop@METO.UMD.EDU (James N. Cooper) (06/09/88)
Scott Ferguson asks: Is there a way to get actual tab characters from the keyboard? And the answer is yes. As he suspected, you have to redefine a key. Here's the definition: es '`';al;s/`/@t/;ar It's kludgy at best. You insert a ` and then replace the ` with an @t. It's a tricky problem than it seems at first. Maybe someone else has discovered something more elegant. Jim Cooper coop@meto.umd.edu
shull@SCROLLS.WHARTON.UPENN.EDU (Christopher E. Shull) (06/09/88)
In Message-Id: <8806080112.AA24371@umix.cc.umich.edu>, Scott Ferguson (ferguson@bknlvms.bitnet) asks for suggestions on how to get actual tab characters from the keyboard, in a sendmail.cf editting exercise. There are several ways to do this, each of which has its pros and cons :-) 1) Use vi to edit the file. The drawbacks are obvious to everyone except those folks that like vi. 2) Redefine a key to issue the DM command 'er 09'. This means issue a ^I. Drawback is that it only works in raw mode -- and NOT in DM editor windows and input pads. 3) Use emacs. Drawback is that most folks don't have emacs. 4) Use DM editor to copy a tab character from a file someplace, and paste it where ever you need it. This works all over the DM so far as I can tell. For example, in the substitute command. I wrote '<tab>', then issued to the DM Command: s/<tab>/ / and got ' '. Note that a real tab character appears above between both the // and the ''. I pasted it from another mail message. 5) Use the AEGIS chpat command. Type out <tab> where ever you want a tab, then use the following AEGIS command: $ chpat temp -p "=TAB=" "@t" >temp.out Clearly this is a pain. Best of luck! -Chris Christopher E. Shull Decision Sciences Department The Wharton School shull@wharton.upenn.edu University of Pennsylvania shull@scrolls.wharton.upenn.edu Philadelphia, PA 19104-6366 215/898-5930 --------------------------------------------------------------------------- "Damn the torpedoes! Full speed ahead!" Admiral Farragut, USN, 1801-1870 ---------------------------------------------------------------------------
conliffe@caen.engin.umich.edu (Darryl C. Conliffe) (06/10/88)
Scott, try SHIFT-TAB. Real TAB (not Coke). Sorry. Couldn't resist .. -- ___________________ Darryl C. Conliffe conliffe@caen.engin.umich.edu (313) 721-6069 -------------------
mkhaw@teknowledge-vaxc.ARPA (Mike Khaw) (06/10/88)
> Scott, try SHIFT-TAB. Real TAB (not Coke). Sorry. Couldn't resist ..
Or hack the keyboard mapping file in /sys/dm. Sorry, it's been a while
so I don't remember the hieroglyphics or the name of the file (which
depends on whether you're running Aegis, 4.2bsd, or sysV -- it might even
have changed completely at SR10).
Mike Khaw
--
internet: mkhaw@teknowledge.arpa
uucp: {uunet|sun|ucbvax|decwrl|uw-beaver}!mkhaw%teknowledge-vaxc.arpa
hardcopy: Teknowledge Inc, 1850 Embarcadero Rd, POB 10119, Palo Alto, CA 94303
shull@SCROLLS.WHARTON.UPENN.EDU (Christopher E. Shull) (06/10/88)
Kudos to Jim Cooper )coop@meto.umd.edu) for Message-Id: <8806091351.AA00104@meto.UMD.EDU> identifying a much better (albeit kludgy) way to get actual tab characters from the keyboard: > ... As he suspected, you have to redefine a key. >Here's the definition: > >es '`';al;s/`/@t/;ar > >It's kludgy at best. You insert a ` and then replace the ` >with an @t. It's a tricky problem than it seems at first. >Maybe someone else has discovered something more elegant. > >Jim Cooper Don't forget to double/nest the @-sign quotations in the KD command: kd ^F4 es '`';al;s/`/@@@t/;ar; ke If you don't do this, the command just inserts 't'. -Chris Christopher E. Shull Decision Sciences Department The Wharton School shull@wharton.upenn.edu University of Pennsylvania shull@scrolls.wharton.upenn.edu Philadelphia, PA 19104-6366 215/898-5930 --------------------------------------------------------------------------- "Damn the torpedoes! Full speed ahead!" Admiral Farragut, USN, 1801-1870 ---------------------------------------------------------------------------
coop@METO.UMD.EDU (James N. Cooper) (06/11/88)
You are correct. I just cut the definition from the kd command and pasted it in my letter, forgetting that you need extra @'s. Jim Cooper coop@meto.umd.edu
paul@DELRIO.CC.UMICH.EDU ('da Kingfish) (06/11/88)
>In Message-Id: <8806080112.AA24371@umix.cc.umich.edu>, Scott Ferguson >(ferguson@bknlvms.bitnet) asks for suggestions on how to get actual tab >characters from the keyboard, in a sendmail.cf editting exercise. >There are several ways to do this, each of which has its pros and cons :-) > 2) Redefine a key to issue the DM command 'er 09'. This means > issue a ^I. Drawback is that it only works in raw mode -- > and NOT in DM editor windows and input pads. Use shifted tab for spacing the cursor over. Put this in your favorite startup file. kd stab th ke kd tab es' ';al;so/ /@@t/ar ke; # insert REAL tab --paul
hutching@utah-cs.UUCP (Brad Hutchings) (06/11/88)
Hi, I use the following keydef for my tab key. es' ';al;so/ /@t/;ar; Regards, Brad L. Hutchings
skuhn@mntgfx.mentor.com (Scott Kuhn) (06/11/88)
From article <8806080112.AA24371@umix.cc.umich.edu>, by FERGUSON@BKNLVMS.BITNET: > > Is there a way to get actual tab characters from the keyboard? > > Scott Ferguson > ferguson@bknlvms.bitnet redine a key at the command: prompt as follows (this is for the swift tab key): kd tabs es ' ';al;so/ /@t/ar ke -- Scott Kuhn Mentor Graphics Corporation (503) 626-1478 8500 SW Creekside Pl.; Bldg 1 My opinions... NOT Mentor Graphics. Beaverton, OR 97005-7191 ...!{sequent,tessi,attunix,apollo}!mntgfx!skuhn OR skuhn@pdx.MENTOR.COM
hill@mfci.UUCP (Shannon Hill) (06/11/88)
In article <8806101224.AA00076@scrolls.wharton.upenn.edu> shull@SCROLLS.WHARTON.UPENN.EDU (Christopher E. Shull) writes: |Don't forget to double/nest the @-sign quotations in the KD command: | | kd ^F4 es '`';al;s/`/@@@t/;ar; ke | |If you don't do this, the command just inserts 't'. | |-Chris | |Christopher E. Shull |Decision Sciences Department |The Wharton School shull@wharton.upenn.edu |University of Pennsylvania shull@scrolls.wharton.upenn.edu |Philadelphia, PA 19104-6366 215/898-5930 |--------------------------------------------------------------------------- |"Damn the torpedoes! Full speed ahead!" Admiral Farragut, USN, 1801-1870 |--------------------------------------------------------------------------- Additionally, I'd use "so/" instead of "s/", do that all the subsequent ` characters on the line don't get changed to tabs! kd ^F4 es '`';al;so/`/@@@t/;ar; ke Shannon Hill (hill@multiflow.com)
bts@sas.UUCP (Brian T. Schellenberger) (06/12/88)
kd ^tab es ' ';al;so/ / @@t/;ar;= ke
This cannot accidentally replace an unwanted character.
(I thought it was Apollo-supplied as part of the Unix keydefs?)
Also, John Toebes here recently discovered a wonderful delete-to-end-of-line:
kd f7 cms; xc delbuf; s/?*$// ke
This doesn't jump the screen when the line extends past the right edge of
the screen.
--
--Brian, _______________________ __________________________
the man from |Brian T. Schellenberger| ...!mcnc!rti!sas!bts |
Babble-On |104 Willoughby Lane |work: (919) 467-8000 x7783|
|_C_a_r_y_,_ _N_C_ _ _ _2_7_5_1_3_ _ _ _ _ _ _ |_h_o_m_e_:_ _(_9_1_9_)_ _4_6_9_-_9_3_8_9_ _ _ _ _ _ |