No Next Item No Next Conference Can't Favor Can't Forget Item List Conference Home Entrance    Help
View Responses


Grex Info Item 11: bbsed - a simple editor for the novice user [linked]
Entered by davel on Fri Nov 27 03:12:08 UTC 1992:

If you're new to Unix systems, you may find vi and jove intimidating until
you've had a chance to play with them.  Until then, you may want to stick
with a simpleminded editor that's basically what you use to enter items.
It's called bbsed.  If you want to edit a file (including creating one),
from a Picospan (conference) prompt you would type

!bbsed filename

where "filename" is replaced by the name of the file you want to edit.
If this is a new file, you'll find yourself ready to enter text.  If it's
not, you'll get a prompt for an editor command.  To get help (such as it
is), enter a question mark (?) - a few more commands are available by
entering ampersand (&) - at the beginning of a line (all by itself).
You must do this at the editor command prompt; if you're entering text,
first enter a line consisting only of a period.

This is not a really powerful editor, & editing any big chunks of text
is (IMHO) more trouble than learning to use vi.  For editing a short
list of short lines (as a .cflist) it's just fine.
Use "." or ^D to end.

Here are the commands, as the help features give them to you.

Edit command (? for help): # means optional line number

c       - continue with next line
a       - abandon the text you've typed (or use "q")
s       - send text and quit (or use "w")
d #     - delete line #
i #     - insert before line #
e #     - edit line #
l #     - list from line # with numbers
p #     - print from line # without numbers

Type & for more commands

Edit command (? for help): More commands:

r       - read a UNIX file into buffer
u       - continue in upload mode
f #     - find a string starting at line #
!cmd    - execute UNIX command "cmd"

Commands and responses may be combined
   with ";". Example: e12;us;them;p

Be aware that the "edit" command (e) lets you replace a string in a given
line with another string, as the example shows.  Nothing more powerful.
But you can learn all the commands in about 3 minutes, unlike everything
else available.

19 responses total.



#1 of 19 by tsty on Fri Nov 27 05:28:13 1992:

I've seen this example before, it's available, as stated, anytime
you are in this editor, and I've had this question:
  
   In the combined command example, what is the function of the ;p
at the end. Of course the   ;   is a field separator, but what
isthe necessity for the   p   ?


#2 of 19 by davel on Fri Nov 27 12:05:40 1992:

It's *not* necessary.  They're showing you that you can stack up multiple
commands too.  In this case, it will now re-list the file with your changes
(I believe the line # defaults to 1) - see the "p" command notation.


#3 of 19 by tsty on Mon Nov 30 03:00:27 1992:

thtakthankxx


#4 of 19 by other on Tue Mar 8 16:32:21 1994:

bbsed problem.  Session follows, explanation after:
Ok: edit .cflist

Edit command (? for help): p
genx
iq
world
sexuality
info
kitchen
agora

Edit command (? for help): d1;y
Line 1:
 genx
Deleted

Edit command (? for help): i2
Use "." or ^D to end.
2:
genx
3:
coop
4:
^D
Edit command (? for help):
Edit command (? for help):
Edit command (? for help):
Edit command (? for help):
Edit command (? for help):
Edit command (? for help):
Edit command (? for help):
Edit command (? for help):
Edit command (? for help):
Edit command (? for help):
Edit command (? for help):
Edit command (? for help):
Edit command (? for help):
Edit command (? for help):
Edit command (? for help):

        When I did ^D to exit entry mode, I just got the edit prompt
        continually
reproducing itself as shown until I hit ^C 6 times or so.  What's up with that?
"p



#5 of 19 by omni on Tue Mar 8 21:07:39 1994:

 I believe that the w command writes the new file to disk, and exits the
editor. vi is a lot easier than that (oops)


#6 of 19 by other on Tue Mar 8 22:04:32 1994:

Jim, that wasn't the problem.  I was simply exiting the entry mode, not the
editor.  If you read the the instruction line:
        Use "." or ^D to end.
you see that what I did was nothing unusual or problematic.
        Any other ideas?


#7 of 19 by carson on Tue Mar 8 22:25:47 1994:

at the "Edit..." prompt, you need to type "s" to finish. The ^D only finishes
your input; it doesn't save your input to wherever it needs to go.
Hope that helps.


#8 of 19 by other on Tue Mar 8 22:28:03 1994:

        I'm pointing out an apparent problem with the editor, not asking
        how to use it!!!
        (Thanks anyway, carson)


#9 of 19 by carson on Tue Mar 8 22:45:42 1994:

hmm...

other, I've noticed that you can still reply to items. Have you had the 
problem since? Can you pass it off as a freak accident? Are you using
something other than bbsed to reply to conferences? what *were* you
typing at that "Edit..." prompt? :)


#10 of 19 by davel on Tue Mar 8 23:33:58 1994:

Hey, guys, stop jumping on him.  I don't have any idea what happened,
either, Eric.  I don't know off hand what happens if you do control-D
at the Edit command prompt; it might dump you out - but if it doesn't,
I'd suspect that you held your control-D down a bit too long and the
typematic came into play.

I just tried it, & that's what would happen - except that you should have
seen the ^D show up in that case.

*Was* this a once-only occurrence, or does it happen every time?


#11 of 19 by other on Wed Mar 9 04:56:51 1994:

It happened twice at the time that it was happening.  I used ^D to get from
the line number prompt to the "Edit..." prompt, but I didn't hold it down, I
just struck it as I strike any key.  I held the ctrl key, of course...
        I just tried it again without incident.


#12 of 19 by davel on Wed Mar 9 14:21:09 1994:

Then my guess is that somehow your keyboard is generating multiple
keystrokes of some kind - but it's a guess.

(I'm quite aware of this, having used a system with the typematic delay
set so low that this kind of thing happened on a regular basis.
Using more, one would pensively press the space bar (but releasing it) -
and twenty or thirty screensful would fly by before things calmed down.
But you should still have seen the ^D echoes if this were happening in
your case, I'd say.


#13 of 19 by other on Wed Mar 9 18:49:57 1994:

Actually I can guarantee that that is NOT th problem, because my key repeat cut
out about five days ago, and I don't know what happened with that either.
I have having to delete five words one letter at a time...!


#14 of 19 by scg on Thu Mar 10 05:17:12 1994:

I had a similar problem with my return key recently.  Just as I was getting
ready to replace the keyboard somebody suggested cleaning out the contacts
for the key.  They pulled the key off, dripped some rubbing alcohol onto the
key's contacts, and then put it back together after it dried.  I haven't had 
a problem with they key since.


#15 of 19 by other on Thu Mar 10 06:02:46 1994:

Oh, the hardware works fine.  I get all the keystrokes I want when I hit the
key, there's just no repeat when I hold them down.


#16 of 19 by popcorn on Sat Mar 12 02:31:57 1994:

This response has been erased.



#17 of 19 by scg on Sat Mar 12 04:50:42 1994:

My return key stuck when we first put it back on.  We took it apart and put
it back together again and it worked.


#18 of 19 by popcorn on Sat Mar 12 13:59:10 1994:

This response has been erased.



#19 of 19 by scg on Sun Mar 13 08:32:27 1994:

Oh.  Mine was less than two years old.

Response not possible - You must register and login before posting.

No Next Item No Next Conference Can't Favor Can't Forget Item List Conference Home Entrance    Help

- Backtalk version 1.3.30 - Copyright 1996-2006, Jan Wolter and Steve Weiss