Don't perform input processing when writing to the slave end (output written to
terminal was interpreted like input). Fixes #2409. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@31417 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -1,5 +1,5 @@
|
|||||||
/*
|
/*
|
||||||
* Copyright 2007-2008, Ingo Weinhold, [email protected].de.
|
* Copyright 2007-2009, Ingo Weinhold, ingo_weinhold@gmx.de.
|
||||||
* Copyright 2004-2006, Axel Dörfler, [email protected]. All rights reserved.
|
* Copyright 2004-2006, Axel Dörfler, [email protected]. All rights reserved.
|
||||||
* Distributed under the terms of the MIT License.
|
* Distributed under the terms of the MIT License.
|
||||||
*/
|
*/
|
||||||
@@ -1808,7 +1808,7 @@ tty_write_to_tty_slave_unsafe(tty_cookie *sourceCookie, const char *data,
|
|||||||
|
|
||||||
// write the bytes
|
// write the bytes
|
||||||
for (size_t i = 0; i < bytesNeeded; i++)
|
for (size_t i = 0; i < bytesNeeded; i++)
|
||||||
tty_input_putc_locked(target, buffer[i]);
|
line_buffer_putc(target->input_buffer, buffer[i]);
|
||||||
|
|
||||||
writable -= bytesNeeded;
|
writable -= bytesNeeded;
|
||||||
data++;
|
data++;
|
||||||
|
|||||||
Reference in New Issue
Block a user