Operating System - OpenVMS
cancel
Showing results for 
Search instead for 
Did you mean: 

Delete word and line to right of cursor

 
SandeepKumar
Occasional Visitor

Delete word and line to right of cursor

Hi,

 

Can you please let me know how to delete a word and line to the right of cursor position on the VMS prompt ($) and editor?

 

I know that to delete a word on the left of VMS prompt we use CTRL/J and for line either CTRL/U or CTRL/X, but looking for help to delete on right of the cursor.

 

Thanks in advance,

Sandeep Kumar

4 REPLIES 4
Steven Schweda
Honored Contributor

Re: Delete word and line to right of cursor

 
abrsvc
Respected Contributor

Re: Delete word and line to right of cursor

The $ prompt would indicate that you are at the command line interface(CLI) which is NOT an editor per se.  There are some line editing features built into the CLI, but it is not a true editor.  As you have found, there are a few keystrokes that can shorten some tasks (ctrl U for example erases the entire line from your cursor position to the beginning) that were added in the V4 timeframe IRRC.  Before that, your only option was to retype the entire line.  This is the long winded version of: No there is no key to do this as far as I know.

 

Dan

 

P.S.

 

FWIW:  THe sequence within EDT of Keyad-2 is the DEL-EOL (delete to End Of Line).  To delete a word, the keypad sequence would be Keypad - which is the DEL-W.

Steven Schweda
Honored Contributor

Re: Delete word and line to right of cursor

 
H.Becker
Honored Contributor

Re: Delete word and line to right of cursor

Not really an answer to your question, but ...

 

Start your "true editor per se" and check whether it can issue DCL commands. If that editor happens to be edit/tpu aka eve, then you can enter DCL commands at the "Command:" prompt: simply type DCL and then the DCL command.  The output of your DCL command (including the entered DCL command) will be shown in the DCL buffer. Actually, the command prompt shows one line of another buffer which can be shown with  the BUFFER COMMANDS command. You can do all the editing your editor allows in that buffer.  If you have the edt keypad enabled, you can use these keys to perform Del W, Del L, Top and Bottom. And you can teach the editor to remember whatever sequence of keystrokes you need as a single key. There are some drawbacks like the width of your terminal limiting the length of the command. (You can work around that as well, but that requires at least an additional homw-grown TPU procedure.) Yeah, it's all descrobed in edit/tpu's online HELP, more or less.