屏幕编辑 [英] Screen Editing
问题描述
我只是想知道是否有任何方法可以编辑任何已经使用系统(cls)命令打印在屏幕上的
。
I was just wondering if there is any way of editing anything already
printed on the screen with out using the system("cls") command.
推荐答案
某人< ra ************ @ gmail.comwrote:
someone <ra************@gmail.comwrote:
我只是想知道是否有任何方法可以编辑任何已经使用系统(cls)命令打印在屏幕上的
。
I was just wondering if there is any way of editing anything already
printed on the screen with out using the system("cls") command.
不可移植,因为符合标准的实现不需要
涉及任何类似屏幕的内容。根据您的需求和平台,有多种选择可供选择
,但这些都不是
这里的主题。
-
C. Benson Manica |我*应该*知道我在说什么 - 如果我
cbmanica(at)gmail.com |不,我需要知道。火焰欢迎。
Not portably, since a standard-conformant implementation need not
involve anything resembling a "screen". There are a number of choices
available depending on your needs and platform, but none of them are
topical here.
--
C. Benson Manica | I *should* know what I''m talking about - if I
cbmanica(at)gmail.com | don''t, I need to know. Flames welcome.
某人 < ra ************ @ gmail.comwrites:
"someone" <ra************@gmail.comwrites:
我只是想知道是否有任何编辑方式已经
打印在屏幕上,没有使用系统(cls)命令。
I was just wondering if there is any way of editing anything already
printed on the screen with out using the system("cls") command.
没有可移植的方法来执行此操作。
comp.lang.c常见问题解答位于< http: //www.c-faq.com/> ;.你问了问题
问题19.4。
-
Keith Thompson(The_Other_Keith) ks *** @ mib.org < http://www.ghoti.net/~kst>
圣地亚哥超级计算机中心< * < http://users.sdsc.edu/~kst>
我们必须做点什么。这是事情。因此,我们必须这样做。
There is no portable way to do this.
The comp.lang.c FAQ is at <http://www.c-faq.com/>. You have asked
question 19.4.
--
Keith Thompson (The_Other_Keith) ks***@mib.org <http://www.ghoti.net/~kst>
San Diego Supercomputer Center <* <http://users.sdsc.edu/~kst>
We must do something. This is something. Therefore, we must do this.
printf(" \ 033 [2J"]; / *清除屏幕* /
printf(" \ 033 [%d;%dH",10,20]; / *移动光标(第10行,第20行)* /
printf(" Hello,");
printf(" \ 033 [7mworld \ !033 [0米"); / *反向视频* /
我试过上面的命令。似乎不适用于解释。
printf(" \ 033 [2J"];显示"< -2j"
...........
谁能告诉我他的结果?
- -------------------------------------------------- ---
" Keith Thompson" < ks *** @ mib.org???????ln************@nuthaus.mib.or g ...
printf("\033[2J"); /* clear screen */
printf("\033[%d;%dH", 10, 20); /* move cursor (row 10, col 20) */
printf("Hello, ");
printf("\033[7mworld\033[0m!"); /* inverse video */
I tried upper commands. Seems does not work proper as the explanations.
printf("\033[2J"); display"<-2j"
...........
could anyone tell me his results?
------------------------------------------------------
"Keith Thompson" <ks***@mib.org??????:ln************@nuthaus.mib.or g...
某人 < ra ************ @ gmail.comwrites:
"someone" <ra************@gmail.comwrites:
>我只是想知道是否有任何编辑方式已经
打印在屏幕上,没有使用系统(cls)命令。
>I was just wondering if there is any way of editing anything already
printed on the screen with out using the system("cls") command.
没有可移植的方法来执行此操作。
comp.lang.c常见问题解答位于< http: //www.c-faq.com/> ;.你问了问题
问题19.4。
-
Keith Thompson(The_Other_Keith) ks *** @ mib.org
< http://www.ghoti.net/~kst>
圣地亚哥超级计算机中心< *>
< http://users.sdsc.edu/~kst>
我们必须做点什么。这是事情。因此,我们必须这样做。
There is no portable way to do this.
The comp.lang.c FAQ is at <http://www.c-faq.com/>. You have asked
question 19.4.
--
Keith Thompson (The_Other_Keith) ks***@mib.org
<http://www.ghoti.net/~kst>
San Diego Supercomputer Center <*>
<http://users.sdsc.edu/~kst>
We must do something. This is something. Therefore, we must do this.
这篇关于屏幕编辑的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!