summaryrefslogtreecommitdiff
path: root/games/larn
diff options
context:
space:
mode:
authorAndrey A. Chernov <ache@FreeBSD.org>1995-08-04 09:54:54 +0000
committerAndrey A. Chernov <ache@FreeBSD.org>1995-08-04 09:54:54 +0000
commit915513b23bed1925e8a83b0bb0b47a05945da1ea (patch)
tree1bc96537b71a115299f726c792815eebac3c0751 /games/larn
parentf0c8f81c61f98ab23da4d457f18f117984d7cd45 (diff)
Notes
Diffstat (limited to 'games/larn')
-rw-r--r--games/larn/io.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/games/larn/io.c b/games/larn/io.c
index 8fda49db3863..27ec9b477017 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 */