mirror of
https://github.com/opnsense/src.git
synced 2026-04-15 14:29:58 -04:00
Add missing ospeed setting
This commit is contained in:
parent
f0c8f81c61
commit
915513b23b
1 changed files with 5 additions and 0 deletions
|
|
@ -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 */
|
||||
|
|
|
|||
Loading…
Reference in a new issue