JPH03186919A - Keyboard control system - Google Patents
Keyboard control systemInfo
- Publication number
- JPH03186919A JPH03186919A JP1326679A JP32667989A JPH03186919A JP H03186919 A JPH03186919 A JP H03186919A JP 1326679 A JP1326679 A JP 1326679A JP 32667989 A JP32667989 A JP 32667989A JP H03186919 A JPH03186919 A JP H03186919A
- Authority
- JP
- Japan
- Prior art keywords
- information
- queue buffer
- key input
- empty
- buffer
- 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.)
- Granted
Links
- 238000000034 method Methods 0.000 claims description 6
- 238000010586 diagram Methods 0.000 description 3
- 239000000284 extract Substances 0.000 description 1
- 230000008676 import Effects 0.000 description 1
Landscapes
- Input From Keyboards Or The Like (AREA)
Abstract
Description
【発明の詳細な説明】
〔概要〕
キーボードからのタイパマチック情報の取り込みを行う
キーボード制御方式に関し、
キー入力情報であるタイパマチック情報のキューバッフ
ァへの格納時に当該キューバッファの空き/充をチエツ
クして格納/捨てることにより、使用者が意識している
キー入力と実際の処理とのずれおよびキー入力情報の取
りこぼしを無くし、使い易いマンマシンインタフェース
を作成することを目的とし、
キーボードから入力されたキー入力情報を一時的に格納
すると共にこれら格納されたキー入力情報を処理プログ
ラムが古いものから順に取り出すキューバッファと、こ
のキューバッファの空きを表すバッファエンプティフラ
グとを備え、キーポ−ドから入力されたキー入力情報が
タイパマチック情報かつ上記バッファエンプティフラグ
を参照してキューバッファが空きでないときに当1亥タ
イパマチック情報を捨て、それ以外のときのタイパマチ
ック情報、およびメイク情報/ブレイク情報を上記キュ
ーバッファに格納し、処理プログラムが当該キューバッ
ファから古い順に取り出すように槽底する。[Detailed Description of the Invention] [Summary] Regarding a keyboard control method that imports typermatic information from a keyboard, when storing typermatic information, which is key input information, in a queue buffer, the queue buffer is checked to see if it is empty or full. The aim is to create an easy-to-use man-machine interface by eliminating the discrepancy between the key input that the user is aware of and the actual processing, and by storing and discarding the information input from the keyboard. It is equipped with a queue buffer that temporarily stores key input information and from which the processing program retrieves the stored key input information in order from the oldest one, and a buffer empty flag that indicates the empty space of this queue buffer. If the input key input information is typermatic information and the queue buffer is not empty by referring to the buffer empty flag above, the typermatic information is discarded, and the typermatic information and make information/break information at other times are They are stored in a queue buffer, and the processing program takes them out from the queue buffer in the order of oldest to lowest.
本発明は、キーボードからのタイパマチック情報の取り
込みを行うキーボード制御方式に関するものである。一
般にキーボードからこれが接続されているCPUに対し
て通知する情報として、あるキーが押された情報(メイ
ク情報、make情報)/離された情報(ブレイク情報
、brake情@)以外に、あるキーが押下され続けて
いるという情報(タイパマチック情報、typer□a
tic情報)がある。このうちのタイパマチック情報を
使用者が使い易くかつキー入力情報の取りこぼしなく取
り込むことが望まれている。The present invention relates to a keyboard control method for capturing typermatic information from a keyboard. In general, information that a keyboard notifies the CPU to which it is connected includes information that a certain key is pressed (make information, make information)/released (break information, brake information@), and also information that a certain key is Information that it continues to be pressed (typermatic information, typer□a
tic information). Of these, it is desired that the typermatic information be easily used by the user and be captured without missing any key input information.
〔従来の技術と発明が解決しようとする課題〕従来のキ
ーボード制御は、キーボードから全ての入力データをF
IFO形式のキューバッファに一旦格納する。そして、
キーボードからの入力データを利用するプログラムがこ
のキューバッファの先頭から1つ1つ取り出して処理し
ている。従って、キーボードからの入力が一時的に、こ
れを利用するプログラムの処理速度を上回った場合でも
、その上回った入力データについてキューバッファに保
存されるので、入力データを取りこぼすことなく処理す
ることが可能となる。[Problems to be solved by the prior art and the invention] Conventional keyboard control requires all input data to be input from the keyboard.
Temporarily store it in an IFO format queue buffer. and,
A program that uses input data from the keyboard extracts data one by one from the beginning of this queue buffer and processes it. Therefore, even if the input from the keyboard temporarily exceeds the processing speed of the program that uses it, the excess input data is stored in the queue buffer, making it possible to process the input data without missing it. It becomes possible.
しかし、この際、タイパマチック情報の入力データも併
せてキューバッファに入力してしまうので、使用者が意
識している本来の動作と異なる場合が発生してしまうと
いう問題がある。例えばワードプロセッサなどの文章作
成プログラムがタイパマチック情報を利用している場合
、使用者がカーソル移動キーを押下し続けてデイスプレ
ィに表示されたカーソルを目的とする位置に移動させよ
うとするとき、タイパマチック情報がキューバ・7フア
に滞留してしまうと、カーソル移動キーの押下を止めて
も当該キューバッファに滞留した分だけ余分にカーソル
が移動してしまい、使用者の意識と異なって使い難いも
のとなってしまう。このような余分のカーソル移動を防
ぐためにキューバッファの段数を小さくしてしまうと、
プログラムの処理速度がキー入力に比して遅いと、当該
キー入力を取りこぼしてしまう問題がある。However, at this time, the input data of the typermatic information is also input to the queue buffer, so there is a problem that the operation may differ from the original operation that the user is aware of. For example, if a writing program such as a word processor uses Typermatic information, when the user attempts to move the cursor displayed on the display to the desired position by holding down a cursor movement key, the Typermatic information If information stays in Cuba 7F, even if you stop pressing the cursor movement key, the cursor will move an additional amount by the amount that stays in the queue buffer, making it difficult to use unlike the user's intention. turn into. If you reduce the number of queue buffer stages to prevent such extra cursor movement,
If the processing speed of the program is slower than the key input, there is a problem that the key input may be missed.
本発明は、キー入力情報であるタイパマチック情報のキ
ューバッファへの格納時に当該キューバッファの空き/
充をチエツクして格納/捨てることにより、使用者が意
識しているキー入力と実際の処理とのずれおよびキー入
力情報の取りこぼしを無くシ、使い易いマンマシンイン
タフェースを作成することを目的としている。In the present invention, when storing typermatic information, which is key input information, in a queue buffer,
The purpose is to create an easy-to-use man-machine interface that eliminates the discrepancy between the user's conscious key input and the actual processing and the omission of key input information by checking the content and storing/discarding it. .
第1図は、本発明の原理構成図を示す。 FIG. 1 shows a basic configuration diagram of the present invention.
第1図において、CPUIは、キーボード2からのキー
入力情報を取り込みなどするものである。In FIG. 1, the CPUI is for taking in key input information from the keyboard 2.
キューバッファ3は、キーボード2から入力されたキー
入力情報を一時的に格納すると共にこれら格納されたキ
ー入力情報を処理プログラムが古いものから順に取り出
すバッファである。The queue buffer 3 is a buffer that temporarily stores key input information input from the keyboard 2 and from which a processing program retrieves the stored key input information in order from the oldest one.
バッファエンプティフラグ4は、キューバッファ3が空
を表すフラグである。The buffer empty flag 4 is a flag indicating that the queue buffer 3 is empty.
本発明は、第1図に示すように、CPULがキーボード
2から入力されたキー入力情報についてタイパマチック
情報かつバッファエンプティフラグ4を参照してキュー
バッファ3が空きでないと判定したときに当該タイパマ
チック情報を捨て、それ以外のときのタイパマチック情
報、およびメイク情報/ブレイク情報をキューバッファ
3に格納し、処理プログラムがこのキューバッファ3か
ら古いキー入力情報の順に取り出すようにしている。As shown in FIG. 1, in the present invention, when the CPU determines that the queue buffer 3 is not empty by referring to the tiermatic information and the buffer empty flag 4 regarding the key input information input from the keyboard 2, the tiermatic The information is discarded, and the typermatic information and make information/break information at other times are stored in the queue buffer 3, and the processing program retrieves the key input information from the queue buffer 3 in the order of oldest key input information.
従って、タイパマチック情報のキューバッファ3への格
納時に当該キューバッファ3の空き/充をチエツクして
格納/捨てることにより、使用者が意識しているキー入
力と実際の処理とのずれおよびキー入力情報の取りこぼ
しを無くし、使い易いマンマシンインタフェースを作成
することが可能となる。Therefore, by checking whether the queue buffer 3 is empty or full when storing typermatic information in the queue buffer 3 and storing/discarding it, it is possible to eliminate the discrepancy between the key input that the user is aware of and the actual processing. It is possible to create an easy-to-use man-machine interface without missing any information.
次に、第2図および第3図を用いて本発明の1実施例の
構成および動作を順次詳細に説明する。Next, the configuration and operation of one embodiment of the present invention will be explained in detail using FIGS. 2 and 3.
第2図において、CPUIば、アプリケーションプログ
ラム5およびキーボード制御プログラム6をもとに処理
を行うものである。In FIG. 2, the CPU performs processing based on an application program 5 and a keyboard control program 6. In FIG.
アプリケーションプログラム5は、キューバッファ3か
ら最も古いキー入力情報を順次取り出してこれに対応す
る処理を行う応用プログラムである。The application program 5 is an application program that sequentially retrieves the oldest key input information from the queue buffer 3 and performs corresponding processing.
キーボード制御プログラム6ば、キーボード2からの割
込みによって呼び出され、キー入力情報を取り込み、後
述する第3図フローチャートに従ってキューバッファ3
にキー入力情報を格納したり、当該キー入力情報を捨て
たりなどするものである。The keyboard control program 6 is called by an interrupt from the keyboard 2, takes in key input information, and stores it in the queue buffer 3 according to the flowchart in FIG. 3, which will be described later.
The key input information is stored in the key input information, or the key input information is discarded.
キューバッファ3は、FIFO型のバッファであって、
最も先に格納したキー入力情報から順に取り出すバッフ
ァである。The queue buffer 3 is a FIFO type buffer,
This is a buffer from which key input information stored first is retrieved in order.
次に、第3図フローチャートを用いて第2図構成の動作
を詳細に説明する。Next, the operation of the configuration shown in FIG. 2 will be explained in detail using the flowchart shown in FIG.
第3図において、■は、タイパマチック情報か/
否かを判別する。これは、第2図キーボード2から割込
みによってCPUIに通知され、CPUIから呼び出さ
れたキーボード制御プログラム6が、キーボード2から
取り込んだキー入力情報についてタイパマチック情報(
キーが連続して押下されているキー入力情報)か否かを
判別する。YESの場合(タイパマチック情報の場合〉
には、@を行う。Noの場合(メイク情報/ブレイク情
報の場合)には、■でメイク情I!/ブレイク情報をキ
ューバッファ3に格納スる。In FIG. 3, ■ determines whether the information is typermatic information or not. This is notified to the CPUI by an interrupt from the keyboard 2 in FIG. 2, and the keyboard control program 6 called from the CPUI uses typermatic information (
It is determined whether the key input information indicates that a key has been pressed continuously. If YES (Taipamatic information)
, do @. In the case of No (in the case of makeup information/break information), press ■ to enter the makeup information I! /Stores break information in queue buffer 3.
■は、バッファエンプティフラグ4が0FF(−キュー
バッファ3が空き)かを判別する。YESの場合(キュ
ーバッファ3が空きの場合)には、■で当該タイパマチ
ック情報をキューバッファ3に格納する。一方、Noの
場合(キューバッファ3が空きでない場合)には、当該
タイパマチック情報を捨てる。このようにキューバッフ
ァ3にキー入力情報が滞留しているときに、タイパマチ
ック情報をキューバッファ3に格納しないことにより、
タイパマチック情報がキューバッファ3に滞留すること
による使用者が意識しているキー入力と実際の処理との
ずれがなくなると共に、キューバッファ3が満杯でキー
入力情報(メイク情報/ブレイク情報)を取りこぼすこ
とがなくなる。(2) determines whether the buffer empty flag 4 is 0FF (-the queue buffer 3 is empty). If YES (if the queue buffer 3 is empty), the typermatic information is stored in the queue buffer 3 in step (3). On the other hand, if No (if the queue buffer 3 is not empty), the relevant typermatic information is discarded. By not storing typermatic information in the queue buffer 3 when key input information is accumulated in the queue buffer 3 in this way,
This eliminates the discrepancy between key inputs that the user is aware of and actual processing due to typermatic information remaining in the queue buffer 3, and also prevents key input information (make information/break information) from being processed when the queue buffer 3 is full. No more spills.
以上説明したように、本発明によれば、タイパマチック
情報のキューバッファ3への格納時に当該キューバッフ
ァ3の空き/充をチエツクして格納/捨てる構成を採用
しているため、タイパマチック情報における使用者が意
識しているキー入力と実際の処理とのずれをなくすこと
ができると共に、キー入力情報の取りこぼしを無くすこ
とができる。これにより、キーボード2の使い易いマン
マシンインタフェースを作成することが可能となる。As explained above, according to the present invention, when storing tiermatic information in the queue buffer 3, the configuration is adopted in which the empty/full state of the queue buffer 3 is checked and stored/discarded. It is possible to eliminate the discrepancy between the key input that the user is conscious of and the actual processing, and it is also possible to eliminate the omission of key input information. This makes it possible to create an easy-to-use man-machine interface for the keyboard 2.
第1図は本発明の原理構成図、第2図は本発明の■実施
例構成図、第3図は本発明の動作説明フローチャートを
示す。
図中、lはCPU、2はキーボード、3はキューバッフ
ァ (F I FO型〉、4はバッファエンプティフラ
グ、5はアプリケーションプログラム、6はキーボード
制御プログラムを表す。FIG. 1 is a diagram showing the principle configuration of the present invention, FIG. 2 is a diagram showing the configuration of an embodiment of the present invention, and FIG. 3 is a flowchart explaining the operation of the present invention. In the figure, l represents a CPU, 2 a keyboard, 3 a queue buffer (FIFO type), 4 a buffer empty flag, 5 an application program, and 6 a keyboard control program.
Claims (1)
キーボード制御方式において、 キーボード(2)から入力されたキー入力情報を一時的
に格納すると共にこれら格納されたキー入力情報を処理
プログラムが古いものから順に取り出すキューバッファ
(3)と、 このキューバッファ(3)の空きを表すバッファエンプ
ティフラグ(4)とを備え、 キーボード(2)から入力されたキー入力情報がタイパ
マチック情報かつ上記バッファエンプティフラグ(4)
を参照してキューバッファ(3)が空きでないときに当
該タイパマチック情報を捨て、それ以外のときのタイパ
マチック情報、およびメイク情報/ブレイク情報を上記
キューバッファ(3)に格納し、処理プログラムが当該
キューバッファ(3)から古い順に取り出すように構成
したことを特徴とするキーボード制御方式。[Claims] In a keyboard control method that takes in typermatic information from a keyboard, key input information input from the keyboard (2) is temporarily stored, and the stored key input information is processed by a processing program. It is equipped with a queue buffer (3) that is retrieved in order from the oldest one, and a buffer empty flag (4) that indicates the empty space of this queue buffer (3). Empty flag (4)
When the queue buffer (3) is not empty, the relevant typermatic information is discarded, and the typermatic information and make information/break information at other times are stored in the queue buffer (3), and the processing program A keyboard control method characterized in that data is retrieved from the queue buffer (3) in the order of oldest.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP1326679A JP2507641B2 (en) | 1989-12-15 | 1989-12-15 | Keyboard control system |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP1326679A JP2507641B2 (en) | 1989-12-15 | 1989-12-15 | Keyboard control system |
Publications (2)
Publication Number | Publication Date |
---|---|
JPH03186919A true JPH03186919A (en) | 1991-08-14 |
JP2507641B2 JP2507641B2 (en) | 1996-06-12 |
Family
ID=18190445
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP1326679A Expired - Fee Related JP2507641B2 (en) | 1989-12-15 | 1989-12-15 | Keyboard control system |
Country Status (1)
Country | Link |
---|---|
JP (1) | JP2507641B2 (en) |
Citations (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JPS608925A (en) * | 1983-06-28 | 1985-01-17 | Fujitsu Ltd | Processing method of overlap key input |
-
1989
- 1989-12-15 JP JP1326679A patent/JP2507641B2/en not_active Expired - Fee Related
Patent Citations (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JPS608925A (en) * | 1983-06-28 | 1985-01-17 | Fujitsu Ltd | Processing method of overlap key input |
Also Published As
Publication number | Publication date |
---|---|
JP2507641B2 (en) | 1996-06-12 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
JPS6150328B2 (en) | ||
JPH03186919A (en) | Keyboard control system | |
JPS6126087B2 (en) | ||
JPS63268064A (en) | Picture type text editor control system distributedly processed by host computer and terminal equipment | |
JP2513708B2 (en) | Cure management processing method | |
JP3076303B2 (en) | Information processing device | |
JP2830239B2 (en) | Input display control device | |
JP2768352B2 (en) | Graphic drawing processing system | |
JPH02121021A (en) | Multi-window plotting inputting system | |
JPH01194043A (en) | Electronic computer | |
JPH04178860A (en) | I/o completion notification control system for i/o driver | |
JPH06230898A (en) | Pen input device | |
JPH06266630A (en) | Input/output controller with trace function | |
JPH01200285A (en) | Cursor movement controller | |
JPS626317A (en) | State transition synchronizing system | |
JPH0656574B2 (en) | Real-time drawing processing method | |
JPH0573185A (en) | Keyboard input control system | |
JPH02285412A (en) | Control system for continuous input of identical code | |
JPH07120232B2 (en) | Keyboard control system | |
JPH0769900B2 (en) | In-cell word wrap control method | |
JPH0235536A (en) | Update processing system for on-line file index part | |
JPH01130214A (en) | Data input system | |
JPH02267621A (en) | I/o priority deciding system for computer | |
JPH0247745A (en) | Cache buffer sweep control system | |
JPH04522A (en) | Information processor |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20080402 Year of fee payment: 12 |
|
FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20090402 Year of fee payment: 13 |
|
LAPS | Cancellation because of no payment of annual fees |