~ubuntu-branches/ubuntu/edgy/libterm-readkey-perl/edgy

« back to all changes in this revision

Viewing changes to ReadKey.xs

  • Committer: Bazaar Package Importer
  • Author(s): Gunnar Wolf, Niko Tyni, Gunnar Wolf
  • Date: 2006-02-05 12:15:57 UTC
  • mfrom: (3.1.1 dapper)
  • Revision ID: james.westby@ubuntu.com-20060205121557-3wo7lx5wm2envt6q
Tags: 2.30-3
[ Niko Tyni ]
* Fixed maintainer email address. (Closes: #343483)

[ Gunnar Wolf ]
* Fixed debian/watch
* Moved debhelper compatibility to version 4
* No longer ignores error when cleaning

Show diffs side-by-side

added added

removed removed

Lines of Context:
18
18
 
19
19
 Maintained by Jonathan Stowe <jns@gellyfish.com>
20
20
 
21
 
 $Id: ReadKey.xs,v 1.8 2002/07/28 12:01:18 gellyfish Exp $
 
21
 $Id: ReadKey.xs,v 2.22 2005/01/11 21:15:17 jonathan Exp $
22
22
 
23
23
 Version 2.21, Sun Jul 28 12:57:56 BST 2002
24
24
    Fix to improve the chances of automated testing succeeding
200
200
#       define DONT_USE_SELECT
201
201
#       define DONT_USE_POLL
202
202
 
203
 
#       define DONT_USE_TERMIO
 
203
#       define DONT_USE_TERMIOS
204
204
#       define DONT_USE_SGTTY
205
 
#       define I_TERMIOS
206
 
#       define CC_TERMIOS
 
205
#       define I_TERMIO
 
206
#       define CC_TERMIO
 
207
 
 
208
/* This flag should be off in the lflags when we enable termio mode */
 
209
#      define TRK_IDEFAULT     IDEFAULT
207
210
 
208
211
#       define INCL_SUB
209
212
#       define INCL_DOS
348
351
# endif
349
352
#endif
350
353
 
 
354
#ifndef TRK_IDEFAULT
 
355
/* This flag should be off in the lflags when we enable termio mode */
 
356
#      define TRK_IDEFAULT     0
 
357
#endif
351
358
 
352
359
/* Fix up the disappearance of the '_' macro in Perl 5.7.2 */
353
360
 
1117
1124
                memcpy((void*)&work,(void*)&savebuf,sizeof(struct tbuffer));
1118
1125
 
1119
1126
                work.c_lflag &= ~(ECHO | ISIG | ICANON | XCASE);
1120
 
                work.c_lflag &= ~(ECHOE | ECHOK | ECHONL);
 
1127
                work.c_lflag &= ~(ECHOE | ECHOK | ECHONL | TRK_IDEFAULT);
1121
1128
                work.c_iflag &= ~(IXON | IXOFF | IXANY | ICRNL | BRKINT);
1122
1129
                if((work.c_cflag | PARENB)!=PARENB ) {
1123
1130
                        work.c_iflag &= ~(ISTRIP|INPCK);
1135
1142
                memcpy((void*)&work,(void*)&savebuf,sizeof(struct tbuffer));
1136
1143
 
1137
1144
                work.c_lflag &= ~(ECHO | ISIG | ICANON);
1138
 
                work.c_lflag &= ~(ECHOE | ECHOK | ECHONL);
 
1145
                work.c_lflag &= ~(ECHOE | ECHOK | ECHONL TRK_IDEFAULT);
1139
1146
                work.c_iflag = savebuf.c_iflag;
1140
1147
                work.c_iflag &= ~(IXON | IXOFF | IXANY | BRKINT);
1141
1148
                work.c_oflag = savebuf.c_oflag;
1149
1156
                memcpy((void*)&work,(void*)&savebuf,sizeof(struct tbuffer));
1150
1157
 
1151
1158
                work.c_lflag &= ~(ECHO | ICANON);
1152
 
                work.c_lflag &= ~(ECHOE | ECHOK | ECHONL);
 
1159
                work.c_lflag &= ~(ECHOE | ECHOK | ECHONL | TRK_IDEFAULT);
1153
1160
                work.c_lflag |= ISIG;
1154
1161
                work.c_iflag = savebuf.c_iflag;
1155
1162
                work.c_iflag &= ~(IXON | IXOFF | IXANY);
1166
1173
 
1167
1174
                work.c_lflag |= (ISIG | ICANON);
1168
1175
                work.c_lflag &= ~ECHO;
1169
 
                work.c_lflag &= ~(ECHOE | ECHOK | ECHONL);
 
1176
                work.c_lflag &= ~(ECHOE | ECHOK | ECHONL | TRK_IDEFAULT);
1170
1177
                work.c_iflag = savebuf.c_iflag;
1171
1178
                work.c_iflag &= ~(IXON | IXOFF | IXANY);
1172
1179
                work.c_iflag |= savebuf.c_iflag & (IXON|IXOFF|IXANY);
1190
1197
                memcpy((void*)&work,(void*)&savebuf,sizeof(struct tbuffer));
1191
1198
 
1192
1199
                work.c_lflag |= (ECHO | ISIG | ICANON);
 
1200
      work.c_iflag &= ~TRK_IDEFAULT;
1193
1201
                work.c_iflag = savebuf.c_iflag;
1194
1202
                work.c_iflag &= ~(IXON | IXOFF | IXANY);
1195
1203
                work.c_iflag |= savebuf.c_iflag & (IXON|IXOFF|IXANY);