diff options
| author | Søren Schmidt <sos@FreeBSD.org> | 1997-01-30 15:12:17 +0000 |
|---|---|---|
| committer | Søren Schmidt <sos@FreeBSD.org> | 1997-01-30 15:12:17 +0000 |
| commit | ac59a2c67c51d9179c83ec66f22441d9fce13277 (patch) | |
| tree | 3f676e4cae6aa88e182a62471c49896a7ac86304 /sys/dev | |
| parent | 50c193eb054383411bff740d76118d9bfda05e9e (diff) | |
Notes
Diffstat (limited to 'sys/dev')
| -rw-r--r-- | sys/dev/syscons/syscons.c | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/sys/dev/syscons/syscons.c b/sys/dev/syscons/syscons.c index 7c6a5329643b..f08197b1907a 100644 --- a/sys/dev/syscons/syscons.c +++ b/sys/dev/syscons/syscons.c @@ -3018,7 +3018,16 @@ next_code: metas = 1; break; case NEXT: - switch_scr(cur_console, (get_scr_num() + 1) % MAXCONS); + { + int next, this = get_scr_num(); + for (next = this+1; next != this; next = (next+1)%MAXCONS) { + struct tty *tp = VIRTUAL_TTY(next); + if (tp->t_state & TS_ISOPEN) { + switch_scr(cur_console, next); + break; + } + } + } break; case BTAB: return(BKEY); |
