Re: New line in a JTextArea (student learning here)
- From: "John W. Kennedy" <jwkenne@xxxxxxxxxxxxx>
- Date: Tue, 30 Jan 2007 21:10:57 -0500
RedGrittyBrick wrote:
Is "move to start of next line" intrinsically two operations?
A-priori design considerations aside, it factually /was/ two operations on the historic teleprinters for which ASCII was first designed. (IBM Selectric teleprinters, such as the 1052 and the 2741, had a combined operation, and EBCDIC has a distinct "New-line" control character, in addition to "Line-feed" and "Carriage-return".)
The reason that historic teleprinters combined the operations is very likely the requirement for all operations to take place in one character time. They had very narrow margins, and could do a carriage return in the time it took to print one character; I suspect that adding the line feed while retaining the speed would have significantly increased costs. (IBM Selectric teleprinters could /not/ execute either a Carriage-return or a New-line in one character time, both because they had wider carriages and because they printed at nearly twice the character rate; it was necessary to insert a number of Idle [do-nothing] control characters to prevent the printer from trying to strike characters while flying back. Same for tabs.)
More so than "move to column 1 row 11"? I wouldn't be surprised if the latter is what many curses applications end up sending to the terminal when the user presses the Enter key.
ASCII is much older than curses. Indeed, when ASCII was being developed, CRT terminals were hideously expensive and vector-based (like the old "Asteroids" arcade game), and required a whole mainframe to drive them. They were almost entirely limited to CAD, Air Traffic Control, and similar applications.
--
John W. Kennedy
"The blind rulers of Logres
Nourished the land on a fallacy of rational virtue."
-- Charles Williams. "Taliessin through Logres: Prelude"
.
- References:
- New line in a JTextArea (student learning here)
- From: Sandy
- Re: New line in a JTextArea (student learning here)
- From: Knute Johnson
- Re: New line in a JTextArea (student learning here)
- From: Sandy
- Re: New line in a JTextArea (student learning here)
- From: Farcus Pottysqirt
- Re: New line in a JTextArea (student learning here)
- From: Andrew Thompson
- Re: New line in a JTextArea (student learning here)
- From: Knute Johnson
- Re: New line in a JTextArea (student learning here)
- From: Andrew Thompson
- Re: New line in a JTextArea (student learning here)
- From: Wojtek Bok
- Re: New line in a JTextArea (student learning here)
- From: RedGrittyBrick
- Re: New line in a JTextArea (student learning here)
- From: Wojtek Bok
- Re: New line in a JTextArea (student learning here)
- From: RedGrittyBrick
- New line in a JTextArea (student learning here)
- Prev by Date: Re: Is this recursion?
- Next by Date: Java routine sleeps after hibernate
- Previous by thread: Re: New line in a JTextArea (student learning here)
- Next by thread: Re: New line in a JTextArea (student learning here)
- Index(es):
Relevant Pages
|