必须首先保存当前的光标位置。
在显示了这些信息之后,光标必须返回到使用tputsc保存的原始位置。
When the information has been displayed, the cursor must return to the original location that was saved with tput sc.
要使光标返回到其上次保存的位置,请包括rc选项或“restorecursorposition”。
To return the cursor to its last saved location, include the rc option, or "restore cursor position."
此函数中演示的内容还包括:将光标转变为不可见,清除屏幕,打印文本,以及返回到保存的光标位置。
Also demonstrated in this function are turning the cursor invisible, clearing the screen, printing text, and returning to the saved cursor location.
不可见的光标现在移动到(3,10),此位置将被保存,然后光标将移动到(0,0)(左上角)。
The invisible cursor is now moved to 3, 10, the location is saved, and then the cursor is moved to 0, 0 (top left).
在保存了光标位置后,光标坐标将移动到 (23,45)。
After the cursor location has been saved, the cursor coordinates will be moved to 23,45.
该函数做很多位置整理(position -munging)工作,但都可归结为一个简单的思想:不断保存鼠标光标与目标对象之间的精确的距离。
This function does a good bit of position-munging, but it all boils down to a simple idea: Keep constant the precise distance between the mouse cursor and the target object.
该函数做很多位置整理(position -munging)工作,但都可归结为一个简单的思想:不断保存鼠标光标与目标对象之间的精确的距离。
This function does a good bit of position-munging, but it all boils down to a simple idea: Keep constant the precise distance between the mouse cursor and the target object.
应用推荐