diff --git a/Makefile.in b/Makefile.in index 7354471..11afcd3 100644 --- a/Makefile.in +++ b/Makefile.in @@ -9,8 +9,9 @@ VPATH = $(srcdir) OBJ = attach.o master.o main.o SRC = $(srcdir)/attach.c $(srcdir)/master.c $(srcdir)/main.c -TARFILES = $(srcdir)/README $(srcdir)/COPYING $(srcdir)/*.in $(srcdir)/*.c \ - $(srcdir)/*.h $(srcdir)/dtach.spec $(srcdir)/configure \ +TARFILES = $(srcdir)/README $(srcdir)/COPYING $(srcdir)/Makefile.in \ + $(srcdir)/config.h.in $(SRC) \ + $(srcdir)/dtach.h $(srcdir)/dtach.spec $(srcdir)/configure \ $(srcdir)/configure.ac $(srcdir)/dtach.1 dtach: $(OBJ) diff --git a/README b/README index 6b90bc1..1371652 100644 --- a/README +++ b/README @@ -56,9 +56,10 @@ program will be executed. If it does exist, then dtach will attach to the existing session. dtach has another attach mode, which is specified by using -a. The -a -mode attaches to an already existing session, but will not create a -new session. Each attaching process can have a separate detach character -and suspend behavior, which are explained in the following sections. +mode attaches to an already existing session, but will not create a new +session. Each attaching process can have a separate detach character, +suspend behavior, and redraw method, which are explained in the +following sections. dtach is able to attach to the same session multiple times, though you will likely encounter problems if your terminals have different window @@ -94,7 +95,34 @@ the program to be suspended. Processing of the suspend key can be disabled by supplying the -z option to dtach when attaching. -5. CHANGES +5. REDRAW METHOD + +When attaching, dtach can use one of three methods to redraw the screen +(none, ctrl_l, or winch). By default, dtach uses the ctrl_l method, +which simply sends a ^L (Ctrl-L) character to the program if the +terminal is in character-at-a-time and no-echo mode. The winch method +forces a WINCH signal to be sent to the program, and the none method +disables redrawing completely. + +For example, this command tells dtach to attach to a session at +/tmp/foozle and use the winch redraw method: + + $ dtach -a /tmp/foozle -r winch + +When creating a new session (with the -c or -A modes), the specified +method is used as the default redraw method for the session. + +6. CHANGES + +The changes in version 0.7 are: +- The redraw method can now be explicitly specified on the command line + (either no redraw at all, the old ^L character method, and the new WINCH + signal method), since many programs only handle one or the other properly. +- Changed the default redraw method back to the old ^L character method. +- Changed the attach code to check the return value of select more carefully. +- Changed the SIGWINCH handler to reinstall itself, to handle systems that + always reset the handler. +- Added more proper process group handling. The changes in version 0.6 are: - Redraws are now handled by sending the child process a WINCH signal instead @@ -127,7 +155,7 @@ The changes in version 0.3 are: - Added some more autoconf checks. - Initial sourceforge release. -6. AUTHOR +7. AUTHOR dtach is (C)Copyright 2004 Ned T. Crigler, and is under the GNU General Public License. diff --git a/configure b/configure index fef798e..436eefb 100755 --- a/configure +++ b/configure @@ -1,6 +1,6 @@ #! /bin/sh # Guess values for system-dependent variables and create Makefiles. -# Generated by GNU Autoconf 2.59 for dtach 0.6. +# Generated by GNU Autoconf 2.59 for dtach 0.7. # # Report bugs to . # @@ -269,8 +269,8 @@ SHELL=${CONFIG_SHELL-/bin/sh} # Identity of this package. PACKAGE_NAME='dtach' PACKAGE_TARNAME='dtach' -PACKAGE_VERSION='0.6' -PACKAGE_STRING='dtach 0.6' +PACKAGE_VERSION='0.7' +PACKAGE_STRING='dtach 0.7' PACKAGE_BUGREPORT='crigler@users.sourceforge.net' ac_unique_file="main.c" @@ -780,7 +780,7 @@ if test "$ac_init_help" = "long"; then # Omit some internal or obsolete options to make the list less imposing. # This message is too long to be a string in the A/UX 3.1 sh. cat <<_ACEOF -\`configure' configures dtach 0.6 to adapt to many kinds of systems. +\`configure' configures dtach 0.7 to adapt to many kinds of systems. Usage: $0 [OPTION]... [VAR=VALUE]... @@ -837,7 +837,7 @@ fi if test -n "$ac_init_help"; then case $ac_init_help in - short | recursive ) echo "Configuration of dtach 0.6:";; + short | recursive ) echo "Configuration of dtach 0.7:";; esac cat <<\_ACEOF @@ -949,7 +949,7 @@ fi test -n "$ac_init_help" && exit 0 if $ac_init_version; then cat <<\_ACEOF -dtach configure 0.6 +dtach configure 0.7 generated by GNU Autoconf 2.59 Copyright (C) 2003 Free Software Foundation, Inc. @@ -963,7 +963,7 @@ cat >&5 <<_ACEOF This file contains any messages produced by compilers while running configure, to aid debugging if configure makes a mistake. -It was created by dtach $as_me 0.6, which was +It was created by dtach $as_me 0.7, which was generated by GNU Autoconf 2.59. Invocation command line was $ $0 $@ @@ -4358,7 +4358,7 @@ _ASBOX } >&5 cat >&5 <<_CSEOF -This file was extended by dtach $as_me 0.6, which was +This file was extended by dtach $as_me 0.7, which was generated by GNU Autoconf 2.59. Invocation command line was CONFIG_FILES = $CONFIG_FILES @@ -4418,7 +4418,7 @@ _ACEOF cat >>$CONFIG_STATUS <<_ACEOF ac_cs_version="\\ -dtach config.status 0.6 +dtach config.status 0.7 configured by $0, generated by GNU Autoconf 2.59, with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\" diff --git a/configure.ac b/configure.ac index 1b9a10f..d284e8a 100644 --- a/configure.ac +++ b/configure.ac @@ -1,5 +1,5 @@ # Process this file with autoconf to produce a configure script. -AC_INIT(dtach, 0.6, crigler@users.sourceforge.net) +AC_INIT(dtach, 0.7, crigler@users.sourceforge.net) AC_PREREQ(2.59) AC_CONFIG_SRCDIR(main.c) AC_CONFIG_HEADER(config.h) diff --git a/dtach.1 b/dtach.1 index 597ada4..6502ba3 100644 --- a/dtach.1 +++ b/dtach.1 @@ -1,4 +1,4 @@ -.TH dtach 1 "May 2004" "dtach 0.6" +.TH dtach 1 "Jul 2004" "dtach 0.7" .SH NAME dtach \- simple program that emulates the detach feature of screen. .SH SYNOPSIS diff --git a/dtach.spec b/dtach.spec index 735ae4c..f463bf7 100644 --- a/dtach.spec +++ b/dtach.spec @@ -1,6 +1,6 @@ Summary: A simple program that emulates the detach feature of screen. Name: dtach -Version: 0.6 +Version: 0.7 Release: 1 License: GPL URL: http://dtach.sourceforge.net @@ -43,6 +43,9 @@ rm -rf $RPM_BUILD_DIR/%{name}-%{version} %{_mandir}/*/* %changelog +* Sat Jul 3 2004 Ned T. Crigler 0.7 +- New release + * Fri Nov 30 2001 Ned T. Crigler 0.5 - Fix fd leakage. - Prevent atexit from being called twice on dtach -A.