version 1.7, 2010/04/23 05:34:05 |
version 1.8, 2011/06/16 08:17:15 |
Line 341 recover_signal () |
|
Line 341 recover_signal () |
|
input_handler() |
input_handler() |
{ |
{ |
char *inputline; |
char *inputline; |
char *getline (); |
char *mygetline (); |
|
|
/* |
/* |
* Get slave tty descriptor for auto-tty-fix |
* Get slave tty descriptor for auto-tty-fix |
|
|
if ((slave = open (slave_tty, O_RDONLY)) < 0) |
if ((slave = open (slave_tty, O_RDONLY)) < 0) |
perror ("open"); |
perror ("open"); |
|
|
while (inputline = getline ()) { |
while (inputline = mygetline ()) { |
/* |
/* |
* XXX: nbyte should be greater than 0 only for ^@ input in emacs. |
* XXX: nbyte should be greater than 0 only for ^@ input in emacs. |
* This solution is very ugly.. but it will takes a half day |
* This solution is very ugly.. but it will takes a half day |
|
|
|
|
/* |
/* |
* NOTE: |
* NOTE: |
* Saving command line to output buffer is done in getline(). |
* Saving command line to output buffer is done in mygetline(). |
* Because inputline here is converted by alias. |
* Because inputline here is converted by alias. |
*/ |
*/ |
|
|