~ubuntu-branches/ubuntu/saucy/ng/saucy

« back to all changes in this revision

Viewing changes to sys/sysv/ttyio.c

  • Committer: Bazaar Package Importer
  • Author(s): Masayuki Hatta (mhatta)
  • Date: 2008-07-17 08:10:34 UTC
  • mfrom: (4.1.2 hardy)
  • Revision ID: james.westby@ubuntu.com-20080717081034-s7iitiihm9hl4jjg
Tags: 1.5~beta1-3
Bumped to Standards-Version: 3.8.0.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
/* $Id: ttyio.c,v 1.2.2.4 2003/02/23 14:32:58 amura Exp $ */
 
1
/* $Id: ttyio.c,v 1.7 2001/01/23 08:54:31 amura Exp $ */
2
2
/*
3
3
 * Name:        MicroEMACS
4
4
 *              System V terminal I/O.
19
19
 
20
20
/*
21
21
 * $Log: ttyio.c,v $
22
 
 * Revision 1.2.2.4  2003/02/23 14:32:58  amura
23
 
 * canna_init() must be called after setttysize() on ttyio.c
 
22
 * Revision 1.7  2001/01/23 08:54:31  amura
 
23
 * remove terminal size check all
24
24
 *
25
 
 * Revision 1.2.2.3  2001/01/23 08:50:29  amura
 
25
 * Revision 1.6  2001/01/23 08:43:50  amura
26
26
 * reset terminal polling mode in ttwait()
27
27
 *
28
 
 * Revision 1.2.2.2  2001/01/17 18:36:45  amura
 
28
 * Revision 1.5  2001/01/20 15:48:47  amura
 
29
 * very big terminal supported
 
30
 *
 
31
 * Revision 1.4  2001/01/17 18:31:53  amura
29
32
 * fix typo POSIXTTY to POSIX_TTY
30
33
 *
31
 
 * Revision 1.2.2.1  2000/12/01 10:04:12  amura
 
34
 * Revision 1.3  2000/12/01 09:47:25  amura
32
35
 * fix ttraw() with termios
33
36
 * unset IEXTEN flag on c_lflag
34
37
 *
177
180
                nrow = 24;
178
181
                ncol = 80;
179
182
        }
180
 
        if (nrow > NROW)                        /* Don't crash if the   */
181
 
                nrow = NROW;                    /* termcap entry is     */
182
 
        if (ncol > NCOL)                        /* too big.             */
183
 
                ncol = NCOL;
184
183
#ifdef  ADDFUNC         /* 93.07.08  by S.Yoshida */
185
184
#ifdef  SIGWINCH        /* 93.07.08  by S.Yoshida */
186
185
        (void) signal(SIGWINCH, ttwinch);
187
186
#endif
188
187
#endif
189
 
#ifdef CANNA
190
 
        canna_init();
191
 
#endif
192
188
        ttyactivep = TRUE;
193
189
}
194
190
 
232
228
#endif
233
229
                abort();
234
230
        ttyactivep = FALSE;
235
 
#ifdef CANNA
236
 
        canna_end();
237
 
#endif
238
231
}
239
232
 
240
233
/*
363
356
                nrow = 24;
364
357
                ncol = 80;
365
358
        }
366
 
        if (nrow > NROW)                        /* Don't crash if the   */
367
 
                nrow = NROW;                    /* termcap entry is     */
368
 
        if (ncol > NCOL)                        /* too big.             */
369
 
                ncol = NCOL;
370
359
}
371
360
 
372
361
#ifdef  ADDFUNC         /* 93.07.08  by S.Yoshida */