ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/rxvt-unicode/src/command.C
(Generate patch)

Comparing rxvt-unicode/src/command.C (file contents):
Revision 1.237 by root, Fri Jan 6 01:16:58 2006 UTC vs.
Revision 1.239 by root, Fri Jan 6 03:02:22 2006 UTC

2718 { 2718 {
2719 if (ch == NOCHAR) 2719 if (ch == NOCHAR)
2720 { 2720 {
2721 seq_begin = cmdbuf_ptr; 2721 seq_begin = cmdbuf_ptr;
2722 ch = next_char (); 2722 ch = next_char ();
2723 }
2724 2723
2725 if (ch == NOCHAR) // TODO: improve 2724 if (ch == NOCHAR)
2726 break; 2725 break;
2726 }
2727 2727
2728 if (!IS_CONTROL (ch) || ch == C0_LF || ch == C0_CR || ch == C0_HT) 2728 if (!IS_CONTROL (ch) || ch == C0_LF || ch == C0_CR || ch == C0_HT)
2729 { 2729 {
2730 if (!seen_input) 2730 if (!seen_input)
2731 { 2731 {
4454const unsigned int MAX_PTY_WRITE = 255; // minimum MAX_INPUT 4454const unsigned int MAX_PTY_WRITE = 255; // minimum MAX_INPUT
4455 4455
4456void 4456void
4457rxvt_term::tt_write (const char *data, unsigned int len) 4457rxvt_term::tt_write (const char *data, unsigned int len)
4458{ 4458{
4459 if (pty.pty < 0)
4460 return;
4461
4459 if (v_buflen == 0) 4462 if (v_buflen == 0)
4460 { 4463 {
4461 ssize_t written = write (pty.pty, data, min (len, MAX_PTY_WRITE)); 4464 ssize_t written = write (pty.pty, data, min (len, MAX_PTY_WRITE));
4462 4465
4463 if ((unsigned int)written == len) 4466 if ((unsigned int)written == len)

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines