summaryrefslogtreecommitdiffstats
path: root/games/larn/io.c
diff options
context:
space:
mode:
Diffstat (limited to 'games/larn/io.c')
-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 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 */
OpenPOWER on IntegriCloud