KR19990030591A - File colorization method - Google Patents

File colorization method Download PDF

Info

Publication number
KR19990030591A
KR19990030591A KR1019970050864A KR19970050864A KR19990030591A KR 19990030591 A KR19990030591 A KR 19990030591A KR 1019970050864 A KR1019970050864 A KR 1019970050864A KR 19970050864 A KR19970050864 A KR 19970050864A KR 19990030591 A KR19990030591 A KR 19990030591A
Authority
KR
South Korea
Prior art keywords
file
buf
textcolor
num
token
Prior art date
Application number
KR1019970050864A
Other languages
Korean (ko)
Inventor
박상호
Original Assignee
윤종용
삼성전자 주식회사
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 윤종용, 삼성전자 주식회사 filed Critical 윤종용
Priority to KR1019970050864A priority Critical patent/KR19990030591A/en
Publication of KR19990030591A publication Critical patent/KR19990030591A/en

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/10File systems; File servers
    • G06F16/16File or folder operations, e.g. details of user interfaces specifically adapted to file systems
    • G06F16/168Details of user interfaces specifically adapted to file systems, e.g. browsing and visualisation, 2d or 3d GUIs

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Human Computer Interaction (AREA)
  • Data Mining & Analysis (AREA)
  • Databases & Information Systems (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • User Interface Of Digital Computer (AREA)

Abstract

본 발명은 파일 컬러화 방법에 관한 것으로서, 특히, 확장자에 따라 컬러를 세팅함으로써, 컬러 새팅 파일을 생성하는 단계; 현재 디렉토리의 파일들을 페이지 단위로 스크롤시키기 위한 현재 디렉토리 리스트명령을 실행시키는 단계; 및 상기 현재 디렉토리 리스트명령에 응답하여 소정의 컬러화 프로그램을 수행하여 상기 컬러새팅파일 생성단계에서 세팅된 확장자를 갖는 파일명을 해당 컬러로 출력하는 단계를 구비하는 것을 특징으로 한다.The present invention relates to a file colorization method, and in particular, generating a color sating file by setting a color according to an extension; Executing a current directory list command to scroll files of the current directory by page; And performing a predetermined colorization program in response to the current directory list command and outputting a file name having an extension set in the color charting file generation step in a corresponding color.

따라서, 본 발명에서는 확장자에 따라 검색하고자 하는 파일을 컬러화함으로써, 파일검색에 소요되는 시간을 단축할 수 있으며, 또한 사용자에게 시각적인 검색의 편이를 제공할 수 있는 효과가 있다.Therefore, in the present invention, by colorizing the file to be searched according to the extension, it is possible to shorten the time required for the file search and to provide the user with the convenience of visual search.

Description

파일 컬러화 방법File colorization method

본 발명은 파일 컬러화 방법에 관한 것으로서, 특히, 도스 프롬프트 상태에서 현재의 디렉토리를 검색할 때 컬러화 프로그램에 의해 확장자에 따라 검색하고자 하는 파일을 컬러화하여 표시해 줌으로써, 필요한 파일을 신속하게 검색할 수 있는 컬러화 방법에 관한 것이다.BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a file colorization method. In particular, when a current directory is searched in a DOS prompt, a colorization program can colorize and display a file to be searched according to an extension. It is about a method.

일반적으로, 엠에스 도스(MS-DOS) 또는 윈도우용 도스를 운영체제로 적용한 컴퓨터 시스템에서는 파일들을 효율적으로 관리를 위해 파일들의 특성에 따라 계층적 구조로 관리할 수 있는 디렉토리 운영을 제공한다. 다시말해서, 디렉토리 운영은 하나의 파일 시스템에 서로 연관된 파일들이 한곳에 체계적으로 저장될 수 있도록 한다. 따라서, 이러한 디렉토리 운영에 의해서 파일의 갱신, 삭제 및 추가 등이 용이해진다.In general, a computer system applying MS-DOS or MS-DOS for Windows as an operating system provides a directory operation that can be managed in a hierarchical structure according to the characteristics of the files for efficient management of the files. In other words, directory management allows files that are related to one another to be systematically stored in one file system. Therefore, such a directory operation makes it easy to update, delete, and add files.

상기 디렉토리 운영을 토대로 현재의 디렉토리에 어떠한 파일들이 있는지를 검색하기 위해서는 컨소울(Console) 즉, 컴퓨터 화면상에 도스 프롬프트(dos prompt)가 표시된 상태에서 디렉토리 리스트명령인 DIR을 타이핑한 다음 엔터키를 치게되면, 현재의 디렉토리에 저장되어 있던 파일의 이름 및 크기, 파일의 변경된 날짜 등과 같은 파일정보를 포함하는 파일의 항목들이 나열된다. 그러나, 나열되는 파일의 수가 많아지면, 처음에 나열되는 파일항목들이 스크롤업되어 화면상에 표시되지 않으므로, 종래의 도스 운영체제는 파일을 페이지 단위로 스크롤하기 위한 명령인 DIR/P명령을 지원한다. 또한, 종래의 도스 운영체제는 DIR/W명령을 지원하는 데, 이 명령의 실행에 따라 파일의 이름만이 나열되므로 전체의 파일 항목을 일목요연하게 볼수 있다. 또한, 종래의 도스 운영체제는 DIR/W/P명령을 지원하며, 이 명령은 한페이지를 초과하는 파일에 대해서 파일을 페이지 단위로 스크롤시킨다.To search for any files in the current directory based on the directory operation, type directory listing command DIR while displaying a console, DOS prompt, and press the Enter key. When the file is entered, items of the file including file information such as the name and size of the file stored in the current directory, the changed date of the file, etc. are listed. However, when the number of files to be listed increases, the file items listed first are scrolled up and not displayed on the screen. Thus, the conventional DOS operating system supports the DIR / P command, which is a command for scrolling a file page by page. In addition, the conventional DOS operating system supports the DIR / W command, only the name of the file is listed according to the execution of this command, you can see the entire file entry at a glance. In addition, the conventional DOS operating system supports the DIR / W / P command, which scrolls the file page by page for a file more than one page.

그러나, 도스 프롬프트 상태에서 종래의 디렉토리 리스트명령들에 의해 나열되는 파일들은 모두 동일한 색상으로 화면에 표시된다. 따라서, 이러한 동일 색상의 파일 가운데에서 희망하는 파일을 찾는 작업은 몹시 성가신 일이며 상당한 시간이 소요된다.However, all files listed by the conventional directory listing commands in the DOS prompt are displayed on the screen in the same color. Therefore, finding the desired file among the files of the same color is very annoying and time-consuming.

본 발명의 목적은 상기와 같은 문제점을 해결하기 위하여 도스 프롬프트 상태에서 현재의 디렉토리를 검색할 때 컬러화 프로그램에 의해 확장자에 따라 검색하고자 하는 파일을 컬러화하여 표시해 줌으로써, 필요한 파일을 신속하게 검색할 수 있는 컬러화 방법을 제공하는 데 있다.An object of the present invention is to solve the problems described above, when searching the current directory in the DOS prompt state by colorizing the file to be searched according to the extension by the colorization program, it is possible to quickly search for the required file The present invention provides a method of coloring.

상기 목적을 달성하기 위하여 본 발명의 방법은 확장자에 따라 컬러를 세팅함으로써, 컬러 새팅 파일을 생성하는 단계; 현재 디렉토리의 파일들을 페이지 단위로 스크롤시키기 위한 현재 디렉토리 리스트명령을 실행시키는 단계; 및 상기 현재 디렉토리 리스트명령에 응답하여 소정의 컬러화 프로그램을 수행하여 상기 컬러새팅파일 생성단계에서 세팅된 확장자를 갖는 파일명을 해당 컬러로 출력하는 단계를 구비하는 것을 특징으로 한다.In order to achieve the above object, the method of the present invention comprises the steps of generating a color sating file by setting a color according to an extension; Executing a current directory list command to scroll files of the current directory by page; And performing a predetermined colorization program in response to the current directory list command and outputting a file name having an extension set in the color charting file generation step in a corresponding color.

도 1 은 본 발명에 따른 파일 컬러화 방법을 설명하기 위한 플로우챠트.1 is a flowchart for explaining a file colorization method according to the present invention;

이하, 첨부한 도면을 참고하여 본 발명을 보다 상세하게 설명하면 다음과 같다.Hereinafter, the present invention will be described in detail with reference to the accompanying drawings.

도 1 은 본 발명에 따른 파일 컬러화 방법을 설명하기 위한 플로우챠트이다.1 is a flowchart for explaining a file colorization method according to the present invention.

본 발명의 실시예에 따라 도스 프로프롬트 상태에서 컬러새팅명령인 SETQ.EXE를 실행시키면, SETQ.EXE의 실행에 따라 확장자와 희망하는 컬러를 입력하라는 메시지가 컨소울(console) 즉, 화면에 표시되고, 이러한 화면의 지시에 따라 사용자는 검색하고자 하는 파일의 확장자와 컬러를 입력하면, 그 결과로서 컬러새팅파일인 COLOR.DAT파일이 생성된다. 이와 같이 확장자에 따라 컬러를 세팅함으로써, 컬러새팅파일(COLOR.DAT)이 생성된다(제 1 단계). 부가적으로, 상기 제 1 단계는 파일 항목 및 색상을 변경하고자 할 때 실행시킨다.According to an embodiment of the present invention, when executing the color-singing command SETQ.EXE in the DOS prompt state, a message for inputting an extension and a desired color according to execution of SETQ.EXE is displayed on the console, that is, the screen. When the user inputs the extension and color of the file to be searched according to the instructions on the screen, the result is a color coloring file, COLOR.DAT file. By setting the color according to the extension in this way, the color charting file COLOR.DAT is generated (first step). In addition, the first step is executed when the file item and the color are to be changed.

상기 제 1 단계가 수행된 상태에서, 현재의 디렉토리에 저장된 파일들이 페이지 단위로 스크롤되도록 디렉토리 리스트명령인 Q.EXE를 입력하여 실행시키면, 이어 DIR/W>TEMP.DAT 명령이 실행된다(제 2 단계).In the state where the first step is performed, if a directory list command Q.EXE is input and executed so that the files stored in the current directory are scrolled in units of pages, the DIR / W> TEMP.DAT command is executed. step).

상기 제 2 단계가 수행되면, 본 발명의 실시예에 따른 컬러화 프로그램은 TEMP.DAT 파일을 스캔하면서 상기 컬러새팅파일인 COLOR.DAT에 세트한 확장자를 갖는 파일명을 해당 컬러로 변환하여 화면상에 표시하도록 한다(제 4 단계).When the second step is performed, the colorization program according to the embodiment of the present invention scans the TEMP.DAT file and converts the file name having the extension set to the color shaping file COLOR.DAT into the corresponding color to display on the screen. (Step 4).

본 발명의 실시예에 따라 상기 제 4 단계를 수행하면, DIR/W/P를 수행한 결과를 미리 세트한 값에 의해 확장자(파일의 종류)에 따라 원하는 파일만 다양한 컬러로 화면에 출력할 수 있다. 이때 디렉토리의 파일들이 1화면을 넘는 경우에는 파일들이 페이지 단위로 나뉘어져 스크롤된다.According to an embodiment of the present invention, if the fourth step is performed, only the desired file can be output on the screen in various colors according to the extension (type of file) based on a preset value of the result of performing DIR / W / P. have. At this time, if the files in the directory exceed one screen, the files are divided and scrolled by page.

본 발명의 실시예에 따른 컬러화 프로그램은 다음과 같이 기술된다.The colorization program according to the embodiment of the present invention is described as follows.

#include <stdio.h>#include <stdio.h>

#include <conio.h>#include <conio.h>

#include <stdlib.h>#include <stdlib.h>

#include <process.h>#include <process.h>

#define FILENAME 50#define FILENAME 50

#define TOKENSIZE 100#define TOKENSIZE 100

void LogoOutput(void)void LogoOutput (void)

{{

textbackground(BLACK);textbackground (BLACK);

textcolor(WHITE);textcolor (WHITE);

clrscr0;clrscr0;

textbackground(LIGHTBLUE)textbackground (LIGHTBLUE)

textcolor(YELLOW);textcolor (YELLOW);

cprint("₩r Color Dir Program ₩n");cprint ("\ r Color Dir Program \ n");

cprintf("₩r Version o.1");cprintf ("\ r Version o.1");

textcolor(CYAN);textcolor (CYAN);

textcolor(WHITE);textcolor (WHITE);

textbackground(BLACK);textbackground (BLACK);

return;return;

}}

void ColorDir(char token[TOKENSIZE])void ColorDir (char token [TOKENSIZE])

{{

if(strstr(token,".EXE"))if (strstr (token, ". EXE"))

textcolor(YELLOW);textcolor (YELLOW);

else if(strstr(token,".BAT"))else if (strstr (token, ". BAT"))

textcolor(CYAN);textcolor (CYAN);

else if(strstr(token,".COM"))else if (strstr (token, ". COM"))

textcolor(RED);textcolor (RED);

else textcolor(WHITE);else textcolor (WHITE);

cprintf("%-15s",token);cprintf ("%-15s", token);

return;return;

}}

void ProcessBuf(char buf[STRINGSIZE])void ProcessBuf (char buf [STRINGSIZE])

{ char token[TOKENSIZE];{char token [TOKENSIZE];

int i, j, flag;int i, j, flag;

j = 0;j = 0;

for(i=0;;)for (i = 0 ;;)

{ if(buf[i]==' ') i++;{if (buf [i] == '') i ++;

else if(buf[i]=='₩t') I++;else if (buf [i] == '₩ t') I ++;

else {while(buf[i]!=' '&&buf[i]!='₩n'&&buf[i]!='₩0'&&buf[i]!='₩t')else {while (buf [i]! = '' && buf [i]! = '₩ n' && buf [i]! = '₩ 0' && buf [i]! = '₩ t')

token[j]='₩0';token [j] = '₩ 0';

ColorDir(token);ColorDir (token);

textcolor(WHITE);textcolor (WHITE);

j=0;j = 0;

}}

}}

}}

FILE *ScanAsmfile(FILE *fptr)FILE * ScanAsmfile (FILE * fptr)

{ char buf[STRINGSIZE];{char buf [STRINGSIZE];

FILE *temp;FILE * temp;

int line_num;int line_num;

line_num=0;line_num = 0;

temp=fptr;temp = fptr;

do {do {

fgets(buf,99,fptr);fgets (buf, 99, fptr);

cprintf("₩r %s",buf);cprintf ("\ r% s", buf);

line_num++;line_num ++;

}}

while(line_num<4);while (line_num <4);

line_num--;line_num--;

while(1) {if(!fgets(buf,99,fptr)) return(temp);while (1) {if (! fgets (buf, 99, fptr)) return (temp);

else {if(but[0]==' ') cprintf("₩r %s",buf);else {if (but [0] == '') cprintf ("\ r% s", buf);

else { line_num++;else {line_num ++;

ProcessBuf(buf);ProcessBuf (buf);

if(line_num==19) {textcolor(LIGHTMAGENTA);if (line_num == 19) {textcolor (LIGHTMAGENTA);

cprintf("₩n₩r Press any key to continue...₩r₩n");cprintf ("\ n \ r Press any key to continue ... \ r \ n");

getch();getch ();

textcolor(WHITE);textcolor (WHITE);

line_num=0;line_num = 0;

}}

}}

}}

}}

}}

void main(void)void main (void)

{{

따라서, 본 발명에서는 확장자에 따라 검색하고자 하는 파일을 컬러화함으로써, 파일검색에 소요되는 시간을 단축할 수 있으며, 또한 사용자에게 시각적인 검색의 편이를 제공할 수 있는 효과가 있다.Therefore, in the present invention, by colorizing the file to be searched according to the extension, it is possible to shorten the time required for the file search and to provide the user with the convenience of visual search.

Claims (2)

확장자에 따라 컬러를 세팅함으로써, 컬러새팅파일을 생성하는 단계;Generating a color chat file by setting colors according to the extension; 현재 디렉토리의 파일들을 페이지 단위로 스크롤시키기 위한 현재 디렉토리 리스트명령을 실행시키는 단계; 및Executing a current directory list command to scroll files of the current directory by page; And 상기 현재 디렉토리 리스트명령에 응답하여 소정의 컬러화 프로그램을 수행하여 상기 컬러새팅파일 생성단계에서 세팅된 확장자를 갖는 파일명을 해당 컬러로 출력하는 단계를 구비하는 것을 특징으로 하는 파일 컬러화 방법.And performing a predetermined colorizing program in response to the current directory list command, and outputting a file name having an extension set in the color charting file generation step in a corresponding color. 제 1 항에 있어서,The method of claim 1, 상기 컬러화 프로그램은The colorization program #include <stdio.h>#include <stdio.h> #include <conio.h>#include <conio.h> #include <stdlib.h>#include <stdlib.h> #include <process.h>#include <process.h> #define FILENAME 50#define FILENAME 50 #define TOKENSIZE 100#define TOKENSIZE 100 void LogoOutput(void)void LogoOutput (void) {{ textbackground(BLACK);textbackground (BLACK); textcolor(WHITE);textcolor (WHITE); clrscr0;clrscr0; textbackground(LIGHTBLUE)textbackground (LIGHTBLUE) textcolor(YELLOW);textcolor (YELLOW); cprint("₩r Color Dir Program ₩n");cprint ("\ r Color Dir Program \ n"); cprintf("₩r Version o.1");cprintf ("\ r Version o.1"); textcolor(CYAN);textcolor (CYAN); textcolor(WHITE);textcolor (WHITE); textbackground(BLACK);textbackground (BLACK); return;return; }} void ColorDir(char token[TOKENSIZE])void ColorDir (char token [TOKENSIZE]) {{ if(strstr(token,".EXE"))if (strstr (token, ". EXE")) textcolor(YELLOW);textcolor (YELLOW); else if(strstr(token,".BAT"))else if (strstr (token, ". BAT")) textcolor(CYAN);textcolor (CYAN); else if(strstr(token,".COM"))else if (strstr (token, ". COM")) textcolor(RED);textcolor (RED); else textcolor(WHITE);else textcolor (WHITE); cprintf("%-15s",token);cprintf ("%-15s", token); return;return; }} void ProcessBuf(char buf[STRINGSIZE])void ProcessBuf (char buf [STRINGSIZE]) { char token[TOKENSIZE];{char token [TOKENSIZE]; int i, j, flag;int i, j, flag; j = 0;j = 0; for(i=0;;)for (i = 0 ;;) { if(buf[i]==' ') i++;{if (buf [i] == '') i ++; else if(buf[i]=='₩t') I++;else if (buf [i] == '₩ t') I ++; else {while(buf[i]!=' '&&buf[i]!='₩n'&&buf[i]!='₩0'&&buf[i]!='₩t')else {while (buf [i]! = '' && buf [i]! = '₩ n' && buf [i]! = '₩ 0' && buf [i]! = '₩ t') token[j]='₩0';token [j] = '₩ 0'; ColorDir(token);ColorDir (token); textcolor(WHITE);textcolor (WHITE); j=0;j = 0; }} }} }} FILE *ScanAsmfile(FILE *fptr)FILE * ScanAsmfile (FILE * fptr) { char buf[STRINGSIZE];{char buf [STRINGSIZE]; FILE *temp;FILE * temp; int line_num;int line_num; line_num=0;line_num = 0; temp=fptr;temp = fptr; do {do { fgets(buf,99,fptr);fgets (buf, 99, fptr); cprintf("₩r %s",buf);cprintf ("\ r% s", buf); line_num++;line_num ++; }} while(line_num<4);while (line_num <4); line_num--;line_num--; while(1) {if(!fgets(buf,99,fptr)) return(temp);while (1) {if (! fgets (buf, 99, fptr)) return (temp); else {if(but[0]==' ') cprintf("₩r %s",buf);else {if (but [0] == '') cprintf ("\ r% s", buf); else { line_num++;else {line_num ++; ProcessBuf(buf);ProcessBuf (buf); if(line_num==19) {textcolor(LIGHTMAGENTA);if (line_num == 19) {textcolor (LIGHTMAGENTA); cprintf("₩n₩r Press any key to continue...₩r₩n");cprintf ("\ n \ r Press any key to continue ... \ r \ n"); getch();getch (); textcolor(WHITE);textcolor (WHITE); line_num=0;line_num = 0; }} }} }} }} }} void main(void)void main (void) {{ 로 구성되는 것을 특징으로 하는 파일 컬러화 방법.File colorizing method comprising a.
KR1019970050864A 1997-10-02 1997-10-02 File colorization method KR19990030591A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
KR1019970050864A KR19990030591A (en) 1997-10-02 1997-10-02 File colorization method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
KR1019970050864A KR19990030591A (en) 1997-10-02 1997-10-02 File colorization method

Publications (1)

Publication Number Publication Date
KR19990030591A true KR19990030591A (en) 1999-05-06

Family

ID=66045068

Family Applications (1)

Application Number Title Priority Date Filing Date
KR1019970050864A KR19990030591A (en) 1997-10-02 1997-10-02 File colorization method

Country Status (1)

Country Link
KR (1) KR19990030591A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20040021133A (en) * 2002-09-02 2004-03-10 썬스타 특수정밀 주식회사 Method of discernment design code in apparatus of embroidery and media that can record computer program sources thereof

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20040021133A (en) * 2002-09-02 2004-03-10 썬스타 특수정밀 주식회사 Method of discernment design code in apparatus of embroidery and media that can record computer program sources thereof

Similar Documents

Publication Publication Date Title
US5515497A (en) Method and apparatus for selecting and displaying items in a notebook graphical user interface
US5859636A (en) Recognition of and operation on text data
EP1717693A1 (en) Searchable task-based interface to control panel functionality
US20070245339A1 (en) Creating documentation screenshots on demand
US8181104B1 (en) Automatic creation of cascading style sheets
WO2002011008A1 (en) System and method for project management
US7600199B2 (en) Task-based interface with underlying extensible framework
KR19990030591A (en) File colorization method
Cisco Vi Editor User's Guide
Cisco Vi Editor User's Guide
Cisco Vi Editor User's Guide
Cisco Vi Editor User's Guide
Cisco Vi Editor User's Guide
Cisco Vi Editor User's Guide
Cisco Vi Editor User's Guide
JP2005078119A (en) Support system and method for software development support, program, and recording medium
JP2995718B2 (en) Document history management device
CN113791772B (en) Visual editor and use method
JP3008807B2 (en) Data processing device
Boger et al. Poseidon for UML
JP3193249B2 (en) Keyword search method
KR930002308B1 (en) Method of selecting attribution on the display
GB2357168A (en) Dynamically maintaining the functional module of an application program
JPH08241333A (en) Electronic filing system and its retrieval method
JPH04135266A (en) Picture display system

Legal Events

Date Code Title Description
A201 Request for examination
E902 Notification of reason for refusal
E902 Notification of reason for refusal
SUBM Submission of document of abandonment before or after decision of registration