Re: ed(1) text editor issue with Spanish accents

2017-12-04 Thread Martijn van Duren
Hello Alejandro,

ed works on both binary and ASCII text, which are all individual bytes.
Since ´ is an UTF-8 character, which comprises of the bytes C2 and B4,
ed thinks it should only delete a single byte which results in only C2.

Your terminal can't tell the meaning of just C2 which results, in this
particular case, in a question mark.

The reason the character disappears after the backspace is because the
presentation layer gets the instruction to clear the column prior to
the current position, so hence it appears deleted after the backspace.

Currently there's no UTF-8 support in our ed, and I don't see how this
can be done without endangering the binary editing capabilities.

martijn@

On 12/04/17 00:43, Alejandro G. Peregrina wrote:
> Hello,
> 
> I've noticed something unexpected when entering an accent character
> alone (´) and then deleting it in ed(1) in xterm(1). Instead of deleting
> it, it creates another character which is seen as an inverted
> exclamation (?) in the font 'misc-fixed'.
> 
>   How to reproduce:
> $ uname -a
> OpenBSD foo.my.domain 6.2 GENERIC.MP#1 amd64
> $ locale
> LANG=
> LC_COLLATE="C"
> LC_CTYPE=en_US.UTF-8
> LC_MONETARY="C"
> LC_NUMERIC="C"
> LC_TIME="C"
> LC_MESSAGES="C"
> LC_ALL=
> $ #Let's append the ´ character in ed(1)
> $ ed -p"> "
>> a
> ´
> 
>   Now let's delete with a backspace, return to create a newline and a dot
> to stop appending, and then print:
> 
> $ ed -p"> "
>> a
> 
> .
>> p
> (?)
> 
>   (The (?) is a simulation of the font character that misc-fixed shows to
> the terminal.)
> 
>   Whenever I use more(1) or less(1) to view it, it shows:
> 
> $ more test.txt
> 
> 
> 
> 
> I have to add that I tested this with urxvt and ed(1) prints an Â
> character, but more(1) and less(1) keep printing .
> 
> When not using X this can't be reproduced. This is reproducible with
> xterm(1) and urxvt(1) in cwm(1) and fvwm(1). I've tested this in Linux
> and FreeBSD and this behaviour is not reproducible.
> 
> Thank you,
> A
> 



ed(1) text editor issue with Spanish accents

2017-12-03 Thread Alejandro G. Peregrina
Hello,

I've noticed something unexpected when entering an accent character
alone (´) and then deleting it in ed(1) in xterm(1). Instead of deleting
it, it creates another character which is seen as an inverted
exclamation (?) in the font 'misc-fixed'.

How to reproduce:
$ uname -a
OpenBSD foo.my.domain 6.2 GENERIC.MP#1 amd64
$ locale
LANG=
LC_COLLATE="C"
LC_CTYPE=en_US.UTF-8
LC_MONETARY="C"
LC_NUMERIC="C"
LC_TIME="C"
LC_MESSAGES="C"
LC_ALL=
$ #Let's append the ´ character in ed(1)
$ ed -p"> "
> a
´

Now let's delete with a backspace, return to create a newline and a dot
to stop appending, and then print:

$ ed -p"> "
> a

.
> p
(?)

(The (?) is a simulation of the font character that misc-fixed shows to
the terminal.)

Whenever I use more(1) or less(1) to view it, it shows:

$ more test.txt




I have to add that I tested this with urxvt and ed(1) prints an Â
character, but more(1) and less(1) keep printing .

When not using X this can't be reproduced. This is reproducible with
xterm(1) and urxvt(1) in cwm(1) and fvwm(1). I've tested this in Linux
and FreeBSD and this behaviour is not reproducible.

Thank you,
A



Re: UTF-8 text editor

2006-07-11 Thread Matthieu Herrb

Mackan wrote:

Hi list!

Is there any UTF-8-aware text editor (for terminal use) available
for OpenBSD? Vi(m) and similar is out of question for me, I never
learned those.

I tried to compile latest nano from CVS, which support UTF-8, but
with no luck. I get configure errors saying that my curses don't
support unicode.

Using 3.9/i386 with GENERIC.

Suggestions anyone?


xemacs21-mule in ports does UTF-8 among others. I'm using it to edit 
X.Org source files which are using UTF-8 encoded comments in C sources.


I've this in my .xemacs/init.el to get proper recognition of UTF-8 
files, but I'm not sure if it's still needed or not:


;;;--
;;; UTF-8
(progn
  (require 'un-define)
  (set-coding-priority-list '(utf-8))
  (set-coding-category-system 'utf-8 'utf-8))

--
Matthieu Herrb



UTF-8 text editor

2006-07-10 Thread Mackan

Hi list!

Is there any UTF-8-aware text editor (for terminal use) available
for OpenBSD? Vi(m) and similar is out of question for me, I never
learned those.

I tried to compile latest nano from CVS, which support UTF-8, but
with no luck. I get configure errors saying that my curses don't
support unicode.

Using 3.9/i386 with GENERIC.

Suggestions anyone?

Thanks,

Mackan



Re: UTF-8 text editor

2006-07-10 Thread Han Boetes
Mackan wrote:
 Is there any UTF-8-aware text editor (for terminal use) available
 for OpenBSD?

qemacs from cvs works ok.

   -  Full  UTF8  support,  including  bidirectional  editing
   respecting the Unicode bidi algorithm.  Arabic  and  Indic
   scripts handling (in progress).

qemacs is an emacs-clone



# Han



Re: UTF-8 text editor

2006-07-10 Thread Spruell, Darren-Perot
From: [EMAIL PROTECTED] 
 Is there any UTF-8-aware text editor (for terminal use) available
 for OpenBSD? Vi(m) and similar is out of question for me, I never
 learned those.

As ubiquitous as vi is on Unix, it seems a shallow reason.

Really, it takes all of 15 minutes to pick up what you need for vi/vim.
Install a copy somewhere and spend a few minutes on vimtutor and you should
find it pretty straightforward.

DS



Re: UTF-8 text editor

2006-07-10 Thread Mackan

On 10 jul 2006, at 20.43, Spruell, Darren-Perot wrote:


From: [EMAIL PROTECTED]

Is there any UTF-8-aware text editor (for terminal use) available
for OpenBSD? Vi(m) and similar is out of question for me, I never
learned those.


As ubiquitous as vi is on Unix, it seems a shallow reason.

Really, it takes all of 15 minutes to pick up what you need for vi/ 
vim.
Install a copy somewhere and spend a few minutes on vimtutor and  
you should

find it pretty straightforward.

DS


You are probably right about that. We'll see.

I just upgraded my server OS from Debian/Linux to OpenBSD. But it  
seems

that in the case of Unicode-aware applications I made a big downgrade.

I really want I simple editor with unicode, for myself and my users.


Mackan



Re: UTF-8 text editor

2006-07-10 Thread Will H. Backman

Mackan wrote:

On 10 jul 2006, at 20.43, Spruell, Darren-Perot wrote:


From: [EMAIL PROTECTED]

Is there any UTF-8-aware text editor (for terminal use) available
for OpenBSD? Vi(m) and similar is out of question for me, I never
learned those.


As ubiquitous as vi is on Unix, it seems a shallow reason.

Really, it takes all of 15 minutes to pick up what you need for vi/vim.
Install a copy somewhere and spend a few minutes on vimtutor and you 
should

find it pretty straightforward.

DS


You are probably right about that. We'll see.

I just upgraded my server OS from Debian/Linux to OpenBSD. But it seems
that in the case of Unicode-aware applications I made a big downgrade.

I really want I simple editor with unicode, for myself and my users.


Mackan

What was lacking from Debian/Linux that made you decide to switch to 
OpenBSD?




Re: UTF-8 text editor

2006-07-10 Thread Joachim Schipper
On Mon, Jul 10, 2006 at 09:12:37PM +0200, Mackan wrote:
 On 10 jul 2006, at 20.43, Spruell, Darren-Perot wrote:
 From: [EMAIL PROTECTED]
 Is there any UTF-8-aware text editor (for terminal use) available
 for OpenBSD? Vi(m) and similar is out of question for me, I never
 learned those.
 
 As ubiquitous as vi is on Unix, it seems a shallow reason.
 
 Really, it takes all of 15 minutes to pick up what you need for vi/ 
 vim.
 Install a copy somewhere and spend a few minutes on vimtutor and  
 you should
 find it pretty straightforward.
 
 DS
 
 You are probably right about that. We'll see.
 
 I just upgraded my server OS from Debian/Linux to OpenBSD. But it
 seems that in the case of Unicode-aware applications I made a big
 downgrade.
 
 I really want I simple editor with unicode, for myself and my users.

As to Unicode, you are probably right. Which is not to say an
internationalized OpenBSD isn't possible, but it's probably less
built-in than in mainstream Linux distributions.

Of course, Unicode is evil, and I for one am pretty happy to limit
myself to straight ASCII for 99% of the text I type, and the latter 1%
is fairly evenly split between 'inconvenient, but no deal-breaker',
'LaTeX can produce accented characters without me needing to leave the
ASCII set' and 'well, this needs doing on a Wintel box anyway'[1].

Joachim

[1] For ease of understanding for the rest of the world, I use a
venerable Adobe Pagemaker for layout. I like LaTeX, but it's not the
easiest program to teach to people, and probably not the most convenient
for the more artsy layouts either.
(Sort of like HTML, now that I think about it, except that I'm free to
compile LaTeX on a non-sucky compiler and send someone the results,
instead of being forced to cater for each bug in all major
implementations... that, and it does formulas with something that can be
described as 'elegance'.)



Re: UTF-8 text editor

2006-07-10 Thread Mackan

On 10 jul 2006, at 21.54, Will H. Backman wrote:


Mackan wrote:


I just upgraded my server OS from Debian/Linux to OpenBSD. But  
it seems
that in the case of Unicode-aware applications I made a big  
downgrade.


I really want I simple editor with unicode, for myself and my users.


Mackan

What was lacking from Debian/Linux that made you decide to switch  
to OpenBSD?


Nothing at all.  Debian/Linux is a very functional and feature-rich OS.
But I like OpenBSD because of its clean design, and being a more  
UNIX'ish OS.
I decided to use it for my new server.  Everything currently running  
on the old
Debian box is now running on the new OpenBSD box.  And If I could  
find a working

utf-8 console editor everything would be perfect!

Perhaps upgrade was the wrong word to use.


Mackan



Re: UTF-8 text editor

2006-07-10 Thread Adam
Joachim Schipper [EMAIL PROTECTED] wrote:

 Of course, Unicode is evil, and I for one am pretty happy to limit
 myself to straight ASCII for 99% of the text I type

No, unicode is not evil.  Making ridiculous statements like that is evil.
The millions of people who's languages are written in characters not in
the ASCII charset should just be happy to limit themselves to ASCII too
right?

Adam



Re: UTF-8 text editor

2006-07-10 Thread Rico Secada
On Mon, 10 Jul 2006 20:27:42 +0200
Mackan [EMAIL PROTECTED] wrote:

 Hi list!
 
 Is there any UTF-8-aware text editor (for terminal use) available
 for OpenBSD? Vi(m) and similar is out of question for me, I never
 learned those.
 
 I tried to compile latest nano from CVS, which support UTF-8, but
 with no luck. I get configure errors saying that my curses don't
 support unicode.
 
 Using 3.9/i386 with GENERIC.
 
 Suggestions anyone?

I am using mcedit which is a part of Midnight Commander (mc). It is based upon 
cooledit which supports unicode. You can install it by using pkg_add mc or 
from ports.

I work a lot with DocBook in UTF8 and I normally use Quanta+ but occasionally I 
need to make a quick change from a terminal. I then use mcedit. I find mcedit 
extremely user friendly and very easy to use. It has a very nice drop down 
menu if you press F9, which for example gives you spelling check via ISpell. 

Best and kind regards,
Rico

 Thanks,
 
 Mackan



Re: UTF-8 text editor

2006-07-10 Thread Jason LaRivière
Joachim Schipper wrote:
 Of course, Unicode is evil,...
 
 [1] For ease of understanding for the rest of the world, I use a
 venerable Adobe Pagemaker for layout.

Erm, wrong on both counts. And for jeebus sake, think of the children
next time you boot up pagemaker. Trust me, anyone who takes your
pagemaker files hates your guts and wishes you would pony up for
InDesign.
-- 
jason



Re: UTF-8 text editor

2006-07-10 Thread Christian Weisgerber
Mackan [EMAIL PROTECTED] wrote:

 Is there any UTF-8-aware text editor (for terminal use) available
 for OpenBSD?

On the occasions where I've needed it, I've used ports/editors/vim
as an UTF-8 text entry widget.  I suspect it suffers severe
shortcomings regarding composing characters in exotic writing
systems, but it's good enough for flavors of Latin-Greek-Cyrillic.

 Vi(m) and similar is out of question for me, I never
 learned those.

The basics of vi(1) are not hard.

People could stand a bit more mental flexibility in that area.  Over
the years I've used Wordstar-style, UCSD-Pascal-style, Emacs-style,
vi-style, and a few other editors and I have failed to form strong
opinions about any of those styles.

 I tried to compile latest nano from CVS, which support UTF-8, but
 with no luck. I get configure errors saying that my curses don't
 support unicode.

Yes, that is going to be a problem.

In the past I've looked at yudit URL:http://www.yudit.org/, but
despite its claim to being intuitive I couldn't quite make sense
of it, so I never created a port.  (I'm aware that this might seem
ironic in the light of my remark above.)

-- 
Christian naddy Weisgerber  [EMAIL PROTECTED]



Text Editor

2005-09-12 Thread João Salvatti
Hi all.

I'd like to know if anyone can tell me a good text editor that runs under X
environment. I'd like to know a good one, since there is no OpenOffice port to
OpenBSD.

Thanks.

-- 
Joco Salvatti
Undergraduating in Computer Science
Federal University of Para - UFPA
web: http://salvatti.expert.com.br 
e-mail: [EMAIL PROTECTED]
Eu tinha uma vida antes de conhecer o computador



Re: Text Editor

2005-09-12 Thread Marius Van Deventer - Umzimkulu
If you mean a word processor, then you have KOffice and AbiWord to choose from. 
You should probably be most comfortable with those.


-Original Message-
From:   Joco Salvatti [mailto:[EMAIL PROTECTED]
Sent:   Mon 9/12/2005 3:49 PM
To: Misc OpenBSD
Cc: 
Subject:Text Editor

Hi all.

I'd like to know if anyone can tell me a good text editor that runs under X
environment. I'd like to know a good one, since there is no OpenOffice port to
OpenBSD.

Thanks.

-- 
Joco Salvatti
Undergraduating in Computer Science
Federal University of Para - UFPA
web: http://salvatti.expert.com.br 
e-mail: [EMAIL PROTECTED]
Eu tinha uma vida antes de conhecer o computador



Re: Text Editor

2005-09-12 Thread Antoine Jacoutot

Joco Salvatti wrote:

I'd like to know if anyone can tell me a good text editor that runs under X
environment. I'd like to know a good one, since there is no OpenOffice port to
OpenBSD.


Well, abiword isn't that bad.
If you're running kde, you might want to try kword from the koffice 
package...


Regards,

Antoine



Re: Text Editor

2005-09-12 Thread Jason Haag
 I'd like to know if anyone can tell me a good text editor 
 that runs under X

Try Paranoid Writer or XedPlus, they are both part of the
productivity/siag port/package.

-Jason 



Re: Text Editor

2005-09-12 Thread Adam PAPAI

Joco Salvatti wrote:

Hi all.

I'd like to know if anyone can tell me a good text editor that runs under X
environment. I'd like to know a good one, since there is no OpenOffice port to
OpenBSD.



gedit/kedit/kate and so on..

Or abiword for *.doc and rtf and so on.

Or my favourite: vi/vim/gvim ;)

--
Adam PAPAI
D i g i t a l Influence
Phone: +36 30 33-55-735
E-mail: [EMAIL PROTECTED]



Re: Text Editor

2005-09-12 Thread Andreas Bihlmaier
 I'd like to know if anyone can tell me a good text editor that runs under X
 environment. I'd like to know a good one, since there is no OpenOffice port to
 OpenBSD.
 
You mean a plain TEXT editor or a WYSIWYG kind of editor (~MS word) ?

If you refered to the first one I would suggest an xterm + vim or gvim.
I _don't_ want to start a flame war thus I would ALSO suggest [x]emacs

The other kind of editor:
abiword or if you got some hard drive space to waste try kword which is
included in koffice

All said apps exist as ports and packages.



Re: Text Editor

2005-09-12 Thread Mike Hernandez
You might  try gvim, or xemacs, or bluefish? 

Mike



Re: Text Editor

2005-09-12 Thread Jon Drews
On 9/12/05, Joco Salvatti [EMAIL PROTECTED] wrote:
 Hi all.
 
 I'd like to know if anyone can tell me a good text editor that runs under X
 environment. 

Ted 2.17  http://www.nllgg.nl/Ted/  an *.rtf editor has been tested
heavily on OpenBSD 3.5 and 3.6. Get the ted-2.17.src.tar.gz tarball.
You can install it as a local user.
To do that:
1) Unpack the tarball.
2) Make sure that you have openmotif installed (usr/ports/ x11/openmotif).
3) As a regular user do $ make
4) Then do  $ make private

Ted will create 4 directories: ~/Ted, ~/bin, ~/afm and ~/ind. 
Ted can export to *pdf using the script ~/Ted/rtf2pdf.sh and also save
*.rtf documents to *.html. In addition it can copy and paste images as
well as text.
Spell check is available in Spanish and Portuguese also.


-- 
Kind regards,
Jonathan



Re: Text Editor

2005-09-12 Thread Sebastiaan Indesteege
On Mon, Sep 12, 2005 at 10:49:16AM -0300, Joco Salvatti wrote:
 Hi all.
 
 I'd like to know if anyone can tell me a good text editor that runs under X
 environment. I'd like to know a good one, since there is no OpenOffice port to
 OpenBSD.

I've just tried out OpenOffice.org 2.0 beta, and it seems to be running
fine on my i386 -CURRENT system, under linux emulation.

As OO.org comes packaged as a number of rpm's these days, I just
unpacked them all with the help of rpm2cpio, and then ran the soffice
binary that's included in them.

But I haven't done much testing on it; I only use OO.org when I have to
be able to read files created by MS Office, which luckily doesn't happen
very often ;-)

Regards,

Sebastiaan



Re: Text Editor

2005-09-12 Thread Antoine Jacoutot
Selon Sebastiaan Indesteege [EMAIL PROTECTED]:
 I've just tried out OpenOffice.org 2.0 beta, and it seems to be running
 fine on my i386 -CURRENT system, under linux emulation.

Which is only available on i386 :(



Re: Text Editor

2005-09-12 Thread Michael Shalayeff
Making, drinking tea and reading an opus magnum from Antoine Jacoutot:
[Charset ISO-8859-15 unsupported, filtering to ASCII...]
 Selon Sebastiaan Indesteege [EMAIL PROTECTED]:
  I've just tried out OpenOffice.org 2.0 beta, and it seems to be running
  fine on my i386 -CURRENT system, under linux emulation.
 
 Which is only available on i386 :(

which is relatively easy to fix
having enough motivation...

cu

-- 
paranoic mickey   (my employers have changed but, the name has remained)



Re: Text Editor

2005-09-12 Thread Antoine Jacoutot

Michael Shalayeff wrote:

which is relatively easy to fix
having enough motivation...


Well, not really, one must also have the knowledge to do it, which I 
have not, unfortunately ;)




Re: Text Editor

2005-09-12 Thread Michael Shalayeff
Making, drinking tea and reading an opus magnum from STeve Andre':
[Charset iso-8859-1 unsupported, filtering to ASCII...]
 On Monday 12 September 2005 14:56, Antoine Jacoutot wrote:
  Michael Shalayeff wrote:
   you barely need to even program anything.
   so yeah excuses...
 
  bla bla bla... oh well, whatever dude...
 
 Michael makes an important point here.  One often does not know how to
 do something at the beginning of a project and must learn how to do the
 things needed to achieve a goal.

oh kamon! you do not expect a typical misc@
material to suddenly jump into doing anything?! (;
i get dellusions once in a while but i think
not many other pplz actually do get that (:

 Software is that way exactly.   Learn by doing, make mistakes and learn
 from them, and gain knowledge on the way.  Did the USA know how to 
 get to the Moon in 1963?  No.  But we did it inside of seven years, because
 we were willing to research it and not whine.

except nobody really was on the moon (:
it's a hollywood made commercial for startrek!

 Becoming a developer needs the proper state of mind.  Say that you will
 and you can, eventually.  All a matter of priorities.

this compat/linux project is an excellent way
to get a little look inside the kernel for smb
who has no idea how it works inside [yet].
it is quite well documented as well.

cu

-- 
paranoic mickey   (my employers have changed but, the name has remained)



Re: Text Editor

2005-09-12 Thread Antoine Jacoutot

STeve Andre' wrote:

Michael makes an important point here.  One often does not know how to
do something at the beginning of a project and must learn how to do the
things needed to achieve a goal.


I know that, but be realistic, I know _nothing_ about programming... So 
I don't think saying it is only a matter of motivation is not really 
true. I'm not 18 anymore and I don't have time to learn C enough to do 
something like that.




Re: Text Editor

2005-09-12 Thread Will H. Backman
 -Original Message-
 From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf
Of
 Antoine Jacoutot
 Sent: Monday, September 12, 2005 3:45 PM
 To: misc@openbsd.org
 Subject: Re: Text Editor
 
 STeve Andre' wrote:
  Michael makes an important point here.  One often does not know how
to
  do something at the beginning of a project and must learn how to do
the
  things needed to achieve a goal.
 
 I know that, but be realistic, I know _nothing_ about programming...
So
 I don't think saying it is only a matter of motivation is not really
 true. I'm not 18 anymore and I don't have time to learn C enough to do
 something like that.

Well at least misc@ is a nurturing and gentle environment for the
aspiring programmer.



Re: Text editor

2005-08-07 Thread Mike Henker
Hi your answers help me a lot, I just want to know exactly what you 
said!! how many options I have around text editors.


Finally,I will use vi, perhaps like you said is the harder option but if 
a lot of UNIX people use it and recommand that means something...


Thank you very much for all the info ;)

Salutes,
Mike


Mike Henker escribis:
Hi yesterday I installed OpenBSD 3.7 seem to be all ok, my question is 
how I can edit the files of the operating system,what editor you 
recommand? (I m a newbie) If isn t in the default installation how can I 
install it? I saw the FAQ and the man but I can t find info about this 
doubt. Thanks


Salutes,
Mike




Re: Text editor

2005-08-07 Thread Sigfred Håversen

J.C. Roberts wrote:

3.) Learn ed -If vi is not installed, ed probably is. Some ancient
systems don't have vi but the odds of coming across such a system are
fairly slim.


The only text editor in bsd.rd is ed, so chances are that one may have 
to use it on occasion (shudder).


/Sigfred



Re: Text editor

2005-08-07 Thread Zoong PHAM
On Sunday,  7 August 2005 at  9:34:18 +0200, Sigfred Heversen wrote:
 The only text editor in bsd.rd is ed, so chances are that one may have 
 to use it on occasion (shudder).

And if you are in support role, sometimes you have to tell someone on the
phone how to edit system config files (in single user mode) with ed.
Life is tough :-)

Zoong



Re: Text editor

2005-08-07 Thread Jason McIntyre
On Sun, Aug 07, 2005 at 06:21:55PM +1000, Zoong PHAM wrote:
 On Sunday,  7 August 2005 at  9:34:18 +0200, Sigfred Heversen wrote:
  The only text editor in bsd.rd is ed, so chances are that one may have 
  to use it on occasion (shudder).
 
 And if you are in support role, sometimes you have to tell someone on the
 phone how to edit system config files (in single user mode) with ed.
 Life is tough :-)
 

shudder?
tough?

it is 166kb of kick ass editor that will save your life someday. all
hail and revel in the glory that is ed(1)!

SEE ALSO
A Tutorial Introduction to the UNIX Text Editor,
 /usr/share/doc/usd/09.edtut/.

jmc



Re: Text editor

2005-08-07 Thread imEnsion
I'm surprised everyone keeps recommending using vi and vim, yet no one
has given a pointer on how to learn it. Sure, an OReilly book may come
in handly for this (such as the pocket version of vi tips), but the
best way to learn is of course to read the man page.

Aside from the man page, if you install vim (which i highly
recommend), there is a little program/script/whatever called vimtutor
that will get you familiar with vi/vim. I hop this helps a little bit.

Good luck.. and welcome to UNIX (not those linux wannabees :P)

 

On 8/7/05, Jason McIntyre [EMAIL PROTECTED] wrote:
 On Sun, Aug 07, 2005 at 06:21:55PM +1000, Zoong PHAM wrote:
  On Sunday,  7 August 2005 at  9:34:18 +0200, Sigfred Heversen wrote:
   The only text editor in bsd.rd is ed, so chances are that one may have
   to use it on occasion (shudder).
 
  And if you are in support role, sometimes you have to tell someone on the
  phone how to edit system config files (in single user mode) with ed.
  Life is tough :-)
 
 
 shudder?
 tough?
 
 it is 166kb of kick ass editor that will save your life someday. all
 hail and revel in the glory that is ed(1)!
 
 SEE ALSO
 A Tutorial Introduction to the UNIX Text Editor,
  /usr/share/doc/usd/09.edtut/.
 
 jmc



Re: Text editor

2005-08-07 Thread Otto Moerbeek
On Sun, 7 Aug 2005, imEnsion wrote:

 I'm surprised everyone keeps recommending using vi and vim, yet no one
 has given a pointer on how to learn it. Sure, an OReilly book may come
 in handly for this (such as the pocket version of vi tips), but the
 best way to learn is of course to read the man page.

Which refers you to

An Introduction to Display Editing with Vi, /usr/share/doc/usd/12.vi/.
This document is the closest thing available to an introductionto the vi
screen editor.

-Otto



Re: Text editor

2005-08-07 Thread Moritz Grimm

Otto Moerbeek wrote:

On Sun, 7 Aug 2005, imEnsion wrote:

I'm surprised everyone keeps recommending using vi and vim, yet no one
has given a pointer on how to learn it. Sure, an OReilly book may come



An Introduction to Display Editing with Vi, /usr/share/doc/usd/12.vi/.
This document is the closest thing available to an introductionto the vi
screen editor.


To learn the basics of vi, vim comes in handy. After installing vim, one 
can use vimtutor to learn-by-doing all the useful basics in roughly 30 
minutes - and those work in our base nvi as well. It is well-written and 
very effective at teaching vi. Afterwards one is skilled enough to 
appreciate the complete documentation and do any configuration work 
and/or nvi-based programming on OpenBSD without (further) packages 
installed.



Moritz



Re: Text editor

2005-08-07 Thread Richard P. Koett
You guys are all sissies.

Real men use cat(1).



Re: Text editor

2005-08-07 Thread Brian
If you install the port vim, it comes with vimtutor.  You just type:

$ /usr/local/bin/vimtutor

And the tutor is pretty good.  It helped me out.

Brian








Start your day with Yahoo! - make it your home page 
http://www.yahoo.com/r/hs 



Re: Text editor

2005-08-07 Thread Han Boetes
You can use mg on OpenBSD. All you have to learn to get started is
that ctrl-x ctrl-c saves the file and exits.



# Han



Re: Text editor

2005-08-07 Thread Tim Hammerquist
Richard P. Koett wrote:
 X-Mailer: Microsoft Office Outlook, Build 11.0.6353
 
 You guys are all sissies.
 
 Real men use cat(1).

What kind of men use Outlook?

Well, at least you can still do:

C:\ copy con stuff.bat
@echo off
del /s *  nul
^Z
C:\ stuff



Re: Text editor

2005-08-07 Thread Gustavo Rios
On 8/6/05, Gerardo Santana Gsmez Garrido [EMAIL PROTECTED] wrote:
 On 8/6/05, Mike Henker [EMAIL PROTECTED] wrote:
  Hi yesterday I installed OpenBSD 3.7 seem to be all ok, my question is
  how I can edit the files of the operating system,what editor you
  recommand? (I m a newbie) If isn t in the default installation how can I
  install it? I saw the FAQ and the man but I can t find info about this
  doubt. Thanks
 
  Salutes,
  Mike
 
 vi is my editor of choice. But if you don't have a UNIX background you
 might want to try joe.

We need to be very carefull with the tools we learn as a student and
the ones as we teach as a professor. That's because the tools we use
shape the way we think and solve problems and will dictate aour
thinking habit to the selenity. Unlearning is not a possible
experience.

So, we you have no experience with computer, start with unix, if you
have no experience editing in unix env, start with vi, it's the only
safe choice, it there, every where, in each unix flavor and is very
mature.

My 4 cents.

 --
 Gerardo Santana Gsmez Garrido
 http://www.openbsd.org.mx/santana/
 Entre los individuos, como entre las naciones, el respeto al derecho
 ajeno es la paz -Don Benito Juarez



Re: Text editor

2005-08-07 Thread Paul Pruett

http://www.gnu.org/fun/jokes/ed.msg.html

Ed, man!  !man ed

On Sun, 7 Aug 2005, Richard P. Koett wrote:


Date: Sun, 7 Aug 2005 09:01:40 -0700
From: Richard P. Koett [EMAIL PROTECTED]
To: misc@openbsd.org
Subject: Re: Text editor

You guys are all sissies.

Real men use cat(1).




Re: Text editor

2005-08-07 Thread J.C. Roberts
On Sun, 7 Aug 2005 19:34:44 + (GMT), Paul Pruett
[EMAIL PROTECTED] wrote:

http://www.gnu.org/fun/jokes/ed.msg.html

Ed, man!  !man ed


From the paged linked above:

Let's look at a typical novice's session with the mighty ed:

golem$ ed

?
help
?
?
?
quit
?
exit
?
bye
?
hello? 
?
eat flaming death
?
^C
?
^C
?
^D
?

An now I have to wonder if I've been hacked by someone who wants to
record all my console sessions... ;-)

JCR

--
A: Because it messes up the order in which people normally read text.
Q: Why is top-posting such a bad thing?
A: Top-posting.
Q: What is the most annoying thing in e-mail?



Re: Text editor

2005-08-07 Thread Martin Schröder
On 2005-08-07 09:01:40 -0700, Richard P. Koett wrote:
 Real men use cat(1).

And real women use magnets. :-)

Best
Martin
-- 
http://www.tm.oneiros.de



Re: Text editor

2005-08-06 Thread Matthias Kilian
On Sat, Aug 06, 2005 at 08:52:17PM +0200, Mike Henker wrote:
 Hi yesterday I installed OpenBSD 3.7 seem to be all ok, my question is 
 how I can edit the files of the operating system,what editor you 
 recommand? (I m a newbie) If isn t in the default installation how can I 
 install it? I saw the FAQ and the man but I can t find info about this 
 doubt. Thanks

Personally, I prefer vi(1), but for newbies, mg(1) may be a better
choice.

Ciao,
Kili



Re: Text editor

2005-08-06 Thread jimmy
Quoting Matthias Kilian [EMAIL PROTECTED]:

 On Sat, Aug 06, 2005 at 08:52:17PM +0200, Mike Henker wrote:
  Hi yesterday I installed OpenBSD 3.7 seem to be all ok, my question is
  how I can edit the files of the operating system,what editor you
  recommand? (I m a newbie) If isn t in the default installation how can I
  install it? I saw the FAQ and the man but I can t find info about this
  doubt. Thanks

 Personally, I prefer vi(1), but for newbies, mg(1) may be a better
 choice.

 Ciao,
   Kili



You can also install nano from ports or package, nice and simple editor.


This message has been sent through ihosting.be
To report spamming or other unaccepted behavior
by a iHosting customer, please send a message 
to [EMAIL PROTECTED]




Re: Text editor

2005-08-06 Thread Gerardo Santana Gómez Garrido
On 8/6/05, Mike Henker [EMAIL PROTECTED] wrote:
 Hi yesterday I installed OpenBSD 3.7 seem to be all ok, my question is
 how I can edit the files of the operating system,what editor you
 recommand? (I m a newbie) If isn t in the default installation how can I
 install it? I saw the FAQ and the man but I can t find info about this
 doubt. Thanks
 
 Salutes,
 Mike

vi is my editor of choice. But if you don't have a UNIX background you
might want to try joe.

-- 
Gerardo Santana Gsmez Garrido
http://www.openbsd.org.mx/santana/
Entre los individuos, como entre las naciones, el respeto al derecho
ajeno es la paz -Don Benito Juarez



Re: Text editor

2005-08-06 Thread Martin Schröder
On 2005-08-06 20:52:17 +0200, Mike Henker wrote:
 Hi yesterday I installed OpenBSD 3.7 seem to be all ok, my question is 
 how I can edit the files of the operating system,what editor you 
 recommand? (I m a newbie) If isn t in the default installation how can I 

man -k editor

Best
Martin
-- 
http://www.tm.oneiros.de



Re: Text editor

2005-08-06 Thread Mike Hernandez
On 8/6/05, J.C. Roberts [EMAIL PROTECTED] wrote:
 
 5.) pico is a very simple editor that is friendly to new people who
 have only worked with modeless editors like MS notepad. If you just
 want to edit the damn file without destroying it or giving up in
 frustration, pico is a good answer that works in a familiar way. pico
 is part of the pine email client available in the OpenBSD
 ports/packages collection.

Great summary of text editors, imho. Just want to mention that if you
don't want to install pine just to use pico, you can try nano, which
is basically pico. The name is another of the countless silly jokes I
guess... :)

Mike



Re: Text editor

2005-08-06 Thread J.C. Roberts
On Sat, 6 Aug 2005 19:10:49 -0400, Mike Hernandez
[EMAIL PROTECTED] wrote:

On 8/6/05, J.C. Roberts [EMAIL PROTECTED] wrote:
 
 5.) pico is a very simple editor that is friendly to new people who
 have only worked with modeless editors like MS notepad. If you just
 want to edit the damn file without destroying it or giving up in
 frustration, pico is a good answer that works in a familiar way. pico
 is part of the pine email client available in the OpenBSD
 ports/packages collection.

Great summary of text editors, imho. Just want to mention that if you
don't want to install pine just to use pico, you can try nano, which
is basically pico. The name is another of the countless silly jokes I
guess... :)

Mike

Unix is simple but it takes a genius to understand the jokes.

(;

JCR