Wed Mar 25 19:01:48 1998 Norbert Warmuth <k3190@fh-sw.de>
* extfs/hp48: Added an usage summary. The HP48 external filesystem was contributed by Christofer Edvardsen <ce@earthling.net>. * subshell.c (init_subshell): Added ':q' to $cwd in the precmd for tcsh. It prevents command and filename substitution (e.g. for a directory named "[word] words") * view.c (view_done): Set monitor off before deleting the view file dialog.
Этот коммит содержится в:
родитель
391f08d9e5
Коммит
02978a50bf
@ -1,3 +1,16 @@
|
||||
Wed Mar 25 19:05:31 1998 Norbert Warmuth <k3190@fh-sw.de>
|
||||
|
||||
* view.c (view_done): Set monitor off before deleting the view
|
||||
file dialog.
|
||||
|
||||
* subshell.c (init_subshell): Added ':q' to $cwd in the precmd for
|
||||
tcsh. It preventes command and filename substitution (e.g. for
|
||||
a directory named "[word] words")
|
||||
|
||||
Mon Mar 23 18:06:10 1998 Norbert Warmuth <k3190@fh-sw.de>
|
||||
|
||||
* main.c: Deleted some old and unused code
|
||||
|
||||
1998-03-24 Miguel de Icaza <miguel@nuclecu.unam.mx>
|
||||
|
||||
* All over the src/ directory: Internationalization changes.
|
||||
|
41
src/main.c
41
src/main.c
@ -1089,42 +1089,6 @@ sort_cmd (void)
|
||||
do_re_sort (p);
|
||||
}
|
||||
|
||||
#if 0
|
||||
/* .ado: 28.05.97:
|
||||
jump to the directory which is .. relative to dir_name.
|
||||
e.g.: dir_name = /a/b/c ==> jump to /a/b
|
||||
*/
|
||||
static void
|
||||
jump2dotdot(char *dir_name)
|
||||
{
|
||||
register int i;
|
||||
int namelen = strlen (dir_name);
|
||||
static char tmp_name[MC_MAXPATHLEN];
|
||||
|
||||
i = namelen - 1;
|
||||
while (i) {
|
||||
if (dir_name[i--] == PATH_SEP){
|
||||
break; /* break out of while */
|
||||
}
|
||||
}
|
||||
strcpy (tmp_name, dir_name);
|
||||
if (i == 0) /* On the top PATH_SEP */
|
||||
tmp_name [1] = 0;
|
||||
else {
|
||||
#ifdef OS2_NT
|
||||
/* Important for NT and OS/2: */
|
||||
if (dir_name [i] == ':') { /* on top <DRV_LETTER>: */
|
||||
tmp_name [i+2] = 0;
|
||||
} else
|
||||
#endif
|
||||
tmp_name [i+1] = 0;
|
||||
|
||||
}
|
||||
do_cd (tmp_name, cd_exact);
|
||||
return;
|
||||
}
|
||||
#endif
|
||||
|
||||
static void
|
||||
tree_box (void)
|
||||
{
|
||||
@ -1132,12 +1096,7 @@ tree_box (void)
|
||||
|
||||
sel_dir = tree (selection (cpanel)->fname);
|
||||
if (sel_dir){
|
||||
#if 0
|
||||
jump2dotdot(sel_dir);
|
||||
try_to_select (cpanel, sel_dir);
|
||||
#else
|
||||
do_cd(sel_dir, cd_exact);
|
||||
#endif
|
||||
free (sel_dir);
|
||||
}
|
||||
}
|
||||
|
@ -502,7 +502,7 @@ void init_subshell (void)
|
||||
goto write_it;
|
||||
|
||||
case TCSH:
|
||||
sprintf (precmd, "alias precmd 'echo $cwd>>%s;kill -STOP $$'\n", tcsh_fifo);
|
||||
sprintf (precmd, "alias precmd 'echo $cwd:q >>%s;kill -STOP $$'\n", tcsh_fifo);
|
||||
|
||||
write_it:
|
||||
write (subshell_pty, precmd, strlen (precmd));
|
||||
|
@ -177,10 +177,14 @@ free_file (WView *view)
|
||||
}
|
||||
}
|
||||
|
||||
/* Valid parameters for second parameter to set_monitor */
|
||||
enum { off, on };
|
||||
|
||||
/* Both views */
|
||||
void
|
||||
view_done (WView *view)
|
||||
{
|
||||
set_monitor (view, off);
|
||||
#ifndef HAVE_MMAP
|
||||
/* alex: release core, used to replace mmap */
|
||||
if (!view->growing_buffer && view->data != (unsigned char*)0)
|
||||
@ -2012,8 +2016,6 @@ check_left_right_keys (WView *view, int c)
|
||||
return 1;
|
||||
}
|
||||
|
||||
enum { off, on };
|
||||
|
||||
void
|
||||
set_monitor (WView *view, int set_on)
|
||||
{
|
||||
|
@ -1,3 +1,7 @@
|
||||
Wed Mar 25 19:01:48 1998 Norbert Warmuth <k3190@fh-sw.de>
|
||||
|
||||
* extfs/hp48: Added a usage summary
|
||||
|
||||
Mon Mar 23 00:42:21 1998 Christofer Edvardsen <ce@earthling.net>
|
||||
|
||||
* Makefile.in, extfs/extfs.ini, extfs/hp48: New external
|
||||
|
@ -4,9 +4,21 @@
|
||||
#
|
||||
# This script makes it possible to view and copy files to/from a hp48
|
||||
# (tested with a HP48G and the emulator x48)
|
||||
# To make "cd hp48:" work add this to extfs.ini: hp48:=hp48
|
||||
#
|
||||
|
||||
# To use the hp48 external filesystem:
|
||||
# - read the relevant parts of your HP48 manual
|
||||
# - install kermit
|
||||
# - connect the HP48 to your computer or start x48
|
||||
# - below change the line which reflects the serial device you use
|
||||
# - configure your HP48 (<left shift> - i/o - iopar):
|
||||
# port: wire
|
||||
# baud: 9600
|
||||
# transfer format: binary (fast transfers) or
|
||||
# ascii (editable on the pc)
|
||||
# - start the server on the HP48: <left shift> - i/o - srvr - serve
|
||||
# or the shortcut <right shift> - <right arrow>
|
||||
# - on MC's commandline enter "cd hp48:"
|
||||
#
|
||||
# Make sure you have kermit installed and that it's using the right serial
|
||||
# device by changing /dev/ttyXX on the next line
|
||||
KERMIT="kermit -l /dev/ttyS1 -b 9600"
|
||||
|
Загрузка…
x
Ссылка в новой задаче
Block a user