C言語質問スレ【激初心者】
■ このスレッドは過去ログ倉庫に格納されています
0549デフォルトの名無しさん
2005/11/17(木) 18:32:02「device=%SystemRoot%\system32\ANSI.SYS」をconfig.NTに追加して、
system32の方のプロンプトに直接エスケープシーケンスを書き込んで機能させるところまでできたのですが・・・。
#include<stdio.h>
#include<time.h>
#include<conio.h>
main()
{
time_t timee;
struct tm *timee2;
char *timee3;
while(!kbhit()){
time(&timee);
timee2 = localtime(&timee);
timee3 = asctime(timee2);
printf("\x1b[4;1H");
printf("現在時刻:%s", timee3);
}
return 0;
}
ESC部分は、¥0x1b、¥x1b、で試しました。
よろしくお願いします。
■ このスレッドは過去ログ倉庫に格納されています