Author: rmottola
Date: Wed Mar 16 01:50:17 2016
New Revision: 39552
URL: http://svn.gna.org/viewcvs/gnustep?rev=39552&view=rev
Log:
handle CR to LF
Modified:
apps/projectcenter/branches/ptyview_with_pipes/Modules/Debuggers/ProjectCenter/PTYView.m
Modified:
apps/projectcenter/branches/ptyview_with_pipes/Modules/Debuggers/ProjectCenter/PTYView.m
URL:
http://svn.gna.org/viewcvs/gnustep/apps/projectcenter/branches/ptyview_with_pipes/Modules/Debuggers/ProjectCenter/PTYView.m?rev=39552&r1=39551&r2=39552&view=diff
==============================================================================
---
apps/projectcenter/branches/ptyview_with_pipes/Modules/Debuggers/ProjectCenter/PTYView.m
(original)
+++
apps/projectcenter/branches/ptyview_with_pipes/Modules/Debuggers/ProjectCenter/PTYView.m
Wed Mar 16 01:50:17 2016
@@ -302,18 +302,26 @@
chars = [theEvent characters];
if ([chars length] == 1)
- {
+ {
unichar c;
c = [chars characterAtIndex: 0];
+
+ // NSLog(@"char: %d", c);
if (c == 3) // ETX, Control-C
{
[self interrupt]; // send the interrupt signal to the subtask
}
+ if (c == 13) // CR
+ {
+ [self putString: @"\n"];
+ }
else
{
- [self putChar: c];
+ [self putString: chars];
}
- }
+ }
+ else
+ NSLog(@"characters: |%@|", chars);
}
@end
_______________________________________________
Gnustep-cvs mailing list
[email protected]
https://mail.gna.org/listinfo/gnustep-cvs