aboutsummaryrefslogtreecommitdiff
path: root/sys
diff options
context:
space:
mode:
Diffstat (limited to 'sys')
-rw-r--r--sys/pc98/pc98/syscons.c11
1 files changed, 10 insertions, 1 deletions
diff --git a/sys/pc98/pc98/syscons.c b/sys/pc98/pc98/syscons.c
index 64f758ddd5a1..37807c9b5cf5 100644
--- a/sys/pc98/pc98/syscons.c
+++ b/sys/pc98/pc98/syscons.c
@@ -3922,7 +3922,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);