Deprecated: The each() function is deprecated. This message will be suppressed on further calls in /home/zhenxiangba/zhenxiangba.com/public_html/phproxy-improved-master/index.php on line 456
JPS6019516B2 - Screen editing method - Google Patents
[go: Go Back, main page]

JPS6019516B2 - Screen editing method - Google Patents

Screen editing method

Info

Publication number
JPS6019516B2
JPS6019516B2 JP52104595A JP10459577A JPS6019516B2 JP S6019516 B2 JPS6019516 B2 JP S6019516B2 JP 52104595 A JP52104595 A JP 52104595A JP 10459577 A JP10459577 A JP 10459577A JP S6019516 B2 JPS6019516 B2 JP S6019516B2
Authority
JP
Japan
Prior art keywords
line
cursor
address
display
character
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Expired
Application number
JP52104595A
Other languages
Japanese (ja)
Other versions
JPS5437640A (en
Inventor
晴美 中野
利宣 田中
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
KASHIO KEISANKI KK
Original Assignee
KASHIO KEISANKI KK
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by KASHIO KEISANKI KK filed Critical KASHIO KEISANKI KK
Priority to JP52104595A priority Critical patent/JPS6019516B2/en
Publication of JPS5437640A publication Critical patent/JPS5437640A/en
Publication of JPS6019516B2 publication Critical patent/JPS6019516B2/en
Expired legal-status Critical Current

Links

Landscapes

  • Input From Keyboards Or The Like (AREA)
  • Document Processing Apparatus (AREA)

Description

【発明の詳細な説明】 本発明は表示装置における画面編集方式に関する。[Detailed description of the invention] The present invention relates to a screen editing method in a display device.

近年、情報処理機器で情報を処理する際、その機器とオ
ペレータとが会話形式で処理する為にその出力装置とし
て例えばCRT表示装置が採用されている。
In recent years, when information is processed by an information processing device, a CRT display device, for example, has been adopted as an output device so that the device and an operator can perform the processing in a conversational manner.

この種のCRT表示装置では、オペレータがその表示画
面をみながらその表示内容、即ち、情報を訂正したり、
編集できるように構成されている。しかして従来では画
面の編集を行う際、表示データの修正、追加等によって
修正行の文字数が増加し、その一部を次の行へ移す場合
には、画面の最上行あるいは最下行を消去して修正行以
上の表示を1行分上方にずらせるか、修正行より下の表
示を1行分下にずらせ、その空いた行に修正行さら移さ
れる文字を表示するようにしている。このようにして表
示画面の編集が行われるが、従来では編集の際に消去す
る行が画面の最上行か最下行のいずれかに予め設定され
ており、このため画面の最上行あるいは最下行の修正を
行う場合に、修正した行が消去されてしまう場合があり
、問題となっている。本発明は上記の点に鑑みてなされ
たもので、画面の編集の際に表示状態に応じて最上行、
最下行の何れを消去するかを決定し、修正行が消去され
ることを確実に防止し得る画面編集方式を提供すること
を目的とする。
With this type of CRT display device, an operator can correct the displayed content, that is, information, while looking at the display screen.
Constructed for editing. However, in the past, when editing a screen, if the number of characters in the corrected line increases due to modification or addition of display data, and you want to move part of it to the next line, the top or bottom line of the screen must be deleted. The display above the corrected line is shifted upward by one line, or the display below the corrected line is shifted downward by one line, and the characters to be moved to the corrected line are displayed on the empty line. Editing of the display screen is performed in this way, but conventionally, the line to be erased during editing is set in advance to either the top or bottom line of the screen, so the top line or bottom line of the screen must be edited. When doing so, the modified line may be deleted, which is a problem. The present invention has been made in view of the above points, and when editing the screen, the top line,
It is an object of the present invention to provide a screen editing method that can determine which bottom line is to be erased and can reliably prevent the correction line from being erased.

以下図面を参照して本発明の一実施例を説明する。An embodiment of the present invention will be described below with reference to the drawings.

まず第1図により全体の概略構成について説明すると、
1はCPU(中央処理装置)で、このCPUIにはアド
レスバス2、データバス3を介して1/0ボート4,5
が接続される。また、この1/0ボート4,5にはCP
UIからイネーフルラィ6aを介してィネーブル信号が
与えられる。そして、1/0ボート4には詳細を後述す
る表示制御部7aを介してCRT表示部7bが接続され
、1/0ボート5にはキー入力部8が接続される。また
、上記CPUIにはアドレスバス2、データバス3、コ
ントロールバス9、イネーブルラィン6bを介してメイ
ンメモリ10が接続される。上記CPUI‘まアドレス
バス2によりアドレスデータを出力して1/0ボート4
,5、メインメモリ10をアドレス指定し、その後デー
タバス3を介してデータの授受、すなわちキー入力部8
からの入力データの受入れ、表示制御部7aへの表示デ
ータの送出、メインメモリ1O‘こ対するデータの書込
み、読出し等を行う。また、キー入力部8から入力され
る表示用データは、CPUIから1/0ボート4を介し
て表示制御部7aに送られ、表示制御部7a内のりフレ
ッシュメモ川こ書込まれて表示される。そして、表示を
確認した後、上記IJフレッシュメモリに入力されたデ
ータがメインメモリー01こ送られて書込まれる。次に
上記表示制御部7aの詳細について第2図により説明す
る。1/0ボート4は、CPUIからの指令により読出
し/書込み指令R/W、セレクト信号S、レジスタ指定
信号C,,C2を出力すると共にデータバス11よりデ
ータを出力するもので、読出し/書込み指令R/W及び
データバス11を介して出力されるデータはリフレツシ
ュメモリ12に送られる。そして、セレクト信号Sはセ
レクタ13に供給され、レジスタ指定信号C,及びデー
タバス11から出力されるデータはカーソルアドレスレ
ジスタ14に供給される。また、レジスタ指定信号C2
及びデータバス1 1から出力されるデータはスイープ
ポインタ15に供給される。このスイープポインタ15
にセットされた内容は、走査部16からの垂直同期信号
によりゲート制御されるアンド回路17を介して行指定
カウンター8に送られる。そして、この行指定カウンタ
18の出力は、走査部16からの水平同期信号によりゲ
ート制御されるアンド回路19を介して表示アドレスカ
ウンタ20へ送られる。この表示アドレスカウンタ20
及び上記カーソルアドレスレジスタ14の内容は、一致
回路21に加えられると共にセレクタ13により選択さ
れてリフレッシュメモリ12へ送られ、その議出しアド
レスあるいは書込みアドレスを指定する。このリフレッ
シュメモリ12から読出されるデー外ま、キャラクタジ
ェネレー夕22へ送られる。このキャラクタジエネレー
夕22は、リフレツシュメモリ12からキャラクタデー
夕が入力されると、走査部16からデコーダ23を介し
て与えられる信号に従ってキャラクタデータに対応する
ドットパターンを発生する。そのキヤラクタジェネレー
夕22から出力されるドットパターンは、P−S(並列
−直列)変換レジスタ24でシルァルデータに変換され
、オァ回路25を介してCRT表示部7bヘビデオ信号
として送られる。しかして、前記走査部16は、基準の
パルス信号を発生するパルス発生器31、このパルス発
生器31から出力されるパルス信号をカウントする8進
のドットカウンタ32、このドットカウンタ32の出力
をカウントする8G隼のキヤラクタカウンタ33、この
キヤラクタカウンタ33の出力をカウントする12進の
ラスタカウンタ34、このラスタカウンタ34の出力を
カウントする2公隼の行カウンタ35からなっている。
そして、上記ドットカウンタ32から1キャラクタ毎に
出力される信号は表示アドレスカウンタ2川こカウント
アップ信号として送られると共にアンド回路26に加え
られる。また、キヤラクタカウンタ33の出力が水平同
期信号として取出され、CRT表示部7bへ送られると
共にアンド回路19に加えられる。さらに行カウンタ3
5の出力が垂直同期信号として取出され、CRT表示部
7bへ送られると共にアンド回路17に加えられる。そ
して、ラスタカウンタ34の内容は、デコーダ23へ加
えられる。このデコーダ23は出力ラインa〜dを備え
ており、ラスタカウンタ34の内容に応じて各出力ライ
ンa〜dから信号を出力する。すなわち、ラスタカウン
タ34のカウント内容が「0」〜「8」においてはデコ
ーダ23の出力ラインaから“1”信号を出力し、カウ
ント内容が「10」になった時に出力ラインcから“1
”信号を出力し、カウント内容が「111になった時に
出力ラインdから“1”信号を出力する。また、デコー
ダ23の出力ラインbからはラスタカウンタ34の内容
がそのまま出力され、キャラクタジェネレー夕22へ送
られる。そして、デコーダ23の出力ラインaの出力信
号は、パルス発生器31の出力と共にァンド回路27へ
加えられ、このアンド回路27の出力がP−S変換レジ
スタ24に動作信号として送られる。また、デコーダ2
3の出力ラインcから出力される信号は一致回路21に
加えられ、出力ラインdから出力される信号はアンド回
路26に加えられる。このアンド回路26の出力信号は
行指定カウンタ18にカウントアップ信号として加えら
れる。しかして、上記走査部16は1文字を7×9のド
ットマトリクスにより表示し、1行で80字、1画面で
2叫庁の表示を行うようにその内容を設定している。ま
た、各行はラスタLo〜L,.のIZ本のラスタ(水平
走査線)からなり、ラスタL〜L8で文字表示、ラスタ
L,。でカーソル表示を行い、ラスタL,L,.を空表
示としている。次に上記のように構成された本発明の動
作を説明する。
First, the overall configuration will be explained with reference to Figure 1.
1 is a CPU (central processing unit), and this CPU is connected to 1/0 ports 4 and 5 via an address bus 2 and a data bus 3.
is connected. Also, this 1/0 boat 4 and 5 have CP
An enable signal is given from the UI via the enable line 6a. A CRT display section 7b is connected to the 1/0 boat 4 via a display control section 7a, the details of which will be described later, and a key input section 8 is connected to the 1/0 boat 5. Further, a main memory 10 is connected to the CPUI via an address bus 2, a data bus 3, a control bus 9, and an enable line 6b. The above CPUI' outputs address data via address bus 2 and 1/0 port 4.
, 5, addresses the main memory 10, and then sends and receives data via the data bus 3, that is, the key input section 8
It accepts input data from the main memory 1O', sends display data to the display control section 7a, and writes and reads data to and from the main memory 1O'. Further, display data inputted from the key input section 8 is sent from the CPUI to the display control section 7a via the 1/0 port 4, written in the fresh memo section in the display control section 7a, and displayed. After confirming the display, the data input to the IJ fresh memory is sent to the main memory 01 and written therein. Next, details of the display control section 7a will be explained with reference to FIG. The 1/0 boat 4 outputs a read/write command R/W, a select signal S, register designation signals C, C2, and data from the data bus 11 according to commands from the CPUI. Data output via the R/W and data bus 11 is sent to the refresh memory 12. Then, the select signal S is supplied to the selector 13, and the register designation signal C and the data output from the data bus 11 are supplied to the cursor address register 14. In addition, register designation signal C2
The data output from the data bus 11 is supplied to the sweep pointer 15. This sweep pointer 15
The contents set are sent to the row designation counter 8 via an AND circuit 17 gate-controlled by a vertical synchronization signal from the scanning section 16. The output of the row designation counter 18 is sent to the display address counter 20 via an AND circuit 19 gate-controlled by a horizontal synchronization signal from the scanning section 16. This display address counter 20
The contents of the cursor address register 14 are added to the match circuit 21, selected by the selector 13, and sent to the refresh memory 12 to designate its output address or write address. The data read from the refresh memory 12 is also sent to the character generator 22. When character data is input from the refresh memory 12, the character generator 22 generates a dot pattern corresponding to the character data according to a signal provided from the scanning section 16 via the decoder 23. The dot pattern output from the character generator 22 is converted into serial data by a P-S (parallel-serial) conversion register 24, and sent to the CRT display section 7b as a video signal via an OR circuit 25. The scanning unit 16 includes a pulse generator 31 that generates a reference pulse signal, an octal dot counter 32 that counts the pulse signals output from the pulse generator 31, and an output of the dot counter 32 that counts the output of the dot counter 32. It consists of an 8G Hayabusa character counter 33, a 12-decimal raster counter 34 that counts the output of this character counter 33, and a 2K Hayabusa row counter 35 that counts the output of this raster counter 34.
The signal output from the dot counter 32 for each character is sent to the display address counter 2 as a count up signal and is also applied to the AND circuit 26. Further, the output of the character counter 33 is taken out as a horizontal synchronizing signal, sent to the CRT display section 7b, and added to the AND circuit 19. Further row counter 3
The output of 5 is taken out as a vertical synchronizing signal, sent to the CRT display section 7b, and also applied to the AND circuit 17. The contents of raster counter 34 are then added to decoder 23. This decoder 23 includes output lines a to d, and outputs a signal from each output line a to d according to the contents of the raster counter 34. That is, when the count content of the raster counter 34 is "0" to "8", a "1" signal is output from the output line a of the decoder 23, and when the count content reaches "10", a "1" signal is output from the output line c.
” signal, and when the count reaches 111, a “1” signal is output from the output line d. Also, the content of the raster counter 34 is output as is from the output line b of the decoder 23, and the character generator The output signal of the output line a of the decoder 23 is applied to the AND circuit 27 along with the output of the pulse generator 31, and the output of the AND circuit 27 is sent to the P-S conversion register 24 as an operation signal. Also, decoder 2
The signal output from the output line c of No. 3 is applied to the matching circuit 21, and the signal output from the output line d is applied to the AND circuit 26. The output signal of this AND circuit 26 is applied to the row designation counter 18 as a count up signal. The scanning unit 16 is configured to display one character in a 7×9 dot matrix, with 80 characters per line and 2 letters per screen. Moreover, each row is a raster Lo to L, . Consisting of IZ rasters (horizontal scanning lines), characters are displayed in rasters L to L8, raster L, . to display the cursor and select the raster L, L, . is displayed as empty. Next, the operation of the present invention configured as described above will be explained.

スイープポインタ15にはCPUIからの指令により1
/0ボート4を介してリフレツシュメモリ12の読出し
開始行を指定するデータをセットする。例えばリフレツ
シュメモリ12の0番地、つまり先頭行から表示を開始
するものとすれば、スイープポインタ15には「0」を
セットする。そのスィープポィンタ15の内容は、垂直
同期信号に同期してアンド回路17を介して行指定カウ
ンター8に移される。さらに、この行指定カゥンタ18
の内容は水平同期信号に同期してアンド回路19を介し
て表示アドレスカウンタ20に移される。この表示アド
レスカウンタ20の内容は、セレクタ13を介してリフ
レッシュメモリ12へ送られ、表示開始行の先頭アドレ
スを指定する。上記セレクタ13はCPUIから1/0
ボート4を介して与えられるセレクト信号Sによって動
作し、表示モードでは表示アドレスカゥンタ20の出力
を選択してリフレッシュメモリ12に与える。表示アド
レスカウンタ20の内容は最初「0」であるので、リフ
レツシュメモリ12の0番地のキャラクタデータが諭出
され、キヤラクタジェネレー夕22へ送られる。この時
点ではラスタカウン夕34の内容は「0」であり、その
データがデコーダ23を介してキヤラクタジェネレー夕
22に送られているので、キヤラクタジェネレー夕22
はラスタLに対するキヤラクタデー夕のドットパターン
を発生する。このドットパターンはP−S変換レジスタ
24に送られ、ラスタカウンタ34の内容が「0」〜「
8」の間においてアンド回路27から出力されるパルス
信号に同期してシリアルデータに変換される。このシI
Jアルデータはビデオ信号としてオア回路25よりCR
T表示部7bへ送られて表示される。そして、1キヤラ
クタに対するデータがオア回路25よりCRT表示部7
bへ送られると、ドットカウンタ32から“1”信号が
出力され、表示アドレスカウンタ20の内容を「11だ
けカウントアップする。これによってリフレツシュメモ
リ12の次のアドレスが指定され、新しいキャラクタデ
ータが謙出される。以下同様にして表示アドレスカウン
タ20の内容がカウントアップされ、リフレッシュメモ
リ12の内容が順次謙出される。そして、1ラスタに対
する走査を終了するとキャラクタカウンタ33から水平
同期信号が出力されてアンド回路19のゲートが開かれ
、行指定カウンタ18の内容が再び表示アドレスカゥン
タ20‘こセットされ、上記と同様の動作が繰返される
。そして、上記の動作が1行分行われてラスタカウンタ
34の内容「11」になると、デコーダ23の出力ライ
ンdから“1”信号がアンド回路26へ出力される。し
たがって、ドットカウンタ32から出力されるパルスは
1ラスタの期間アンド回路26を介して行指定カウンタ
18へ出力される。即ち、行指定カゥンタ18の内容を
「80」カウントアップする。この行カウン夕18の内
容は水平同期信号によりアンド回路19を介して表示ア
ドレスカウンタ20へ送られ、リフレツシュメモリ12
の次の行の先頭アドレスを指定する。このようにして行
指定カウンタ18の内容が順次カウントアップされ、リ
フレッシュメモリ12の読出し行を順次指定する。そし
て1画面に対するリフレッシュメモリ12の記憶内容を
読出した時点で行カウンタ35から垂直同期信号が出力
され、アンド回路17のゲートが開かれ、スィープポィ
ンタ15の内容がアンド回路17を介して行指定カゥン
タ18に再びセットされる。この結果、行指定カウンタ
18は最初の状態に戻り、リフレッシュメモリ12の先
頭行を指定する。以下同様の動作によってリフレツシュ
メモリ12の内容が謙出され、CRT表示部7bにおい
て表示される。第3図はその表示例を示すものである。
なお、表示データには、各データブロック毎に先頭行に
スタートマーク「>」が表示される。しかして、新しい
データの書込み、データの修正等に際しては、データの
書込みあるいは修正位置においてカーソル表示が行われ
る。
The sweep pointer 15 is set to 1 by a command from the CPUI.
Data specifying the read start line of the refresh memory 12 is set via the /0 port 4. For example, if display is to be started from address 0 of the refresh memory 12, that is, from the first row, the sweep pointer 15 is set to "0". The contents of the sweep pointer 15 are transferred to the row designation counter 8 via the AND circuit 17 in synchronization with the vertical synchronization signal. Furthermore, this row specification counter 18
The contents of are transferred to the display address counter 20 via the AND circuit 19 in synchronization with the horizontal synchronizing signal. The contents of the display address counter 20 are sent to the refresh memory 12 via the selector 13, and specify the top address of the display start line. The above selector 13 is 1/0 from CPUI
It operates in response to a select signal S applied via the port 4, and in display mode selects the output of the display address counter 20 and applies it to the refresh memory 12. Since the content of the display address counter 20 is initially "0", the character data at address 0 of the refresh memory 12 is read out and sent to the character generator 22. At this point, the content of the raster counter 34 is "0" and the data is sent to the character generator 22 via the decoder 23.
generates a dot pattern of character data for raster L. This dot pattern is sent to the P-S conversion register 24, and the contents of the raster counter 34 are changed from "0" to "
8'', it is converted into serial data in synchronization with the pulse signal output from the AND circuit 27. This si I
J Aldata is CR from OR circuit 25 as a video signal.
It is sent to the T display section 7b and displayed. Then, the data for one character is transmitted from the OR circuit 25 to the CRT display section 7.
When the signal is sent to b, the dot counter 32 outputs a "1" signal, and the display address counter 20 counts up by "11." This designates the next address in the refresh memory 12, and new character data is Thereafter, the contents of the display address counter 20 are counted up in the same manner, and the contents of the refresh memory 12 are sequentially retrieved.When scanning for one raster is completed, a horizontal synchronizing signal is output from the character counter 33. The gate of the AND circuit 19 is opened, the contents of the row designation counter 18 are again set to the display address counter 20', and the same operation as above is repeated.Then, the above operation is performed for one row, and the raster counter 34 is When the content becomes "11", a "1" signal is output from the output line d of the decoder 23 to the AND circuit 26. Therefore, the pulse output from the dot counter 32 is output to the row designation counter 18 via the one-raster period AND circuit 26. That is, the contents of the line designation counter 18 are counted up by "80". The contents of the row counter 18 are sent to the display address counter 20 via the AND circuit 19 in response to the horizontal synchronization signal, and are sent to the display address counter 20 in the refresh memory 12.
Specify the start address of the next line. In this way, the contents of the row designation counter 18 are sequentially counted up, and the rows to be read from the refresh memory 12 are sequentially designated. When the stored contents of the refresh memory 12 for one screen are read out, a vertical synchronizing signal is output from the row counter 35, the gate of the AND circuit 17 is opened, and the contents of the sweep pointer 15 are transferred via the AND circuit 17 to the row designation counter 18. is set again. As a result, the row designation counter 18 returns to its initial state and designates the first row of the refresh memory 12. Thereafter, the contents of the refresh memory 12 are retrieved by similar operations and displayed on the CRT display section 7b. FIG. 3 shows an example of the display.
Note that in the display data, a start mark ">" is displayed on the first line of each data block. Therefore, when writing new data, modifying data, etc., a cursor is displayed at the data writing or modification position.

上記カーソル表示のアドレスは、CPUIから1/0ボ
ート4を介してカーソルアドレスレジスタ14にセット
される。そして、このカーソルアドレスレジスター4の
内容と表示アドレスカウン夕20の内容が一致し、かつ
、ラスタカウンタ34の内容が「10」となってデコー
ダ23の出力ラインdから“1”信号が出力されると一
致回路21の出力が“1”となる。この一致回路21の
出力はオア回路25を介してCRT表示部7bへ送られ
、ラス夕L。においてカーソル表示を行う。そして、デ
ータの書込みの際には、CPUIから1/0ボート4を
介してセレクト信号Sがセレクタ13に送られ、セレク
夕13をカーソルアドレスレジスター4側に切換える。
また同時にCPUIから1/0ボート4を介してリフレ
ッシュメモリ12に書込み指令及びデータが与えられ、
カーソルアドレスレジスター4によって指定されたアド
レスにデータが書き込まれる。次に表示データの修正を
行う場合のCPUIの制御動作について第4図のフロー
チャートにより説明する。
The address of the cursor display is set in the cursor address register 14 from the CPU via the 1/0 port 4. Then, the contents of the cursor address register 4 and the contents of the display address counter 20 match, and the contents of the raster counter 34 become "10", and a "1" signal is output from the output line d of the decoder 23. The output of the matching circuit 21 becomes "1". The output of this matching circuit 21 is sent to the CRT display section 7b via the OR circuit 25, and the last output L is sent to the CRT display section 7b. The cursor is displayed at . When writing data, a select signal S is sent from the CPU via the 1/0 port 4 to the selector 13, and the selector 13 is switched to the cursor address register 4 side.
At the same time, a write command and data are given to the refresh memory 12 from the CPU via the 1/0 port 4,
Data is written to the address specified by the cursor address register 4. Next, the control operation of the CPU when modifying display data will be explained with reference to the flowchart of FIG.

第4図はカーソルより右にある文字を1文字分右にづら
し、カーソル上に1文字を挿入する場合のフローチャー
トを示すもので、修正動作を行う場合にはまず、ステッ
プAに示すようにカーソル上にスタートマークがあるか
杏かをチェックする。すなわち、スタートマークについ
ては修正を行わないので、上記ステップAのチェックを
行い、スタートマークがあればステップBに示すように
メインメモリー01こ記憶している力−ソルアドレスM
cを十1する。そして、この十1した新しいカーソルア
ドレスMcをステップCに示すようにメインメモリー0
から議出し、1/0ボート4を介してカーソルアドレス
レジスタ14にセットする。これによってスタートマー
クの次の文字がカーソル表示される。このように最初ス
タートマーク位置にカーソル表示が行われている場合は
、修正処理を行わずにカーソル表示を1部字分進めて処
理を終了する。従ってスタートマーク位置にカーソル表
示が行われている状態で修正データを入力したとしても
入力データは無効となり、スタートマークの消去を防止
することができる。また、上記ステップAにおいて、カ
ーソル上にスタートマークが無ければステップDに進み
、メインメモリ1O‘こ記憶しているカーソルアドレス
Mcをメインメモリ1 0内の記憶領域M,に書込む。
Figure 4 shows a flowchart for inserting one character on the cursor by shifting the character to the right of the cursor by one character. Check to see if there is a start mark on the top. In other words, since the start mark is not modified, the check in step A above is performed, and if there is a start mark, the force-sol address M stored in main memory 01 is checked as shown in step B.
Add c to 11. Then, the new cursor address Mc is set to 0 in the main memory as shown in step C.
, and set it in the cursor address register 14 via the 1/0 port 4. This will display the cursor next to the start mark. If the cursor is initially displayed at the start mark position as described above, the cursor is advanced by one character without performing any correction processing, and the process ends. Therefore, even if correction data is input while the cursor is displayed at the start mark position, the input data becomes invalid, and the start mark can be prevented from being erased. Further, in step A, if there is no start mark on the cursor, the process proceeds to step D, where the cursor address Mc stored in the main memory 10' is written into the storage area M, in the main memory 10'.

次いでステップEに進み上記カーソルアドレスMcとメ
インメモリ10に記憶しているスィープポィンタMsが
等しいか否かを判定する。この判定の結果、カーソルア
ドレスMcとスィーブポインタMsが等しくなければ、
ステップFに示すようにカーソルアドレスMcをカーソ
ルアドレスレジスタ14に転送する。このカーソルアド
レスレジスター4にセットされた力−ソルアドレスRc
によりカーソル表示が行われる。次いでステップGに示
すようにカーソル上にスタートマークが有るか否かを判
定する。この判定においてカーソル上にスタートマーク
が無ければステップ印こ進んでカーソル上にスペースコ
ードが有るか否か判定する。このステップ日においてカ
ーソル上にスペースコードが無いと判定されればステッ
プ1に示すようにこの時のメインメモリ10内のカーソ
ルアドレスMcをメインメモリ10内の記憶領域M2に
記憶させる。次いでステップJに進んでカーソルアドレ
スMcを十1し、ステップEに戻る。また、上記ステッ
プ日においてカーソル上にスペースコード有と判定され
た場合にはステップ1をジャンプしてステップJに進む
。上記E〜Jのステップは、ステップEにおいてメイン
メモリ10内のカーソルアドレスMcとスイープポイン
タMsが等しくなるまであるいはステップGにおいてカ
ーソル上にスタートマーク有と判定されるまで繰返し行
われる。また、ステップ日においてカーソル上にスペー
スコード有と判定されるまで記憶領域M2の内容が順次
十1されたカーソルアドレスに書き換えられるので、最
終的に記憶領域地にはブロックデータの文字の最後のア
ドレスが記憶される。しかして、上記ステップEにおい
てカーソルアドレスMcとスィープポィンタMsが等し
いと判定された場合、即ち、カーソルが画面の右へ順次
移動し画面の先頭までサーチした場合、あるいはステッ
プGにおいてカーソル上にスタートマーク有と判定され
た場合即ち、カーソルが次のデータブロックの行の先頭
までサーチした場合は、ステップKに進み、カーソルア
ドレスMcを−1し、画面の最後の位置あるいは修正ブ
ロックの最後の位置までカーソルアドレスMcを戻す。
Next, the process proceeds to step E, where it is determined whether the cursor address Mc and the sweep pointer Ms stored in the main memory 10 are equal. As a result of this determination, if cursor address Mc and sweep pointer Ms are not equal,
As shown in step F, the cursor address Mc is transferred to the cursor address register 14. The force set in this cursor address register 4 - sol address Rc
The cursor is displayed. Next, as shown in step G, it is determined whether or not there is a start mark on the cursor. In this judgment, if there is no start mark on the cursor, the step mark is advanced and it is judged whether or not there is a space code on the cursor. If it is determined that there is no space code on the cursor on this step date, the cursor address Mc in the main memory 10 at this time is stored in the storage area M2 in the main memory 10, as shown in step 1. Next, the process advances to step J, increments the cursor address Mc to 11, and returns to step E. Further, if it is determined that there is a space code on the cursor on the step date, step 1 is jumped and the process proceeds to step J. The above steps E to J are repeated until the cursor address Mc in the main memory 10 becomes equal to the sweep pointer Ms in step E or until it is determined that there is a start mark on the cursor in step G. In addition, the contents of the storage area M2 are sequentially rewritten to the cursor address incremented by 11 until it is determined that there is a space code on the cursor on the step date, so the storage area finally has the address of the last character of the block data. is memorized. Therefore, if it is determined in step E that the cursor address Mc and the sweep pointer Ms are equal, that is, if the cursor moves sequentially to the right of the screen and searches to the top of the screen, or if there is a start mark on the cursor in step G. In other words, if the cursor has searched to the beginning of the next data block line, proceed to step K, decrement the cursor address Mc by 1, and move the cursor to the last position on the screen or the last position of the modified block. Return address Mc.

次いでステップLに示すようにカーソルアドレスMcと
記憶領域M2の内容が等しいか否かを判定する。すなわ
ち、ステップLにおいては最後の行又は画面の最後まで
文字が有るか杏かを判定する。このステップLにおいて
カーソルアドレスMcと記憶領域地の内容が等しいと判
定された場合はステップMに進み、スィープポィンタM
sから−1した値と記憶領域M2の内容が等しいか否か
を判定する。このステップMの判定結果がYES、つま
り画面の終りまで文字が有る場合は、ステップNに進み
、記憶領域M,に記憶させた最初のカーソル位置つまり
修正部位に対応するカーソルアドレスが「MsSM,<
Ms十80」の条件を満足するか杏かを判定する。この
ステップNは修正位置を示すカーソル表示が画面の1行
目‘こ有るか否かを判定するものであり、判定結果がN
Oであれば処理0に進む。また、ステップMにおいて画
面の終りまで文字有りと判定された場合も処理0に進む
。この処理0は修正行の上側あるいは下側に1行分のイ
ンサート処理を行うもので、その詳細については後述す
る。この処理○を終了した時またはステップLにおいて
NOと判定された場合良Pち、修正ブロックの最後に文
字がない場合はステップPに進み、カーソルアドレスM
cを記憶領域M,の内容に書き換える。すなわち、カー
ソルアドレスMcを九の一文字挿入位置のアドレスに戻
す。次いでステップQに示すようにメインメモリー0内
の記憶領域M3にスペースコードを書込み、その後ステ
ップRに示すようにカーソルアドレスMcをカーソルア
ドレスレジスター4に書込む。そして、ステップSに示
すようにこのカーソルアドレスレジスター4により指定
されるカーソル上のデータをリフレッシュメモリ12か
ら論出し、メインメモリー0の記憶領域M4に書込む。
次いでステップTに示すように上註記億領域M3に記憶
しているスペースコードを議出し、カーソルアドレスに
よって指定されるリフレッシュメモリ12内に書込む。
その後ステップUに進み、記憶領域M4のデータを記憶
領域M3に転送する。そして、ステップVに示すように
記憶領域M2に十1した値がカーソルアドレスMcに等
しいか否か判定し、判定結果がNOであればステップW
に進んでカーソルアドレスMcに十1し、カーソル表示
を1桁進ませてステップRに戻る。上記R〜Wのステッ
プは、ステップVの判定結果がYESとなるまで行われ
、修正個所に1文字分のスべ−スが挿入されると共に修
正個所以降の修正ブロックのデータが1文字分右側に移
される。例えば第3図の表示例に示すように第3行目に
おいて「PRINT」と表示すべき所を「PINT」と
誤って表示た場合には、「1」の所にカーソル表示を合
わせることによって上記した修正動作が行われる。すな
わち、最初の状態では表示は「PINT」となっている
が、R〜Wのステップが1巡すると「P]NT」(]は
スペースコード)となり、以下R〜Wのステップが1巡
する毎に「P]IT」→「P]IN」→「P]INT」
と変化する。そして、ステップVの判定結果がYESと
なった時、つまりデータブロックの最後の文字まで1文
字分右側に移された時、またはステップNの判定結果が
YESとなった時つまり画面の終りまで文字があり、か
つカーソルが画面の1行目にあった時はステップXに進
み、カーソルアドレスMcを記憶領域M,が記憶してい
る最初の一文字挿入位置のアドレスに書換え、その後ス
テップCに示すようにカーソルアドレスMcをカーソル
アドレスレジスタ14に転送する。この結果、修正個所
の表示は「P]mT」となり、スペースコード部分がカ
ーソル表示される。従ってこの状態で修正データ「R」
を入力することにより、表示は「PRINT」となり、
修正処理を完了する。次に上記処理0における1行分イ
ンサート処理について第5図のフローチャートにより説
明する。まず、ステップAに示すようにカーソルアドレ
スMcから「79」を減算し、行の最後にあるカーソル
を行の初めに設定する。次にステップBに示すようにメ
インメモリ10の記憶領域M5に「0」を書込み、その
後ステップCに示すようにカーソルアドレスMcをカー
ソルアドレスレジスタ14に転送する。そして、ステッ
プDに示すようにカーソル上にスタートマークがあるか
否かを判定し「その判定結果がYESであればステップ
Eに示すように上記記憶領域M5に十1してステップF
に進む。上記ステップDにおいてNOと判定された場合
はステップEをジャンプしてステップFに進む。このス
テップFでは記憶領域M5の内容が「4」であるか否を
判定し、判定結果がNOであればステップGに進んでカ
ーソルアドレスが「0」か否か判定する。このステップ
Gの判定結果がNOであれば、ステップ日に示すように
カーソルアドレスMcから「80」を減算し、修正行よ
り1行上の行の先頭アドレスを指定してステップCに戻
る。上記C〜日のステップは、修正行より上部にそれぞ
れスタートマ−クを備えた表示行が4行以上あるか否か
を判定するためのものであり、修正行の上部に4行以上
の余裕があればステップFの判定結果がYESとなり、
修正行の上部に4行以上の余裕がなければステップGの
判定結果がYESとなる。しかして、ステップGの判定
結果がYESとなった場合は、ステップ1に進んで画面
全体を1行分ロールダウンし、最下行の表示を消去し、
その後ステップJに示すように修正行以上の画面を1行
分上へシフトし、元の状態に戻す。また、ステップFの
判定結果がYESとなった場合は、ステップKに進み、
スィープポインタMsから「80」を減算し、その減算
結果をカーソルアドレスとする。
Next, as shown in step L, it is determined whether the cursor address Mc and the contents of the storage area M2 are equal. That is, in step L, it is determined whether there are characters until the last line or the end of the screen. If it is determined in this step L that the contents of the cursor address Mc and the storage area location are equal, the process advances to step M, and the sweep pointer M
It is determined whether the value obtained by subtracting s by 1 and the contents of the storage area M2 are equal. If the judgment result in step M is YES, that is, if there are characters to the end of the screen, the process proceeds to step N, and the cursor address corresponding to the first cursor position stored in storage area M, that is, the correction part is "MsSM,<
It is determined whether the condition of "Ms 180" is satisfied or not. This step N is to judge whether or not the cursor display indicating the correction position is on the first line of the screen, and the judgment result is N.
If O, proceed to process 0. Further, if it is determined in step M that there are characters until the end of the screen, the process also proceeds to process 0. This process 0 performs insert processing for one line above or below the corrected line, and the details will be described later. When this process ○ is completed or if NO is determined in step L, the process goes to step P, and if there is no character at the end of the correction block, the cursor address M
Rewrite c with the contents of storage area M. That is, the cursor address Mc is returned to the address of the nine character insertion position. Next, as shown in step Q, a space code is written in the storage area M3 in the main memory 0, and then, as shown in step R, the cursor address Mc is written in the cursor address register 4. Then, as shown in step S, the data on the cursor specified by this cursor address register 4 is retrieved from the refresh memory 12 and written into the storage area M4 of the main memory 0.
Next, as shown in step T, the space code stored in the annotation area M3 is retrieved and written into the refresh memory 12 specified by the cursor address.
Thereafter, the process proceeds to step U, and the data in the storage area M4 is transferred to the storage area M3. Then, as shown in step V, it is determined whether the value added to the storage area M2 is equal to the cursor address Mc, and if the determination result is NO, step W
The program advances to step R, increments the cursor address Mc, advances the cursor display by one digit, and returns to step R. Steps R to W above are performed until the judgment result in step V becomes YES, and one character's worth of space is inserted at the modified location, and the data of the modified block after the modified location is shifted one character to the right. will be moved to For example, as shown in the display example in Figure 3, if "PINT" is incorrectly displayed in the third line where "PRINT" should be displayed, you can move the cursor to "1" and The corrective action will be taken. In other words, in the initial state, the display is "PINT", but after one cycle of steps R to W, it becomes "P]NT" (where brackets are a space code). "P]IT" → "P]IN" → "P]INT"
and changes. Then, when the judgment result of step V becomes YES, that is, the last character of the data block has been moved one character to the right, or when the judgment result of step N becomes YES, that is, the characters reach the end of the screen. is present and the cursor is on the first line of the screen, proceed to step Then, the cursor address Mc is transferred to the cursor address register 14. As a result, the corrected part is displayed as "P]mT", and the space code part is displayed with a cursor. Therefore, in this state, the corrected data "R"
By entering , the display will become "PRINT",
Complete the correction process. Next, the one-line insert process in process 0 will be explained with reference to the flowchart shown in FIG. First, as shown in step A, "79" is subtracted from the cursor address Mc to set the cursor at the end of the line to the beginning of the line. Next, as shown in step B, "0" is written in the storage area M5 of the main memory 10, and then, as shown in step C, the cursor address Mc is transferred to the cursor address register 14. Then, as shown in step D, it is determined whether or not there is a start mark on the cursor, and if the result of the determination is YES, as shown in step E, the storage area M5 is
Proceed to. If the determination in step D is NO, step E is jumped and the process proceeds to step F. In this step F, it is determined whether the content of the storage area M5 is "4" or not. If the determination result is NO, the process proceeds to step G and it is determined whether the cursor address is "0" or not. If the determination result in step G is NO, "80" is subtracted from the cursor address Mc as shown in the step date, the start address of the line one line above the corrected line is specified, and the process returns to step C. Steps C to Day above are for determining whether there are four or more display lines each with a start mark above the correction line, and there is a margin of four or more lines above the correction line. If there is, the judgment result in step F will be YES,
If there is no margin of four or more lines above the corrected line, the determination result in step G becomes YES. However, if the determination result in step G is YES, proceed to step 1, roll down the entire screen by one line, erase the bottom line display,
Thereafter, as shown in step J, the screen above the corrected line is shifted up by one line and returned to its original state. Furthermore, if the determination result in step F is YES, proceed to step K.
"80" is subtracted from the sweep pointer Ms, and the subtraction result is set as the cursor address.

次いでステップLに進み、カーソルアドレスMcが「0
」より小さいか否かを判定する。この判定結果がYES
であれば、ステップMに示すようにカーソルアドレスM
cを「1840」つまり最下行の先頭アドレスに設定し
、ステップNに進む。また、ステップLの判定結果がN
Oであれば、この時のカーソルアドレスMcが最下行の
先頭アドレスであるので、そのままステップNに進み、
カーソルアドレスMcをカーソルアドレスレジス夕14
に転送する。そして、ステップ0においてカーソル上に
スペースコードが有るか否かを判定する。このステップ
0は最下行が空いているか否かを判定するためのもので
あり、最下行が空いていれば前記ステップ1に進んでロ
ールダウン処理を行う。また、ステップ○の判定結果が
NOで画面の最下行が空いていなければ、ステップPに
進み、画面全体を1行分ロールアップして最上行を消去
する。次にステップQに進み、修正行より下の画面を1
行分下へシフトする。以上で1行分のインサート処理を
終了する。上記実施例では修正行の上部に4行以上の余
裕がある場合に最上行を消去するようにしたが、その余
裕度は上記実施例に限定されるものでなく、任意に設定
し得るものである。又、上記実施例では表示装置として
CRT表示装置を示したが、本発明はこれに限定される
ことなく、例えば、液晶表示装置、やプラズマディスプ
レイ等、画面表示をし得る表示装置であればよいことは
もちろんである。以上述べたように本発明によれば、画
面の編集を行う際に、画面の表示状態を調べて画面の上
下のシフト方向を決定するようにしたので、修正行が画
面の最上行あるいは最下行に位置している場合でも修正
行が消去されることを確実に防止することができる。
Next, the process advances to step L, where the cursor address Mc is set to "0".
”. This judgment result is YES
If so, the cursor address M is set as shown in step M.
Set c to "1840", that is, the first address of the bottom line, and proceed to step N. Also, the determination result of step L is N
If it is O, the cursor address Mc at this time is the first address of the bottom line, so proceed directly to step N.
Cursor address Mc to cursor address register E14
Transfer to. Then, in step 0, it is determined whether or not there is a space code on the cursor. This step 0 is for determining whether or not the bottom row is empty. If the bottom row is empty, the process proceeds to step 1 and roll-down processing is performed. If the determination result in step ◯ is NO and the bottom line of the screen is not empty, the process proceeds to step P, where the entire screen is rolled up by one line and the top line is erased. Next, proceed to step Q and edit the screen below the correction line by 1.
Shift down a line. This completes the insert processing for one line. In the above embodiment, the top line is deleted if there is a margin of 4 or more lines above the correction line, but the margin is not limited to the above embodiment and can be set arbitrarily. be. Further, in the above embodiments, a CRT display device is shown as the display device, but the present invention is not limited to this, and any display device capable of screen display may be used, such as a liquid crystal display device or a plasma display. Of course. As described above, according to the present invention, when editing a screen, the display state of the screen is checked to determine the vertical shift direction of the screen, so that the correction line is the top line or the bottom line of the screen. It is possible to reliably prevent a modified line from being deleted even if the modified line is located at

【図面の簡単な説明】[Brief explanation of the drawing]

図面は本発明の一実施例を示すもので、第1図は全体の
概略構成を示すブロック図、第2図は第1図における表
示制御部の詳細を示す構成図、第3図は表示例を示す図
、第4図及び第5図は動作内容を示すフローチャートで
ある。 1・・・・・・CPU(中央処理装置)、4,5・・・
・・・1/○ボート、7a…・・・表示制御部、7b・
・・・・・CRT表示部、10・・・・・・メインメモ
リ、12…・・・リフレツシユメモリ。 第1図 第2図 第3図 第4図 第5図
The drawings show one embodiment of the present invention; FIG. 1 is a block diagram showing the overall schematic configuration, FIG. 2 is a configuration diagram showing details of the display control section in FIG. 1, and FIG. 3 is a display example. , FIG. 4, and FIG. 5 are flowcharts showing the operation contents. 1... CPU (Central Processing Unit), 4, 5...
...1/○ boat, 7a...display control section, 7b.
. . . CRT display section, 10 . . . Main memory, 12 . . . Refresh memory. Figure 1 Figure 2 Figure 3 Figure 4 Figure 5

Claims (1)

【特許請求の範囲】[Claims] 1 表示画面の各データブロツク毎の行の先頭を示すス
タートマークと、画面編集における文字挿入操作時に文
字挿入位置をカーソルマークにより指示する手段と、上
記文字挿入行の最後に文字がある場合に文字挿入行より
上側に位置するスタートマーク数を検出する手段と、こ
の手段により検出したスタートマーク数が設定値より少
ない場合及び表示画面の最下行が空白の場合に上記文字
挿入行より下側の全ての行を1行分下側にシフトする手
段と、上記スタートマーク数検出手段により検出したス
タートマーク数が設定値以上で表示画面の最下行が空白
でない場合に上記文字挿入行以上の全ての行を1行分上
側にシフトする手段と、上記カーソルマーク位置以後の
文字を1文字分ずつ後方にシフトして上記カーソルマー
ク指示位置に入力データを書込む手段とを具備したこと
を特徴とする画面編集方式。
1. A start mark that indicates the beginning of a line for each data block on the display screen, a means for indicating the character insertion position using a cursor mark during character insertion operations in screen editing, and a means for indicating the character insertion position using a cursor mark when a character is inserted at the end of the character insertion line. A means for detecting the number of start marks located above the insertion line, and when the number of start marks detected by this means is less than a set value or when the bottom line of the display screen is blank, all the characters below the character insertion line are detected. means for shifting the line downward by one line, and when the number of start marks detected by the start mark number detecting means is greater than or equal to the set value and the bottom line of the display screen is not blank, all lines above the character insertion line. A screen characterized in that it is equipped with means for shifting the cursor mark upward by one line, and means for shifting characters after the cursor mark position backward one character at a time and writing input data at the position indicated by the cursor mark. Editing method.
JP52104595A 1977-08-31 1977-08-31 Screen editing method Expired JPS6019516B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP52104595A JPS6019516B2 (en) 1977-08-31 1977-08-31 Screen editing method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP52104595A JPS6019516B2 (en) 1977-08-31 1977-08-31 Screen editing method

Publications (2)

Publication Number Publication Date
JPS5437640A JPS5437640A (en) 1979-03-20
JPS6019516B2 true JPS6019516B2 (en) 1985-05-16

Family

ID=14384771

Family Applications (1)

Application Number Title Priority Date Filing Date
JP52104595A Expired JPS6019516B2 (en) 1977-08-31 1977-08-31 Screen editing method

Country Status (1)

Country Link
JP (1) JPS6019516B2 (en)

Families Citing this family (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS57123444A (en) * 1981-01-23 1982-07-31 Canon Inc Character processor
JPS60111283A (en) * 1983-11-19 1985-06-17 ブラザー工業株式会社 Typewriter
US4617356A (en) * 1984-06-15 1986-10-14 Matsushita Electric Industrial Co., Ltd. Temperature sensitive polymer compositions
JPS612301A (en) * 1984-06-15 1986-01-08 松下電器産業株式会社 polymer thermosensor
JPH07168819A (en) * 1994-08-23 1995-07-04 Brother Ind Ltd Data processing device

Also Published As

Publication number Publication date
JPS5437640A (en) 1979-03-20

Similar Documents

Publication Publication Date Title
US4196430A (en) Roll-up method for a display unit
US4789855A (en) Device for editing document in colors
JPS6019516B2 (en) Screen editing method
JPS5930301B2 (en) Screen information transfer confirmation display method
JPH07296103A (en) Online character recognizer
JP2002033971A (en) On-screen information rewriting device
JPH0869351A (en) Pen input device and pen input method
JP3626566B2 (en) Information processing apparatus and character erasing method thereof
JPH0522933B2 (en)
US5412403A (en) Video display control circuit
JPH01118190A (en) information processing equipment
JPH0378890A (en) Display method for tabular document information
JP2002123248A (en) Image display controller and image display device having the controller
JP2568716B2 (en) CRT display circuit
JP2771959B2 (en) Image processing method
JPH10172001A (en) Drawing apparatus, drawing method thereof, and recording medium thereof
JPS6210831Y2 (en)
JPH0816809A (en) Drawing system
JPS6360915B2 (en)
JPH0765113A (en) Read data display device
JPH087566B2 (en) CRT display device
JPH07261729A (en) Monitor adjustment system
JPS613192A (en) Memory of screen information
JPH05743B2 (en)
JPH01154280A (en) picking processing equipment