mirror of
https://github.com/tildeclub/ex-vi.git
synced 2026-06-23 04:09:24 +00:00
* If standard output is not a terminal, no '\r' is written at the end of
printed lines anymore.
This commit is contained in:
6
ex_tty.c
6
ex_tty.c
@@ -73,7 +73,7 @@
|
||||
|
||||
#ifndef lint
|
||||
#ifdef DOSCCS
|
||||
static char sccsid[] = "@(#)ex_tty.c 1.28 (gritter) 2/17/05";
|
||||
static char sccsid[] = "@(#)ex_tty.c 1.29 (gritter) 2/17/05";
|
||||
#endif
|
||||
#endif
|
||||
|
||||
@@ -96,8 +96,10 @@ gettmode(void)
|
||||
{
|
||||
speed_t pospeed;
|
||||
|
||||
if (tcgetattr(1, &tty) < 0)
|
||||
if (tcgetattr(1, &tty) < 0) {
|
||||
ospeed = B0;
|
||||
return;
|
||||
}
|
||||
pospeed = cfgetospeed(&tty);
|
||||
if (ospeed != pospeed)
|
||||
value(SLOWOPEN) = pospeed < B1200;
|
||||
|
||||
Reference in New Issue
Block a user