Enhanced Word-Wrap Support in a Work Station Controller/Personal Computer Emulator
Original Publication Date: 1994-Feb-01
Included in the Prior Art Database: 2005-Mar-26
Boegel, MA: AUTHOR [+2]
Work station controller support and Personal Computer (PC)-based emulator support of word-wrap entry fields for a host-based application is disclosed.
Enhanced Word-Wrap Support in a Work Station
controller support and Personal Computer
(PC)-based emulator support of word-wrap entry fields for a
host-based application is disclosed.
A Work Station
Controller (WSC) supports multiple
Non-Programmable Terminals (NPTs). A WSC enables host-based
applications to be accessed from an NPT. The host application and
WSC communicate via some type of display data stream. WSCs can be
locally attached to a host system (via system bus) or remotely
attached via some type of communication line. A WSC communicates
with NPTs across a communication cable using a communication
can emulate the combination of a WSC and an
attached NPT, giving the PC user access to host-based applications.
The functions listed below describe WSC processing; however, most of
these functions are also applicable to a PC emulator.
application can define a word-spill entry field.
Word-spill is an optional parameter when defining an entry field.
Word-spill is a useful function within long entry fields, which span
multiple lines. Word-spill is also a useful function within
continued entry fields, which are constructed of multiple continued
field segments. The following Figure shows a continued word-spill
entry field with some typed data:
Enter Note Text . . . @Please send a copy of the document ....@
@that describes this function so I can .@
@read about it..........................@
1. '@' are display attributes
2. '.' are nulls
which are added by the WSC to pad the entry field
3. The words "that" and "read" were spilled
Specific word-spill functions are described below.
Processing of Data Character Keystrokes
When the user
types a data character in a word-spill entry
field, the WSC copies all of the data from the entry field into a
continuous buffer in WSC memory, while removing nulls (blanks are not
removed). If the user was in replace mode, the new character is
written to the buffer at the correct location. If the user was in
insert mode, the new character is inserted in the buffer at the
correct location. Then, the data characters are written back to the
entry field with word-wrap processing (words are not allowed to span
lines -- nulls are added to the ends of lines and segments, as
needed, to pad the line or segment), and the remainder of the entry
field is written to nulls. In replace mode, the cursor is placed one
position past the character which was just typed. In insert mode,
the cursor remains under the same character (wherever it ends up).
many lines or segments on the screen, it is possible
for the number of wrapped characters to increase from line to line
(an avalanche effect). The number of wrapped characters could