* fhandler.cc (fhandler_base::read): Remove special handling of CTRL-Z.
This commit is contained in:
parent
aa38a0227c
commit
0cec322603
|
@ -1,3 +1,7 @@
|
||||||
|
Sat Mar 31 16:23:32 2001 Christopher Faylor <cgf@cygnus.com>
|
||||||
|
|
||||||
|
* fhandler.cc (fhandler_base::read): Remove special handling of CTRL-Z.
|
||||||
|
|
||||||
Sat Mar 31 11:09:00 2001 Corinna Vinschen <corinna@vinschen.de>
|
Sat Mar 31 11:09:00 2001 Corinna Vinschen <corinna@vinschen.de>
|
||||||
|
|
||||||
* fhandler.h (class fhandler_console): Add members `insert_mode'.
|
* fhandler.h (class fhandler_console): Add members `insert_mode'.
|
||||||
|
@ -74,7 +78,7 @@ Thursday Mar 22 2001 Robert Collins <rbtcollins@hotmail.com>
|
||||||
native clipboard format.
|
native clipboard format.
|
||||||
|
|
||||||
2001-03-22 Egor Duda <deo@logos-m.ru>
|
2001-03-22 Egor Duda <deo@logos-m.ru>
|
||||||
|
|
||||||
* fhandler_console.cc (fhandler_console::set_default_attr): Update
|
* fhandler_console.cc (fhandler_console::set_default_attr): Update
|
||||||
console color attributes on tty reset.
|
console color attributes on tty reset.
|
||||||
|
|
||||||
|
@ -213,7 +217,7 @@ Fri Mar 16 20:25:40 2001 Christopher Faylor <cgf@cygnus.com>
|
||||||
Recognize new .lnk states.
|
Recognize new .lnk states.
|
||||||
|
|
||||||
Saturday Mar 17 01:19 2001 Robert Collins rbtcollins@hotmail.com
|
Saturday Mar 17 01:19 2001 Robert Collins rbtcollins@hotmail.com
|
||||||
|
|
||||||
* cygwin.din: Export the new functions.
|
* cygwin.din: Export the new functions.
|
||||||
* pthread.cc (pthread_cond_*): Add wrapper functions that call
|
* pthread.cc (pthread_cond_*): Add wrapper functions that call
|
||||||
__pthread_cond* functions.
|
__pthread_cond* functions.
|
||||||
|
|
|
@ -443,7 +443,6 @@ int
|
||||||
fhandler_base::read (void *in_ptr, size_t in_len)
|
fhandler_base::read (void *in_ptr, size_t in_len)
|
||||||
{
|
{
|
||||||
int len = (int) in_len;
|
int len = (int) in_len;
|
||||||
char *ctrlzpos;
|
|
||||||
char *ptr = (char *) in_ptr;
|
char *ptr = (char *) in_ptr;
|
||||||
|
|
||||||
int c;
|
int c;
|
||||||
|
@ -475,6 +474,8 @@ fhandler_base::read (void *in_ptr, size_t in_len)
|
||||||
return copied_chars;
|
return copied_chars;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#if 0
|
||||||
|
char *ctrlzpos;
|
||||||
/* Scan buffer for a control-z and shorten the buffer to that length */
|
/* Scan buffer for a control-z and shorten the buffer to that length */
|
||||||
|
|
||||||
ctrlzpos = (char *) memchr ((char *) ptr, 0x1a, copied_chars);
|
ctrlzpos = (char *) memchr ((char *) ptr, 0x1a, copied_chars);
|
||||||
|
@ -489,6 +490,7 @@ fhandler_base::read (void *in_ptr, size_t in_len)
|
||||||
debug_printf ("returning 0 chars, text mode, CTRL-Z found");
|
debug_printf ("returning 0 chars, text mode, CTRL-Z found");
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
/* Scan buffer and turn \r\n into \n */
|
/* Scan buffer and turn \r\n into \n */
|
||||||
register char *src = (char *) ptr;
|
register char *src = (char *) ptr;
|
||||||
|
|
Loading…
Reference in New Issue