diff options
author | ache <ache@FreeBSD.org> | 1995-08-04 09:54:54 +0000 |
---|---|---|
committer | ache <ache@FreeBSD.org> | 1995-08-04 09:54:54 +0000 |
commit | b23ac99c8c68e50963474d2327dfe4187ae7663c (patch) | |
tree | 1bc96537b71a115299f726c792815eebac3c0751 /games/larn | |
parent | 5cfe85c0a452aec9920570de2b56574116936447 (diff) | |
download | FreeBSD-src-b23ac99c8c68e50963474d2327dfe4187ae7663c.zip FreeBSD-src-b23ac99c8c68e50963474d2327dfe4187ae7663c.tar.gz |
Add missing ospeed setting
Diffstat (limited to 'games/larn')
-rw-r--r-- | games/larn/io.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/games/larn/io.c b/games/larn/io.c index 8fda49d..27ec9b4 100644 --- a/games/larn/io.c +++ b/games/larn/io.c @@ -608,6 +608,8 @@ init_term() char termbuf[1024]; char *capptr = cap+10; char *term; + struct sgttyb tt; + extern short ospeed; switch (tgetent(termbuf, term = getenv("TERM"))) { @@ -620,6 +622,9 @@ init_term() exit(); }; + if (gtty(0, &tt) == 0) + ospeed = tt.sg_ospeed; + CM = tgetstr("cm", &capptr); /* Cursor motion */ CE = tgetstr("ce", &capptr); /* Clear to eoln */ CL = tgetstr("cl", &capptr); /* Clear screen */ |