LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 05-22-2007, 02:27 PM   #31
IsaacKuo
Senior Member
 
Registered: Apr 2004
Location: Baton Rouge, Louisiana, USA
Distribution: Debian Stable
Posts: 2,546
Blog Entries: 8

Rep: Reputation: 465Reputation: 465Reputation: 465Reputation: 465Reputation: 465

Quote:
Originally Posted by coward77
Yes, I have always used vi, because it will always be everywhere. It is harder to learn, but once you know it you can always edit on any machine. The real question is why small DOS programs have seldom been ported to unix (or linux).
Maybe because there weren't very many small DOS programs and they sucked? Maybe because they tend to use DOS graphics characters and DOS style PC clone text coloring, whereas most *nix systems had different display hardware?

Quote:
I think it has to do with the keyboard buffer and screen buffer. In BASIC for example you can easily write $INKEY to capture a key, this is not that easy in unix. Also DOS machines wre born as single user machines, hence the nicer single user programs, unix was born as multiuser, terminal, high end, not with single user in mind.
Umm...it's best if you just erase the above thoughts from your head. They are so wrong on so many levels, that it's not worth going point-by-point to gather up the few bits that aren't entirely wrong.

It shouldn't be hard to Google up a history of Unix to read for yourself how it came to be.
 
Old 05-22-2007, 02:33 PM   #32
osor
HCL Maintainer
 
Registered: Jan 2006
Distribution: (H)LFS, Gentoo
Posts: 2,450

Rep: Reputation: 78
Quote:
Originally Posted by coward77
I think it has to do with the keyboard buffer and screen buffer. In BASIC for example you can easily write $INKEY to capture a key, this is not that easy in unix.
First, I don’t think DOS EDIT was written in BASIC. I think originally, it must have been written in assembly, but the “current” versions are probably written in C(++). In either platform, using assembler to access the terminal in raw mode is similar. For low-level (i.e., non-buffered) keyboard use in C, on Unix platforms you use curses (for keystroke capturing use getch() preceeded by cbreak() and noecho() if so desired); on Windows/DOS, you would use conio (which incidentally has a similar getch() function).
 
Old 05-22-2007, 02:34 PM   #33
osor
HCL Maintainer
 
Registered: Jan 2006
Distribution: (H)LFS, Gentoo
Posts: 2,450

Rep: Reputation: 78
Quote:
Originally Posted by Alien_Hominid
Maybe all these editors long time ago looked liked EDIT but their devs didn't have what to do and so they added and added features until there was no more EDIT.
Actually, a timeline of editors goes something like this:
Code:
                       TECO (1963)
 qed (1966)             |
  |                     |
  ed (1968/1969)        |
  |                     |
  em (1975)           EMACS (1975)
  |                     |
  en (1976)             |
  |                     |
  ex (1976)             |
  |                     |
  vi (1976/1977)        |
  |               Gosling Emacs (1981)
 sam (1983)             |
  |                 GNU Emacs (1984)
  |                     |
acme (199x)           XEmacs (1991)
Of course the years aren’t very accurate (pieces of software do not just begin to exist at a certain time, they are created over a timespan — many of the above are still being developed today), but I tried to put the year the first usable version of each noted editor came out. I didn’t put influences on other software (e.g., ed influenced grep and sed, but since they aren’t interactive editors, they don’t make the list). I also don’t have too much history from the MIT-lineage.

The point is that most of the quirks of vi are inherited from line-based editors.

Sources:
An incomplete history of the QED Text Editor
George Coulouris: Bits of History
Bill Joy’s greatest gift to man – the vi editor
Wikipedia
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Edit Hard Drive Partitioning varaonaid Linux - Newbie 2 05-02-2007 10:51 AM
[SOLVED] How do I swap windows on hard 2 to hard drive 1 and linux from 1 to 2 uncle guido Linux - Newbie 5 10-25-2006 11:14 AM
Reiser file system / Hard Disk/ Hard Drive Problems Oxyacetylene Linux - Software 4 10-10-2005 02:24 PM
Hex Edit Hard Disk soulstace Linux - Software 1 04-22-2005 04:40 PM
manual mandrake shut down hard on hard drive randrake Mandriva 2 03-15-2004 04:01 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 12:33 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration