1998-08-09 00:51:28 +00:00
|
|
|
|
--- pico/browse.c.orig Sat Jul 11 06:41:25 1998
|
|
|
|
|
+++ pico/browse.c Tue Aug 4 12:42:13 1998
|
|
|
|
|
@@ -126,12 +126,12 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
static KEYMENU menu_browse[] = {
|
|
|
|
|
- {"?", "Get Help", KS_SCREENHELP}, {NULL, NULL, KS_NONE},
|
|
|
|
|
- {NULL, NULL, KS_NONE}, {"-", "Prev Pg", KS_PREVPAGE},
|
|
|
|
|
- {"D", "Delete", KS_NONE}, {"C","Copy", KS_NONE},
|
|
|
|
|
+ {"?", "<22><><EFBFBD>U<EFBFBD><55><EFBFBD><EFBFBD>", KS_SCREENHELP}, {NULL, NULL, KS_NONE},
|
|
|
|
|
+ {NULL, NULL, KS_NONE}, {"-", "<22>W<EFBFBD>@<40><>", KS_PREVPAGE},
|
|
|
|
|
+ {"D", "<22>R<EFBFBD><52>", KS_NONE}, {"C","<22>ƻs", KS_NONE},
|
|
|
|
|
{NULL, NULL, KS_NONE}, {NULL, NULL, KS_NONE},
|
|
|
|
|
- {"W", "Where is", KS_NONE}, {"Spc", "Next Pg", KS_NEXTPAGE},
|
|
|
|
|
- {"R", "Rename", KS_NONE}, {NULL, NULL, KS_NONE}
|
|
|
|
|
+ {"W", "<22>j<EFBFBD>M", KS_NONE}, {"Spc", "<22>U<EFBFBD>@<40><>", KS_NEXTPAGE},
|
|
|
|
|
+ {"R", "<22><><EFBFBD>W", KS_NONE}, {NULL, NULL, KS_NONE}
|
1998-07-21 14:11:48 +00:00
|
|
|
|
};
|
1998-08-09 00:51:28 +00:00
|
|
|
|
#define QUIT_KEY 1
|
|
|
|
|
#define EXEC_KEY 2
|
|
|
|
|
@@ -331,7 +331,7 @@
|
|
|
|
|
child[0] = '\0';
|
|
|
|
|
|
|
|
|
|
if((gmode&MDTREE) && !in_oper_tree(dir)){
|
|
|
|
|
- emlwrite("\007Can't read outside of %s in restricted mode", opertree);
|
|
|
|
|
+ emlwrite("\007<30>L<EFBFBD>k<EFBFBD>b<EFBFBD><62><EFBFBD><EFBFBD><EFBFBD>Ҧ<EFBFBD><D2A6><EFBFBD>Ū<EFBFBD><C5AA> %s <20>H<EFBFBD>~<7E><><EFBFBD>F<EFBFBD><46>", opertree);
|
|
|
|
|
sleep(2);
|
|
|
|
|
return(0);
|
1998-07-21 14:11:48 +00:00
|
|
|
|
}
|
1998-08-09 00:51:28 +00:00
|
|
|
|
@@ -419,7 +419,7 @@
|
|
|
|
|
else{
|
|
|
|
|
if(timeo && (c == NODATA || time_to_check()))
|
|
|
|
|
if(pico_new_mail())
|
|
|
|
|
- emlwrite("You may possibly have new mail.", NULL);
|
|
|
|
|
+ emlwrite("<22>z<EFBFBD>i<EFBFBD><EFBFBD>s<EFBFBD>H<EFBFBD><48><EFBFBD>C", NULL);
|
|
|
|
|
}
|
1998-07-21 14:11:48 +00:00
|
|
|
|
|
1998-08-09 00:51:28 +00:00
|
|
|
|
if(km_popped)
|
|
|
|
|
@@ -695,7 +695,7 @@
|
|
|
|
|
gmp->current->fname);
|
|
|
|
|
/* make sure selected isn't a directory or executable */
|
|
|
|
|
if(!LikelyASCII(child)){
|
|
|
|
|
- emlwrite("Can't edit non-text file. Try Launch.", NULL);
|
|
|
|
|
+ emlwrite("<22>L<EFBFBD>kŪ<6B><C5AA><EFBFBD>D<EFBFBD><44><EFBFBD>r<EFBFBD>ɡC<C9A1>ո<EFBFBD> \"<22>Ұ<EFBFBD>\"<22>C", NULL);
|
|
|
|
|
break;
|
|
|
|
|
}
|
1998-07-21 14:11:48 +00:00
|
|
|
|
|
1998-08-09 00:51:28 +00:00
|
|
|
|
@@ -725,13 +725,13 @@
|
|
|
|
|
return(0);
|
|
|
|
|
}
|
1998-07-21 14:11:48 +00:00
|
|
|
|
|
1998-08-09 00:51:28 +00:00
|
|
|
|
- emlwrite("\007Unknown command '%c'", (void *)c);
|
|
|
|
|
+ emlwrite("\007<30><37><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>R<EFBFBD>O '%c'", (void *)c);
|
1998-07-21 14:11:48 +00:00
|
|
|
|
break;
|
1998-08-09 00:51:28 +00:00
|
|
|
|
|
|
|
|
|
case 'l': /* run Command */
|
|
|
|
|
case 'L':
|
|
|
|
|
if(!(gmode&MDBRONLY)){
|
|
|
|
|
- emlwrite("\007Unknown command '%c'", (void *)c);
|
|
|
|
|
+ emlwrite("\007<30><37><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>R<EFBFBD>O '%c'", (void *)c);
|
|
|
|
|
break;
|
1998-07-21 14:11:48 +00:00
|
|
|
|
}
|
|
|
|
|
|
1998-08-09 00:51:28 +00:00
|
|
|
|
@@ -748,11 +748,11 @@
|
|
|
|
|
{NULL, NULL, 0, KS_NONE},
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
- status = mlreply("Command to execute: ",
|
|
|
|
|
+ status = mlreply("<22><><EFBFBD><EFBFBD><EFBFBD>檺<EFBFBD>R<EFBFBD>O<EFBFBD>G",
|
|
|
|
|
tmp, NLINE, QNORML, opts);
|
|
|
|
|
switch(status){
|
|
|
|
|
case HELPCH:
|
|
|
|
|
- emlwrite("\007No help yet!", NULL);
|
|
|
|
|
+ emlwrite("\007<30>|<7C>L<EFBFBD><4C><EFBFBD>U<EFBFBD><55><EFBFBD><EFBFBD>!", NULL);
|
|
|
|
|
/* remove break and sleep after help text is installed */
|
|
|
|
|
sleep(3);
|
|
|
|
|
break;
|
|
|
|
|
@@ -763,7 +763,7 @@
|
|
|
|
|
PaintBrowser(gmp, 0, &crow, &ccol);
|
|
|
|
|
break;
|
|
|
|
|
case ABORT:
|
|
|
|
|
- emlwrite("Command cancelled", NULL);
|
|
|
|
|
+ emlwrite("<22>R<EFBFBD>O<EFBFBD>w<EFBFBD><77><EFBFBD><EFBFBD>", NULL);
|
|
|
|
|
i++;
|
|
|
|
|
break;
|
|
|
|
|
case FALSE:
|
|
|
|
|
@@ -771,7 +771,7 @@
|
|
|
|
|
i++;
|
|
|
|
|
|
|
|
|
|
if(tmp[0] == '\0'){
|
|
|
|
|
- emlwrite("No command specified", NULL);
|
|
|
|
|
+ emlwrite("<22>|<7C><><EFBFBD>U<EFBFBD>F<EFBFBD>R<EFBFBD>O", NULL);
|
|
|
|
|
break;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@@ -790,12 +790,12 @@
|
|
|
|
|
case 'D':
|
|
|
|
|
if(gmp->current->mode == FIODIR){
|
|
|
|
|
/* BUG: if dir is empty it should be deleted */
|
|
|
|
|
- emlwrite("\007Can't delete a directory", NULL);
|
|
|
|
|
+ emlwrite("\007<30>L<EFBFBD>k<EFBFBD>R<EFBFBD><52><EFBFBD>ӥؿ<D3A5>", NULL);
|
|
|
|
|
break;
|
1998-07-21 14:11:48 +00:00
|
|
|
|
}
|
|
|
|
|
|
1998-08-09 00:51:28 +00:00
|
|
|
|
if(gmode&MDSCUR){ /* not allowed! */
|
|
|
|
|
- emlwrite("Delete not allowed in restricted mode",NULL);
|
|
|
|
|
+ emlwrite("<22>L<EFBFBD>k<EFBFBD>b<EFBFBD><62><EFBFBD><EFBFBD><EFBFBD>Ҧ<EFBFBD><D2A6><EFBFBD><EFBFBD>ϥΧR<CEA7><52><EFBFBD><EFBFBD><EFBFBD>O",NULL);
|
|
|
|
|
break;
|
|
|
|
|
}
|
1998-07-21 14:11:48 +00:00
|
|
|
|
|
1998-08-09 00:51:28 +00:00
|
|
|
|
@@ -806,17 +806,17 @@
|
|
|
|
|
while(i++ < 2){ /* verify twice!! */
|
|
|
|
|
if(i == 1){
|
|
|
|
|
if(fexist(child, "w", (off_t *)NULL) != FIOSUC)
|
|
|
|
|
- strcpy(tmp, "File is write protected! OVERRIDE");
|
|
|
|
|
+ strcpy(tmp, "<22>ɮ<C9AE><D7AC><EFBFBD><EFBFBD>g! <20>n<EFBFBD><6E><EFBFBD>L<EFBFBD><4C><EFBFBD>g<EFBFBD>O<EFBFBD>@");
|
|
|
|
|
else
|
|
|
|
|
- sprintf(tmp, "Delete file \"%.*s\"", NLINE - 20, child);
|
|
|
|
|
+ sprintf(tmp, "<22>R<EFBFBD><52><EFBFBD>ɮ<EFBFBD> \"%.*s\"", NLINE - 20, child);
|
1998-07-21 14:11:48 +00:00
|
|
|
|
}
|
|
|
|
|
else
|
1998-08-09 00:51:28 +00:00
|
|
|
|
- strcpy(tmp, "File CANNOT be UNdeleted! Really delete");
|
|
|
|
|
+ strcpy(tmp, "<22>ɮױN<D7B1>L<EFBFBD>k<EFBFBD>Q<EFBFBD>ϧR<CFA7><52>! <20>T<EFBFBD>w<EFBFBD>R<EFBFBD><52>");
|
1998-07-21 14:11:48 +00:00
|
|
|
|
|
1998-08-09 00:51:28 +00:00
|
|
|
|
if((status = mlyesno(tmp, FALSE)) != TRUE){
|
|
|
|
|
emlwrite((status == ABORT)
|
|
|
|
|
- ? "Delete Cancelled"
|
|
|
|
|
- : "File Not Deleted",
|
|
|
|
|
+ ? "<22><><EFBFBD><EFBFBD><EFBFBD>R<EFBFBD><52>"
|
|
|
|
|
+ : "<22>ɮרS<D7A8><53><EFBFBD>Q<EFBFBD>R<EFBFBD><52>",
|
|
|
|
|
NULL);
|
|
|
|
|
break;
|
1998-07-21 14:11:48 +00:00
|
|
|
|
}
|
1998-08-09 00:51:28 +00:00
|
|
|
|
@@ -824,7 +824,7 @@
|
1998-07-21 14:11:48 +00:00
|
|
|
|
|
1998-08-09 00:51:28 +00:00
|
|
|
|
if(status == TRUE){
|
|
|
|
|
if(unlink(child) < 0){
|
|
|
|
|
- emlwrite("Delete Failed: %s", errstr(errno));
|
|
|
|
|
+ emlwrite("<22>R<EFBFBD><52><EFBFBD><EFBFBD><EFBFBD>ѡG%s", errstr(errno));
|
1998-07-21 14:11:48 +00:00
|
|
|
|
}
|
1998-08-09 00:51:28 +00:00
|
|
|
|
else{ /* fix up pointers and redraw */
|
|
|
|
|
tp = gmp->current;
|
|
|
|
|
@@ -893,12 +893,12 @@
|
|
|
|
|
|
|
|
|
|
while(!i){
|
|
|
|
|
|
|
|
|
|
- status = mlreply("Directory to go to: ", child, NLINE, QNORML,
|
|
|
|
|
+ status = mlreply("<22><><EFBFBD><EFBFBD><EFBFBD>ܭ<EFBFBD><DCAD>@<40>ӥؿ<D3A5><D8BF>G", child, NLINE, QNORML,
|
|
|
|
|
NULL);
|
|
|
|
|
|
|
|
|
|
switch(status){
|
|
|
|
|
case HELPCH:
|
|
|
|
|
- emlwrite("\007No help yet!", NULL);
|
|
|
|
|
+ emlwrite("\007<30>|<7C>L<EFBFBD><4C><EFBFBD>U<EFBFBD><55><EFBFBD><EFBFBD>!", NULL);
|
|
|
|
|
/* remove break and sleep after help text is installed */
|
|
|
|
|
sleep(3);
|
|
|
|
|
break;
|
|
|
|
|
@@ -906,7 +906,7 @@
|
|
|
|
|
PaintBrowser(gmp, 0, &crow, &ccol);
|
|
|
|
|
break;
|
|
|
|
|
case ABORT:
|
|
|
|
|
- emlwrite("Goto cancelled", NULL);
|
|
|
|
|
+ emlwrite("<22><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ؿ<EFBFBD>", NULL);
|
|
|
|
|
i++;
|
|
|
|
|
break;
|
|
|
|
|
case FALSE:
|
|
|
|
|
@@ -917,17 +917,17 @@
|
|
|
|
|
strcpy(child, gethomedir(NULL));
|
|
|
|
|
|
|
|
|
|
if(!compresspath(gmp->dname, child, NLINE)){
|
|
|
|
|
- emlwrite("Invalid Directory: %s", child);
|
|
|
|
|
+ emlwrite("<22>L<EFBFBD>Ī<EFBFBD><C4AA>ؿ<EFBFBD><D8BF>G%s", child);
|
|
|
|
|
break;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
if((gmode&MDSCUR) && homeless(child)){
|
|
|
|
|
- emlwrite("Restricted mode browsing limited to home directory",NULL);
|
|
|
|
|
+ emlwrite("<22><><EFBFBD><EFBFBD><EFBFBD>Ҧ<EFBFBD><D2A6><EFBFBD><EFBFBD>ȯ<EFBFBD><C8AF>s<EFBFBD><73> home directory",NULL);
|
|
|
|
|
break;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
if((gmode&MDTREE) && !in_oper_tree(child)){
|
|
|
|
|
- emlwrite("Attempt to Goto directory denied", NULL);
|
|
|
|
|
+ emlwrite("<22>w<EFBFBD>ڵ<EFBFBD><DAB5>ϥΪ̤<CEAA><CCA4><EFBFBD><EFBFBD>ؿ<EFBFBD><D8BF><EFBFBD><EFBFBD>ШD", NULL);
|
|
|
|
|
break;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@@ -943,7 +943,7 @@
|
|
|
|
|
PaintBrowser(gmp, 0, &crow, &ccol);
|
|
|
|
|
}
|
|
|
|
|
else
|
|
|
|
|
- emlwrite("\007Not a directory: \"%s\"", child);
|
|
|
|
|
+ emlwrite("\007\"%s\"<22><><EFBFBD>O<EFBFBD>@<40>ӥؿ<D3A5>", child);
|
|
|
|
|
|
|
|
|
|
break;
|
|
|
|
|
default:
|
|
|
|
|
@@ -956,7 +956,7 @@
|
|
|
|
|
case 'a': /* Add */
|
|
|
|
|
case 'A':
|
|
|
|
|
if(gmode&MDSCUR){ /* not allowed! */
|
|
|
|
|
- emlwrite("Copy not allowed in restricted mode",NULL);
|
|
|
|
|
+ emlwrite("<22>L<EFBFBD>k<EFBFBD>b<EFBFBD><62><EFBFBD><EFBFBD><EFBFBD>Ҧ<EFBFBD><D2A6><EFBFBD><EFBFBD>s<EFBFBD>W<EFBFBD>ɮ<EFBFBD>",NULL);
|
|
|
|
|
break;
|
|
|
|
|
}
|
1998-07-21 14:11:48 +00:00
|
|
|
|
|
1998-08-09 00:51:28 +00:00
|
|
|
|
@@ -965,10 +965,10 @@
|
1998-07-21 14:11:48 +00:00
|
|
|
|
|
1998-08-09 00:51:28 +00:00
|
|
|
|
while(!i){
|
|
|
|
|
|
|
|
|
|
- switch(status=mlreply("Name of file to add: ", child, NLINE,
|
|
|
|
|
+ switch(status=mlreply("<22><><EFBFBD>s<EFBFBD>W<EFBFBD><57><EFBFBD>ɦW<C9A6>G", child, NLINE,
|
|
|
|
|
QFFILE, NULL)){
|
|
|
|
|
case HELPCH:
|
|
|
|
|
- emlwrite("\007No help yet!", NULL);
|
|
|
|
|
+ emlwrite("\007<30>|<7C>L<EFBFBD><4C><EFBFBD>U<EFBFBD><55><EFBFBD><EFBFBD>!", NULL);
|
|
|
|
|
/* remove break and sleep after help text is installed */
|
|
|
|
|
sleep(3);
|
|
|
|
|
break;
|
|
|
|
|
@@ -976,7 +976,7 @@
|
|
|
|
|
PaintBrowser(gmp, 0, &crow, &ccol);
|
|
|
|
|
break;
|
|
|
|
|
case ABORT:
|
|
|
|
|
- emlwrite("Add File Cancelled", NULL);
|
|
|
|
|
+ emlwrite("<22><><EFBFBD><EFBFBD><EFBFBD>s<EFBFBD>W<EFBFBD>ɮ<EFBFBD>", NULL);
|
|
|
|
|
i++;
|
|
|
|
|
break;
|
|
|
|
|
case FALSE:
|
|
|
|
|
@@ -987,7 +987,7 @@
|
|
|
|
|
i++;
|
|
|
|
|
|
|
|
|
|
if(child[0] == '\0'){
|
|
|
|
|
- emlwrite("No file named. Add Cancelled.", NULL);
|
|
|
|
|
+ emlwrite("<22><><EFBFBD><EFBFBD><EFBFBD>w<EFBFBD>ɦW<C9A6>A<EFBFBD><41><EFBFBD><EFBFBD><EFBFBD>s<EFBFBD>W<EFBFBD>ɮסC", NULL);
|
|
|
|
|
break;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@@ -995,7 +995,7 @@
|
|
|
|
|
sprintf(child, "%s%c%s", gmp->dname, C_FILESEP, tmp);
|
|
|
|
|
|
|
|
|
|
if((status = fexist(child, "w", (off_t *)NULL)) == FIOSUC){
|
|
|
|
|
- sprintf(tmp,"File \"%.*s\" already exists!",
|
|
|
|
|
+ sprintf(tmp,"<22>ɮ<EFBFBD> \"%.*s\" <20>w<EFBFBD>s<EFBFBD>b!",
|
|
|
|
|
NLINE - 20, child);
|
|
|
|
|
emlwrite(tmp, NULL);
|
|
|
|
|
break;
|
|
|
|
|
@@ -1011,7 +1011,7 @@
|
|
|
|
|
}
|
|
|
|
|
else{ /* highlight new file */
|
|
|
|
|
ffclose();
|
|
|
|
|
- emlwrite("Added File \"%s\"", child);
|
|
|
|
|
+ emlwrite("<22>s<EFBFBD>W<EFBFBD>ɮ<EFBFBD> \"%s\"", child);
|
|
|
|
|
|
|
|
|
|
if((p = strrchr(child, C_FILESEP)) == NULL){
|
|
|
|
|
emlwrite("Problems refiguring browser", NULL);
|
|
|
|
|
@@ -1059,12 +1059,12 @@
|
|
|
|
|
case 'c': /* copy */
|
|
|
|
|
case 'C':
|
|
|
|
|
if(gmp->current->mode == FIODIR){
|
|
|
|
|
- emlwrite("\007Can't copy a directory", NULL);
|
|
|
|
|
+ emlwrite("\007<30>L<EFBFBD>k<EFBFBD>ƻs<C6BB>ؿ<EFBFBD>", NULL);
|
|
|
|
|
break;
|
1998-07-21 14:11:48 +00:00
|
|
|
|
}
|
|
|
|
|
|
1998-08-09 00:51:28 +00:00
|
|
|
|
if(gmode&MDSCUR){ /* not allowed! */
|
|
|
|
|
- emlwrite("Copy not allowed in restricted mode",NULL);
|
|
|
|
|
+ emlwrite("<22>L<EFBFBD>k<EFBFBD>b<EFBFBD><62><EFBFBD><EFBFBD><EFBFBD>Ҧ<EFBFBD><D2A6><EFBFBD><EFBFBD>ƻs<C6BB>ɮ<EFBFBD>",NULL);
|
|
|
|
|
break;
|
|
|
|
|
}
|
1998-07-21 14:11:48 +00:00
|
|
|
|
|
1998-08-09 00:51:28 +00:00
|
|
|
|
@@ -1073,10 +1073,10 @@
|
|
|
|
|
|
|
|
|
|
while(!i){
|
|
|
|
|
|
|
|
|
|
- switch(status=mlreply("Name of new copy: ", child, NLINE,
|
|
|
|
|
+ switch(status=mlreply("<22>s<EFBFBD>ƻs<C6BB>ɦW<C9A6>G", child, NLINE,
|
|
|
|
|
QFFILE, NULL)){
|
|
|
|
|
case HELPCH:
|
|
|
|
|
- emlwrite("\007No help yet!", NULL);
|
|
|
|
|
+ emlwrite("\007<30>|<7C>L<EFBFBD><4C><EFBFBD>U<EFBFBD><55><EFBFBD><EFBFBD>!", NULL);
|
|
|
|
|
/* remove break and sleep after help text is installed */
|
|
|
|
|
sleep(3);
|
|
|
|
|
break;
|
|
|
|
|
@@ -1084,7 +1084,7 @@
|
|
|
|
|
PaintBrowser(gmp, 0, &crow, &ccol);
|
|
|
|
|
break;
|
|
|
|
|
case ABORT:
|
|
|
|
|
- emlwrite("Make Copy Cancelled", NULL);
|
|
|
|
|
+ emlwrite("<22><><EFBFBD><EFBFBD><EFBFBD>ƻs<C6BB>ɮ<EFBFBD>", NULL);
|
|
|
|
|
i++;
|
|
|
|
|
break;
|
|
|
|
|
case FALSE:
|
|
|
|
|
@@ -1095,12 +1095,12 @@
|
|
|
|
|
i++;
|
|
|
|
|
|
|
|
|
|
if(child[0] == '\0'){
|
|
|
|
|
- emlwrite("No destination, file not copied", NULL);
|
|
|
|
|
+ emlwrite("<22><><EFBFBD><EFBFBD><EFBFBD>w<EFBFBD>ئa<D8A6>ɦW<C9A6>A<EFBFBD>ɮרS<D7A8><53><EFBFBD>Q<EFBFBD>ƻs<C6BB>C", NULL);
|
|
|
|
|
break;
|
1998-07-21 14:11:48 +00:00
|
|
|
|
}
|
1998-08-09 00:51:28 +00:00
|
|
|
|
|
|
|
|
|
if(!strcmp(gmp->current->fname, child)){
|
|
|
|
|
- emlwrite("\007Can't copy file on to itself!", NULL);
|
|
|
|
|
+ emlwrite("\007<30>L<EFBFBD>k<EFBFBD>N<EFBFBD>ɮƻs<C6BB>ܥ<EFBFBD><DCA5>ۤv!", NULL);
|
|
|
|
|
break;
|
1998-07-21 14:11:48 +00:00
|
|
|
|
}
|
1998-08-09 00:51:28 +00:00
|
|
|
|
|
|
|
|
|
@@ -1108,12 +1108,12 @@
|
|
|
|
|
sprintf(child, "%s%c%s", gmp->dname, C_FILESEP, tmp);
|
|
|
|
|
|
|
|
|
|
if((status = fexist(child, "w", (off_t *)NULL)) == FIOSUC){
|
|
|
|
|
- sprintf(tmp,"File \"%.*s\" exists! OVERWRITE",
|
|
|
|
|
+ sprintf(tmp,"<22>ɮ<EFBFBD> \"%.*s\" <20>w<EFBFBD>s<EFBFBD>b! <20>n<EFBFBD>л\\<5C><>",
|
|
|
|
|
NLINE - 20, child);
|
|
|
|
|
if((status = mlyesno(tmp, 0)) != TRUE){
|
|
|
|
|
emlwrite((status == ABORT)
|
|
|
|
|
- ? "Make copy cancelled"
|
|
|
|
|
- : "File Not Renamed",
|
|
|
|
|
+ ? "<22><><EFBFBD><EFBFBD><EFBFBD>ƻs"
|
|
|
|
|
+ : "<22>ɮרS<D7A8><53><EFBFBD>Q<EFBFBD>ƻs",
|
|
|
|
|
NULL);
|
|
|
|
|
break;
|
|
|
|
|
}
|
|
|
|
|
@@ -1131,7 +1131,7 @@
|
|
|
|
|
break;
|
|
|
|
|
}
|
|
|
|
|
else{ /* highlight new file */
|
|
|
|
|
- emlwrite("File copied to %s", child);
|
|
|
|
|
+ emlwrite("<22>ƻs<C6BB>ɮר<C9AE> %s", child);
|
|
|
|
|
|
|
|
|
|
if((p = strrchr(child, C_FILESEP)) == NULL){
|
|
|
|
|
emlwrite("Problems refiguring browser", NULL);
|
|
|
|
|
@@ -1174,12 +1174,12 @@
|
|
|
|
|
i = 0;
|
|
|
|
|
|
|
|
|
|
if(!strcmp(gmp->current->fname, "..")){
|
|
|
|
|
- emlwrite("\007Can't rename \"..\"", NULL);
|
|
|
|
|
+ emlwrite("\007<30>L<EFBFBD>k<EFBFBD><6B><EFBFBD><EFBFBD> \"..\" <20><><EFBFBD>W<EFBFBD><57>", NULL);
|
|
|
|
|
break;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
if(gmode&MDSCUR){ /* not allowed! */
|
|
|
|
|
- emlwrite("Rename not allowed in restricted mode",NULL);
|
|
|
|
|
+ emlwrite("<22>L<EFBFBD>k<EFBFBD>b<EFBFBD><62><EFBFBD><EFBFBD><EFBFBD>Ҧ<EFBFBD><D2A6><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ɮצW",NULL);
|
|
|
|
|
break;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@@ -1187,10 +1187,10 @@
|
|
|
|
|
|
|
|
|
|
while(!i){
|
|
|
|
|
|
|
|
|
|
- switch(status=mlreply("Rename file to: ", child, NLINE, QFFILE,
|
|
|
|
|
+ switch(status=mlreply("<22>ɮצW<D7A6>٧<EFBFBD><D9A7>אּ<EFBFBD>G", child, NLINE, QFFILE,
|
|
|
|
|
NULL)){
|
|
|
|
|
case HELPCH:
|
|
|
|
|
- emlwrite("\007No help yet!", NULL);
|
|
|
|
|
+ emlwrite("\007<30>|<7C>L<EFBFBD><4C><EFBFBD>U<EFBFBD><55><EFBFBD><EFBFBD>!", NULL);
|
|
|
|
|
/* remove break and sleep after help text is installed */
|
|
|
|
|
sleep(3);
|
|
|
|
|
break;
|
|
|
|
|
@@ -1198,7 +1198,7 @@
|
|
|
|
|
PaintBrowser(gmp, 0, &crow, &ccol);
|
|
|
|
|
break;
|
|
|
|
|
case ABORT:
|
|
|
|
|
- emlwrite("Rename cancelled", NULL);
|
|
|
|
|
+ emlwrite("<22><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ɮצW<D7A6><57>", NULL);
|
|
|
|
|
i++;
|
|
|
|
|
break;
|
|
|
|
|
case FALSE:
|
|
|
|
|
@@ -1216,13 +1216,13 @@
|
|
|
|
|
status = fexist(child, "w", (off_t *)NULL);
|
|
|
|
|
if(status == FIOSUC || status == FIOFNF){
|
|
|
|
|
if(status == FIOSUC){
|
|
|
|
|
- sprintf(tmp,"File \"%.*s\" exists! OVERWRITE",
|
|
|
|
|
+ sprintf(tmp,"<22>ɮ<EFBFBD> \"%.*s\" <20>w<EFBFBD>s<EFBFBD>b! <20>n<EFBFBD>л\\<5C><>",
|
|
|
|
|
NLINE - 20, child);
|
|
|
|
|
|
|
|
|
|
if((status = mlyesno(tmp, FALSE)) != TRUE){
|
|
|
|
|
emlwrite((status == ABORT)
|
|
|
|
|
- ? "Rename cancelled"
|
|
|
|
|
- : "Not Renamed",
|
|
|
|
|
+ ? "<22><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>W"
|
|
|
|
|
+ : "<22>ɮרS<D7A8><53><EFBFBD>Q<EFBFBD><51><EFBFBD>W",
|
|
|
|
|
NULL);
|
|
|
|
|
break;
|
|
|
|
|
}
|
|
|
|
|
@@ -1232,7 +1232,7 @@
|
|
|
|
|
gmp->current->fname);
|
|
|
|
|
|
|
|
|
|
if(rename(tmp, child) < 0){
|
|
|
|
|
- emlwrite("Rename Failed: %s", errstr(errno));
|
|
|
|
|
+ emlwrite("<22><><EFBFBD>W<EFBFBD><57><EFBFBD>ѡG%s", errstr(errno));
|
|
|
|
|
}
|
|
|
|
|
else{
|
|
|
|
|
if((p = strrchr(child, C_FILESEP)) == NULL){
|
|
|
|
|
@@ -1291,7 +1291,7 @@
|
|
|
|
|
|
|
|
|
|
if((gmode&MDTREE) && !in_oper_tree(tmp)){
|
|
|
|
|
emlwrite(
|
|
|
|
|
- "\007Can't visit parent in restricted mode",
|
|
|
|
|
+ "\007<30>L<EFBFBD>k<EFBFBD>b<EFBFBD><62><EFBFBD><EFBFBD><EFBFBD>Ҧ<EFBFBD><D2A6><EFBFBD><EFBFBD>˵<EFBFBD><CBB5>W<EFBFBD>h<EFBFBD>ؿ<EFBFBD>",
|
|
|
|
|
NULL);
|
|
|
|
|
break;
|
|
|
|
|
}
|
|
|
|
|
@@ -1312,7 +1312,7 @@
|
|
|
|
|
strcpy(tmp, S_FILESEP);
|
|
|
|
|
#endif
|
|
|
|
|
else{
|
|
|
|
|
- emlwrite("\007Can't move up a directory",
|
|
|
|
|
+ emlwrite("\007<30>L<EFBFBD>k<EFBFBD><6B><EFBFBD><EFBFBD><EFBFBD>ܤW<DCA4>@<40>h<EFBFBD>ؿ<EFBFBD>",
|
|
|
|
|
NULL);
|
|
|
|
|
break;
|
|
|
|
|
}
|
|
|
|
|
@@ -1339,12 +1339,12 @@
|
|
|
|
|
PlaceCell(gmp, gmp->current, &row, &col);
|
1998-07-21 14:11:48 +00:00
|
|
|
|
}
|
|
|
|
|
else
|
1998-08-09 00:51:28 +00:00
|
|
|
|
- emlwrite("\007Problem finding dir \"%s\"",child);
|
|
|
|
|
+ emlwrite("\007<30>j<EFBFBD>M<EFBFBD>ؿ<EFBFBD> \"%s\" <20>ɥX<C9A5>F<EFBFBD><46><EFBFBD>D",child);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
PaintBrowser(gmp, 0, &crow, &ccol);
|
|
|
|
|
if(!*child)
|
|
|
|
|
- emlwrite("Select/View \".. parent dir\" to return to previous directory.",
|
|
|
|
|
+ emlwrite("<22>H [<5B><><EFBFBD><EFBFBD>]/[<5B>˵<EFBFBD>] \".. parent dir\" <20>^<5E><><EFBFBD>e<EFBFBD>@<40>ӥؿ<D3A5><D8BF>C",
|
|
|
|
|
NULL);
|
|
|
|
|
|
|
|
|
|
break;
|
|
|
|
|
@@ -1383,7 +1383,7 @@
|
|
|
|
|
|
|
|
|
|
switch(readpattern("File name to find")){
|
|
|
|
|
case HELPCH:
|
|
|
|
|
- emlwrite("\007No help yet!", NULL);
|
|
|
|
|
+ emlwrite("\007<30>|<7C>L<EFBFBD><4C><EFBFBD>U<EFBFBD><55><EFBFBD><EFBFBD>!", NULL);
|
|
|
|
|
/* remove break and sleep after help text is installed */
|
|
|
|
|
sleep(3);
|
|
|
|
|
break;
|
|
|
|
|
@@ -1414,10 +1414,10 @@
|
|
|
|
|
}
|
|
|
|
|
while(tp->next);
|
1998-07-21 14:11:48 +00:00
|
|
|
|
|
1998-08-09 00:51:28 +00:00
|
|
|
|
- emlwrite("Searched to end of directory", NULL);
|
|
|
|
|
+ emlwrite("<22>j<EFBFBD>M<EFBFBD>ܥؿ<DCA5><D8BF><EFBFBD><EFBFBD><EFBFBD>", NULL);
|
|
|
|
|
}
|
|
|
|
|
else
|
|
|
|
|
- emlwrite("Searched to start of directory", NULL);
|
|
|
|
|
+ emlwrite("<22>j<EFBFBD>M<EFBFBD>ܥؿ<DCA5><D8BF>_<EFBFBD>l", NULL);
|
|
|
|
|
|
|
|
|
|
if(tp){
|
|
|
|
|
PlaceCell(gmp, gmp->current, &row, &col);
|
|
|
|
|
@@ -1436,7 +1436,7 @@
|
|
|
|
|
i++; /* make sure we jump out */
|
|
|
|
|
break;
|
|
|
|
|
case ABORT:
|
|
|
|
|
- emlwrite("Whereis cancelled", NULL);
|
|
|
|
|
+ emlwrite("<22><><EFBFBD><EFBFBD><EFBFBD>j<EFBFBD>M", NULL);
|
|
|
|
|
i++;
|
|
|
|
|
break;
|
|
|
|
|
case FALSE:
|
|
|
|
|
@@ -1460,7 +1460,7 @@
|
|
|
|
|
mlerase();
|
|
|
|
|
}
|
|
|
|
|
else
|
|
|
|
|
- emlwrite("\"%s\" not found", pat);
|
|
|
|
|
+ emlwrite("<22>䤣<EFBFBD><E4A4A3> \"%s\"", pat);
|
|
|
|
|
|
|
|
|
|
i++;
|
|
|
|
|
break;
|
|
|
|
|
@@ -1482,11 +1482,11 @@
|
|
|
|
|
default: /* what? */
|
|
|
|
|
Default:
|
|
|
|
|
if(c < 0xff)
|
|
|
|
|
- emlwrite("\007Unknown command: '%c'", (void *) c);
|
|
|
|
|
+ emlwrite("\007<30><37><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>R<EFBFBD>O<EFBFBD>G'%c'", (void *) c);
|
|
|
|
|
else if(c & CTRL)
|
|
|
|
|
- emlwrite("\007Unknown command: ^%c", (void *)(c&0xff));
|
|
|
|
|
+ emlwrite("\007<30><37><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>R<EFBFBD>O<EFBFBD>G^%c", (void *)(c&0xff));
|
|
|
|
|
else
|
|
|
|
|
- emlwrite("\007Unknown command", NULL);
|
|
|
|
|
+ emlwrite("\007<30><37><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>R<EFBFBD>O", NULL);
|
|
|
|
|
case NODATA: /* no op */
|
|
|
|
|
break;
|
1998-07-21 14:11:48 +00:00
|
|
|
|
}
|
1998-08-09 00:51:28 +00:00
|
|
|
|
@@ -1516,7 +1516,7 @@
|
|
|
|
|
|
|
|
|
|
errbuf[0] = '\0';
|
|
|
|
|
if((mp=(struct bmaster *)malloc(sizeof(struct bmaster))) == NULL){
|
|
|
|
|
- emlwrite("\007Can't malloc space for master filename cell", NULL);
|
|
|
|
|
+ emlwrite("\007<30>L<EFBFBD>k<EFBFBD>t<EFBFBD>m<EFBFBD>O<EFBFBD><4F><EFBFBD><EFBFBD><EFBFBD>Ŷ<EFBFBD><C5B6><EFBFBD> master filename cell", NULL);
|
|
|
|
|
return(NULL);
|
1998-07-21 14:11:48 +00:00
|
|
|
|
}
|
|
|
|
|
|
1998-08-09 00:51:28 +00:00
|
|
|
|
@@ -1540,7 +1540,7 @@
|
|
|
|
|
mp->cpf = mp->fpl = 0;
|
|
|
|
|
mp->longest = 5; /* .. must be labeled! */
|
|
|
|
|
|
|
|
|
|
- emlwrite("Building file list of %s...", mp->dname);
|
|
|
|
|
+ emlwrite("<22><><EFBFBD>b<EFBFBD>إ<EFBFBD> %s <20><><EFBFBD>ɮצC<D7A6><43>...", mp->dname);
|
1998-07-21 14:11:48 +00:00
|
|
|
|
|
1998-08-09 00:51:28 +00:00
|
|
|
|
if((mp->names = getfnames(mp->dname, NULL, &nentries, errbuf)) == NULL){
|
|
|
|
|
free((char *) mp);
|
|
|
|
|
@@ -1559,7 +1559,7 @@
|
|
|
|
|
* easily be made a user option later on...
|
|
|
|
|
*/
|
|
|
|
|
if((filtnames=(char **)malloc((nentries+1) * sizeof(char *))) == NULL){
|
|
|
|
|
- emlwrite("\007Can't malloc space for name array", NULL);
|
|
|
|
|
+ emlwrite("\007<30>L<EFBFBD>k<EFBFBD>t<EFBFBD>m<EFBFBD>O<EFBFBD><4F><EFBFBD><EFBFBD><EFBFBD>Ŷ<EFBFBD><C5B6><EFBFBD> name array", NULL);
|
|
|
|
|
zotmaster(&mp);
|
|
|
|
|
return(NULL);
|
|
|
|
|
}
|
|
|
|
|
@@ -1610,7 +1610,7 @@
|
|
|
|
|
while(nentries--){ /* stat filtered files */
|
|
|
|
|
/* get a new cell */
|
|
|
|
|
if((ncp=(struct fcell *)malloc(sizeof(struct fcell))) == NULL){
|
|
|
|
|
- emlwrite("\007Can't malloc cells for browser!", NULL);
|
|
|
|
|
+ emlwrite("\007<30>L<EFBFBD>k<EFBFBD>t<EFBFBD>m<EFBFBD>O<EFBFBD><4F><EFBFBD><EFBFBD><EFBFBD>Ŷ<EFBFBD><C5B6><EFBFBD> browser!", NULL);
|
|
|
|
|
zotfcells(mp->head); /* clean up cells */
|
|
|
|
|
free((char *) filtnames);
|
|
|
|
|
free((char *) mp);
|
|
|
|
|
@@ -1780,22 +1780,22 @@
|
|
|
|
|
BrowserKeys()
|
|
|
|
|
{
|
|
|
|
|
menu_browse[QUIT_KEY].name = (gmode&MDBRONLY) ? "Q" : "E";
|
|
|
|
|
- menu_browse[QUIT_KEY].label = (gmode&MDBRONLY) ? "Quit" : "Exit Brwsr";
|
|
|
|
|
+ menu_browse[QUIT_KEY].label = (gmode&MDBRONLY) ? "<22><><EFBFBD>}" : "<22><><EFBFBD>}<7D>s<EFBFBD><73><EFBFBD><EFBFBD>";
|
|
|
|
|
menu_browse[GOTO_KEY].name = (gmode&MDGOTO) ? "G" : NULL;
|
|
|
|
|
- menu_browse[GOTO_KEY].label = (gmode&MDGOTO) ? "Goto" : NULL;
|
|
|
|
|
+ menu_browse[GOTO_KEY].label = (gmode&MDGOTO) ? "<22><><EFBFBD><EFBFBD>" : NULL;
|
|
|
|
|
if(gmode & MDBRONLY){
|
|
|
|
|
menu_browse[EXEC_KEY].name = "L";
|
|
|
|
|
- menu_browse[EXEC_KEY].label = "Launch";
|
|
|
|
|
+ menu_browse[EXEC_KEY].label = "<22>Ұ<EFBFBD>";
|
|
|
|
|
menu_browse[SELECT_KEY].name = "V";
|
|
|
|
|
- menu_browse[SELECT_KEY].label = "[View]";
|
|
|
|
|
+ menu_browse[SELECT_KEY].label = "[<5B>˵<EFBFBD>]";
|
|
|
|
|
menu_browse[PICO_KEY].name = "E";
|
|
|
|
|
- menu_browse[PICO_KEY].label = "Edit";
|
|
|
|
|
+ menu_browse[PICO_KEY].label = "<22>s<EFBFBD><73>";
|
1998-07-21 14:11:48 +00:00
|
|
|
|
}
|
|
|
|
|
else{
|
1998-08-09 00:51:28 +00:00
|
|
|
|
menu_browse[SELECT_KEY].name = "S";
|
|
|
|
|
- menu_browse[SELECT_KEY].label = "[Select]";
|
|
|
|
|
+ menu_browse[SELECT_KEY].label = "[<5B><><EFBFBD><EFBFBD>]";
|
|
|
|
|
menu_browse[PICO_KEY].name = "A";
|
|
|
|
|
- menu_browse[PICO_KEY].label = "Add";
|
|
|
|
|
+ menu_browse[PICO_KEY].label = "<22>s<EFBFBD>W";
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
wkeyhelp(menu_browse);
|
|
|
|
|
@@ -1898,7 +1898,7 @@
|
|
|
|
|
|
|
|
|
|
if((tp = tp->next) == NULL){ /* above top? */
|
|
|
|
|
if(secondtry++){
|
|
|
|
|
- emlwrite("\007Internal error: can't find fname cell", NULL);
|
|
|
|
|
+ emlwrite("\007<30><37><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>~<7E>G <20>䤣<EFBFBD><E4A4A3> fname cell", NULL);
|
|
|
|
|
return(-1);
|
|
|
|
|
}
|
|
|
|
|
else{
|
|
|
|
|
@@ -2064,10 +2064,10 @@
|
|
|
|
|
if(!p) /* no suitable length! */
|
|
|
|
|
p = &dir[l-(term.t_ncol-i-19)];
|
|
|
|
|
|
|
|
|
|
- sprintf(buf, "%s Dir ...%s", (gmode&MDBRONLY) ? "" : " BROWSER ", p);
|
|
|
|
|
+ sprintf(buf, "%s <20>ؿ<EFBFBD> ...%s", (gmode&MDBRONLY) ? "" : " BROWSER ", p);
|
1998-07-21 14:11:48 +00:00
|
|
|
|
}
|
1998-08-09 00:51:28 +00:00
|
|
|
|
else
|
|
|
|
|
- sprintf(buf,"%s Dir: %s", (gmode&MDBRONLY) ? "" : " BROWSER ", dir);
|
|
|
|
|
+ sprintf(buf,"%s <20>ؿ<EFBFBD><D8BF>G %s", (gmode&MDBRONLY) ? "" : " BROWSER ", dir);
|
|
|
|
|
|
|
|
|
|
if(i < j) /* keep it centered */
|
|
|
|
|
j = j - i; /* as long as we can */
|
|
|
|
|
@@ -2196,18 +2196,18 @@
|
|
|
|
|
if((line = (buf[i] == '\n') ? 0 : line + 1) >= LA_LINE_LIMIT
|
|
|
|
|
|| !buf[i]){
|
|
|
|
|
rv = FALSE;
|
|
|
|
|
- emlwrite("Can't display non-text file. Try \"Launch\".",
|
|
|
|
|
+ emlwrite("<22>L<EFBFBD>k<EFBFBD><6B><EFBFBD>ܫD<DCAB><44><EFBFBD>r<EFBFBD>ɡC<C9A1>ո<EFBFBD> \"<22>Ұ<EFBFBD>\"<22>C",
|
|
|
|
|
NULL);
|
|
|
|
|
break;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
else
|
|
|
|
|
- emlwrite("Can't read file: %s", file);
|
|
|
|
|
+ emlwrite("<22>L<EFBFBD>kŪ<6B><C5AA><EFBFBD>ɮסG%s", file);
|
|
|
|
|
|
|
|
|
|
fclose(fp);
|
|
|
|
|
}
|
|
|
|
|
else
|
|
|
|
|
- emlwrite("Can't open file: %s", file);
|
|
|
|
|
+ emlwrite("<22>L<EFBFBD>k<EFBFBD>}<7D><><EFBFBD>ɮסG%s", file);
|
1998-07-21 14:11:48 +00:00
|
|
|
|
|
1998-08-09 00:51:28 +00:00
|
|
|
|
return(rv);
|
|
|
|
|
}
|